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:
@@ -81,4 +81,4 @@ std::unique_ptr<android::AndroidRendererBackend> Backend::Create<mbgl::gfx::Back
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -81,4 +81,4 @@ std::unique_ptr<android::AndroidRendererBackend> Backend::Create<mbgl::gfx::Back
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -20,4 +20,4 @@ void Marker::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -22,4 +22,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -29,4 +29,4 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -35,4 +35,4 @@ void Polygon::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -17,4 +17,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -26,4 +26,4 @@ void Polyline::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -17,4 +17,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -21,4 +21,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -36,4 +36,4 @@ void FeatureCollection::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -23,4 +23,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -25,4 +25,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -47,4 +47,4 @@ void GeometryCollection::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -24,4 +24,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -55,4 +55,4 @@ void LineString::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -32,4 +32,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -58,4 +58,4 @@ void MultiLineString::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -32,4 +32,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -40,4 +40,4 @@ void MultiPoint::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -30,4 +30,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -52,4 +52,4 @@ void MultiPolygon::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -29,4 +29,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -24,4 +24,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -53,4 +53,4 @@ void Polygon::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -32,4 +32,4 @@ public:
|
||||
|
||||
} // namespace geojson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -26,4 +26,4 @@ void LatLng::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -23,4 +23,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -27,4 +27,4 @@ void LatLngBounds::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -21,4 +21,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -35,4 +35,4 @@ void LatLngQuad::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -22,4 +22,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -14,4 +14,4 @@ void ProjectedMeters::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -18,4 +18,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -22,4 +22,4 @@ void PointF::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -19,4 +19,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -32,4 +32,4 @@ void RectF::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -23,4 +23,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -47,4 +47,4 @@ void JsonArray::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -21,4 +21,4 @@ public:
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -74,4 +74,4 @@ void JsonElement::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -21,4 +21,4 @@ public:
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -59,4 +59,4 @@ void JsonObject::registerNative(jni::JNIEnv& env) {
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -21,4 +21,4 @@ public:
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -10,4 +10,4 @@ void JsonPrimitive::registerNative(jni::JNIEnv &env) {
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -18,4 +18,4 @@ public:
|
||||
|
||||
} // namespace gson
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -16,4 +16,4 @@ void registerNative(jni::JNIEnv& env) {
|
||||
} // namespace util
|
||||
} // namespace java
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -78,4 +78,4 @@ void registerNative(jni::JNIEnv&);
|
||||
} // namespace util
|
||||
} // namespace java
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -31,4 +31,4 @@ void Logger::log(jni::JNIEnv& env, EventSeverity severity, const std::string& ms
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -16,4 +16,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -10,4 +10,4 @@ void Log::platformRecord(EventSeverity severity, const std::string &msg) {
|
||||
android::Logger::log(*env, severity, msg);
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -20,4 +20,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -18,4 +18,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -44,4 +44,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -12,4 +12,4 @@ std::optional<mbgl::style::Filter> toFilter(jni::JNIEnv&, const jni::Array<jni::
|
||||
|
||||
} // namespace conversion
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -51,4 +51,4 @@ jni::Local<jni::Object<Formatted>> Formatted::New(jni::JNIEnv& env, const style:
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -19,4 +19,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -8,4 +8,4 @@ void FormattedSection::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -15,4 +15,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -48,4 +48,4 @@ protected:
|
||||
mbgl::Map* map;
|
||||
};
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -35,4 +35,4 @@ float Position::getPolarAngle(jni::JNIEnv& env, const jni::Object<Position>& pos
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -21,4 +21,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -35,4 +35,4 @@ void TransitionOptions::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -26,4 +26,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -27,4 +27,4 @@ void DefaultStyle::registerNative(jni::JNIEnv& env) {
|
||||
}
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -19,4 +19,4 @@ public:
|
||||
};
|
||||
|
||||
} // namespace android
|
||||
} // namespace mbgl
|
||||
} // namespace mbgl
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
<uses-feature
|
||||
android:glEsVersion="0x00030000"
|
||||
android:required="true"/>
|
||||
</manifest>
|
||||
</manifest>
|
||||
|
||||
@@ -52,4 +52,3 @@ public abstract class LibraryLoader {
|
||||
|
||||
public abstract void load(String name);
|
||||
}
|
||||
|
||||
|
||||
@@ -313,4 +313,4 @@ class Bubble extends Drawable {
|
||||
+ rect.left, cornersRadius + rect.top), 180, 90);
|
||||
path.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,4 +30,3 @@ public interface CompassListener {
|
||||
*/
|
||||
void onCompassAccuracyChange(int compassStatus);
|
||||
}
|
||||
|
||||
|
||||
@@ -481,4 +481,4 @@ final class LocationCameraController {
|
||||
return super.onTouchEvent(motionEvent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -305,4 +305,4 @@ public class LocationComponentActivationOptions {
|
||||
useSpecializedLocationLayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -331,4 +331,4 @@ class LocationComponentCompassEngine implements CompassEngine, SensorEventListen
|
||||
return event.values;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -340,4 +340,4 @@ final class LocationLayerController {
|
||||
void adjustPulsingCircleLayerVisibility(boolean visible) {
|
||||
locationLayerRenderer.adjustPulsingCircleLayerVisibility(visible);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,4 +19,4 @@ internal class MapLibreAnimatorListener(cancelableCallback: MapLibreMap.Cancelab
|
||||
override fun onAnimationEnd(animation: Animator) {
|
||||
cancelableCallback?.onFinish()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,4 +17,4 @@ class MapLibrePaddingAnimator internal constructor(
|
||||
public override fun provideEvaluator(): TypeEvaluator<DoubleArray> {
|
||||
return PaddingEvaluator()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ internal class PaddingEvaluator : TypeEvaluator<DoubleArray> {
|
||||
padding[3] = startValue[3] + (endValue[3] - startValue[3]) * fraction
|
||||
return padding
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,4 +79,4 @@ public interface LocationEngine {
|
||||
* @since 1.1.0
|
||||
*/
|
||||
void removeLocationUpdates(PendingIntent pendingIntent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,4 +22,4 @@ public interface LocationEngineCallback<T> {
|
||||
* @param exception {@link Exception}
|
||||
*/
|
||||
void onFailure(@NonNull Exception exception);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,4 +77,4 @@ public class LocationEngineProxy<T> implements LocationEngine {
|
||||
T removeListener(@NonNull LocationEngineCallback<LocationEngineResult> callback) {
|
||||
return listeners != null ? listeners.remove(callback) : null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,4 +239,3 @@ public class LocationEngineRequest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
* Contains the MapLibre Location layer component.
|
||||
*/
|
||||
package org.maplibre.android.location;
|
||||
package org.maplibre.android.location;
|
||||
|
||||
@@ -319,4 +319,4 @@ public final class Logger {
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface LogLevel {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -99,4 +99,4 @@ public interface LoggerDefinition {
|
||||
* @param tr An exception to log
|
||||
*/
|
||||
void e(String tag, String msg, Throwable tr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
* Contains the MapLibre Maps Android Log API classes.
|
||||
*/
|
||||
package org.maplibre.android.log;
|
||||
package org.maplibre.android.log;
|
||||
|
||||
@@ -84,4 +84,4 @@ class AnnotationContainer implements Annotations {
|
||||
nativeMap.removeAnnotations(ids);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -643,4 +643,4 @@ class MapChangeReceiver implements NativeMapView.StateCallback {
|
||||
onSpriteErrorList.clear();
|
||||
onSpriteRequestedList.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,4 +144,4 @@ class MarkerContainer implements Markers {
|
||||
}
|
||||
return annotations;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -293,4 +293,4 @@ interface NativeMap {
|
||||
long getNativePtr();
|
||||
|
||||
void addSnapshotCallback(@NonNull MapLibreMap.SnapshotReadyCallback callback);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,4 +128,4 @@ public class SurfaceViewMapRenderer extends MapRenderer {
|
||||
public MapRenderer.RenderingRefreshMode getRenderingRefreshMode() {
|
||||
return surfaceView.getRenderingRefreshMode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -202,4 +202,4 @@ public class HttpRequestImpl implements HttpRequest {
|
||||
}
|
||||
return dispatcher;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,4 +69,4 @@ public class HttpRequestUtil {
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,4 +167,4 @@ public abstract class Layer {
|
||||
public boolean isDetached() {
|
||||
return detached;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,4 +239,4 @@ public class Light {
|
||||
|
||||
@Keep
|
||||
private native void nativeSetIntensityTransition(long duration, long delay);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,4 +151,4 @@ public class Light {
|
||||
private native void nativeSet<%- camelize(property.name) %>Transition(long duration, long delay);
|
||||
<% } -%>
|
||||
<% } -%>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -80,4 +80,4 @@ public class FontUtils {
|
||||
}
|
||||
return fonts;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
android:left="0dp"
|
||||
android:right="0dp"
|
||||
android:top="0dp"/>
|
||||
</shape>
|
||||
</shape>
|
||||
|
||||
@@ -7,4 +7,4 @@
|
||||
android:top="2dp"
|
||||
android:bottom="3dp"/>
|
||||
<corners android:radius="7.5dp"/>
|
||||
</shape>
|
||||
</shape>
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user