Add end-of-file-fixer pre-commit hook (#3176)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Bart Louwers
2025-01-24 20:43:50 +01:00
committed by GitHub
parent c7b63cd9a7
commit c79b6dcf52
8187 changed files with 8059 additions and 8199 deletions

View File

@@ -81,4 +81,4 @@ std::unique_ptr<android::AndroidRendererBackend> Backend::Create<mbgl::gfx::Back
}
} // namespace gfx
} // namespace mbgl
} // namespace mbgl

View File

@@ -81,4 +81,4 @@ std::unique_ptr<android::AndroidRendererBackend> Backend::Create<mbgl::gfx::Back
}
} // namespace gfx
} // namespace mbgl
} // namespace mbgl

View File

@@ -20,4 +20,4 @@ void Marker::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -22,4 +22,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -29,4 +29,4 @@ protected:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -35,4 +35,4 @@ void Polygon::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -17,4 +17,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -26,4 +26,4 @@ void Polyline::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -17,4 +17,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -21,4 +21,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -36,4 +36,4 @@ void FeatureCollection::registerNative(jni::JNIEnv& env) {
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -23,4 +23,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -25,4 +25,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -47,4 +47,4 @@ void GeometryCollection::registerNative(jni::JNIEnv& env) {
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -24,4 +24,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -55,4 +55,4 @@ void LineString::registerNative(jni::JNIEnv& env) {
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -32,4 +32,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -58,4 +58,4 @@ void MultiLineString::registerNative(jni::JNIEnv& env) {
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -32,4 +32,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -40,4 +40,4 @@ void MultiPoint::registerNative(jni::JNIEnv& env) {
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -30,4 +30,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -52,4 +52,4 @@ void MultiPolygon::registerNative(jni::JNIEnv& env) {
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -29,4 +29,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -24,4 +24,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -53,4 +53,4 @@ void Polygon::registerNative(jni::JNIEnv& env) {
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -32,4 +32,4 @@ public:
} // namespace geojson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -26,4 +26,4 @@ void LatLng::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -23,4 +23,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -27,4 +27,4 @@ void LatLngBounds::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -21,4 +21,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -35,4 +35,4 @@ void LatLngQuad::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -22,4 +22,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -14,4 +14,4 @@ void ProjectedMeters::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -18,4 +18,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -22,4 +22,4 @@ void PointF::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -19,4 +19,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -32,4 +32,4 @@ void RectF::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -23,4 +23,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -47,4 +47,4 @@ void JsonArray::registerNative(jni::JNIEnv& env) {
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -21,4 +21,4 @@ public:
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -74,4 +74,4 @@ void JsonElement::registerNative(jni::JNIEnv& env) {
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -21,4 +21,4 @@ public:
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -59,4 +59,4 @@ void JsonObject::registerNative(jni::JNIEnv& env) {
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -21,4 +21,4 @@ public:
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -10,4 +10,4 @@ void JsonPrimitive::registerNative(jni::JNIEnv &env) {
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -18,4 +18,4 @@ public:
} // namespace gson
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -16,4 +16,4 @@ void registerNative(jni::JNIEnv& env) {
} // namespace util
} // namespace java
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -78,4 +78,4 @@ void registerNative(jni::JNIEnv&);
} // namespace util
} // namespace java
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -31,4 +31,4 @@ void Logger::log(jni::JNIEnv& env, EventSeverity severity, const std::string& ms
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -16,4 +16,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -10,4 +10,4 @@ void Log::platformRecord(EventSeverity severity, const std::string &msg) {
android::Logger::log(*env, severity, msg);
}
} // namespace mbgl
} // namespace mbgl

View File

@@ -20,4 +20,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -18,4 +18,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -44,4 +44,4 @@ private:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -12,4 +12,4 @@ std::optional<mbgl::style::Filter> toFilter(jni::JNIEnv&, const jni::Array<jni::
} // namespace conversion
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -51,4 +51,4 @@ jni::Local<jni::Object<Formatted>> Formatted::New(jni::JNIEnv& env, const style:
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -19,4 +19,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -8,4 +8,4 @@ void FormattedSection::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -15,4 +15,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -48,4 +48,4 @@ protected:
mbgl::Map* map;
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -35,4 +35,4 @@ float Position::getPolarAngle(jni::JNIEnv& env, const jni::Object<Position>& pos
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -21,4 +21,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -35,4 +35,4 @@ void TransitionOptions::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -26,4 +26,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -27,4 +27,4 @@ void DefaultStyle::registerNative(jni::JNIEnv& env) {
}
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -19,4 +19,4 @@ public:
};
} // namespace android
} // namespace mbgl
} // namespace mbgl

View File

@@ -3,4 +3,4 @@
<uses-feature
android:glEsVersion="0x00030000"
android:required="true"/>
</manifest>
</manifest>

View File

@@ -52,4 +52,3 @@ public abstract class LibraryLoader {
public abstract void load(String name);
}

View File

@@ -313,4 +313,4 @@ class Bubble extends Drawable {
+ rect.left, cornersRadius + rect.top), 180, 90);
path.close();
}
}
}

View File

@@ -30,4 +30,3 @@ public interface CompassListener {
*/
void onCompassAccuracyChange(int compassStatus);
}

View File

@@ -481,4 +481,4 @@ final class LocationCameraController {
return super.onTouchEvent(motionEvent);
}
}
}
}

View File

@@ -305,4 +305,4 @@ public class LocationComponentActivationOptions {
useSpecializedLocationLayer);
}
}
}
}

View File

@@ -331,4 +331,4 @@ class LocationComponentCompassEngine implements CompassEngine, SensorEventListen
return event.values;
}
}
}
}

View File

@@ -340,4 +340,4 @@ final class LocationLayerController {
void adjustPulsingCircleLayerVisibility(boolean visible) {
locationLayerRenderer.adjustPulsingCircleLayerVisibility(visible);
}
}
}

View File

@@ -19,4 +19,4 @@ internal class MapLibreAnimatorListener(cancelableCallback: MapLibreMap.Cancelab
override fun onAnimationEnd(animation: Animator) {
cancelableCallback?.onFinish()
}
}
}

View File

@@ -17,4 +17,4 @@ class MapLibrePaddingAnimator internal constructor(
public override fun provideEvaluator(): TypeEvaluator<DoubleArray> {
return PaddingEvaluator()
}
}
}

View File

@@ -15,4 +15,4 @@ internal class PaddingEvaluator : TypeEvaluator<DoubleArray> {
padding[3] = startValue[3] + (endValue[3] - startValue[3]) * fraction
return padding
}
}
}

View File

@@ -79,4 +79,4 @@ public interface LocationEngine {
* @since 1.1.0
*/
void removeLocationUpdates(PendingIntent pendingIntent);
}
}

View File

@@ -22,4 +22,4 @@ public interface LocationEngineCallback<T> {
* @param exception {@link Exception}
*/
void onFailure(@NonNull Exception exception);
}
}

View File

@@ -77,4 +77,4 @@ public class LocationEngineProxy<T> implements LocationEngine {
T removeListener(@NonNull LocationEngineCallback<LocationEngineResult> callback) {
return listeners != null ? listeners.remove(callback) : null;
}
}
}

View File

@@ -239,4 +239,3 @@ public class LocationEngineRequest {
}
}
}

View File

@@ -1,4 +1,4 @@
/**
* Contains the MapLibre Location layer component camera and render modes.
*/
package org.maplibre.android.location.modes;
package org.maplibre.android.location.modes;

View File

@@ -1,4 +1,4 @@
/**
* Contains the MapLibre Location layer component.
*/
package org.maplibre.android.location;
package org.maplibre.android.location;

View File

@@ -319,4 +319,4 @@ public final class Logger {
@Retention(RetentionPolicy.SOURCE)
public @interface LogLevel {
}
}
}

View File

@@ -99,4 +99,4 @@ public interface LoggerDefinition {
* @param tr An exception to log
*/
void e(String tag, String msg, Throwable tr);
}
}

View File

@@ -1,4 +1,4 @@
/**
* Contains the MapLibre Maps Android Log API classes.
*/
package org.maplibre.android.log;
package org.maplibre.android.log;

View File

@@ -84,4 +84,4 @@ class AnnotationContainer implements Annotations {
nativeMap.removeAnnotations(ids);
}
}
}
}

View File

@@ -643,4 +643,4 @@ class MapChangeReceiver implements NativeMapView.StateCallback {
onSpriteErrorList.clear();
onSpriteRequestedList.clear();
}
}
}

View File

@@ -144,4 +144,4 @@ class MarkerContainer implements Markers {
}
return annotations;
}
}
}

View File

@@ -293,4 +293,4 @@ interface NativeMap {
long getNativePtr();
void addSnapshotCallback(@NonNull MapLibreMap.SnapshotReadyCallback callback);
}
}

View File

@@ -128,4 +128,4 @@ public class SurfaceViewMapRenderer extends MapRenderer {
public MapRenderer.RenderingRefreshMode getRenderingRefreshMode() {
return surfaceView.getRenderingRefreshMode();
}
}
}

View File

@@ -202,4 +202,4 @@ public class HttpRequestImpl implements HttpRequest {
}
return dispatcher;
}
}
}

View File

@@ -69,4 +69,4 @@ public class HttpRequestUtil {
}
return s;
}
}
}

View File

@@ -167,4 +167,4 @@ public abstract class Layer {
public boolean isDetached() {
return detached;
}
}
}

View File

@@ -239,4 +239,4 @@ public class Light {
@Keep
private native void nativeSetIntensityTransition(long duration, long delay);
}
}

View File

@@ -151,4 +151,4 @@ public class Light {
private native void nativeSet<%- camelize(property.name) %>Transition(long duration, long delay);
<% } -%>
<% } -%>
}
}

View File

@@ -80,4 +80,4 @@ public class FontUtils {
}
return fonts;
}
}
}

View File

@@ -9,4 +9,4 @@
android:left="0dp"
android:right="0dp"
android:top="0dp"/>
</shape>
</shape>

View File

@@ -7,4 +7,4 @@
android:top="2dp"
android:bottom="3dp"/>
<corners android:radius="7.5dp"/>
</shape>
</shape>

View File

@@ -16,4 +16,4 @@
android:type="radial"/>
</shape>
</item>
</layer-list>
</layer-list>

Some files were not shown because too many files have changed in this diff Show More