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

@@ -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;
}
}
}