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

@@ -6,4 +6,3 @@ contact_links:
- name: "💬 Chat with us on Slack" - name: "💬 Chat with us on Slack"
url: https://slack.openstreetmap.us/ url: https://slack.openstreetmap.us/
about: "Join #maplibre-native on the Open Street Map Slack" about: "Join #maplibre-native on the Open Street Map Slack"

View File

@@ -4,6 +4,7 @@ repos:
hooks: hooks:
- id: check-yaml - id: check-yaml
args: [--allow-multiple-documents, --unsafe] args: [--allow-multiple-documents, --unsafe]
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format - repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.4 rev: v19.1.4
hooks: hooks:

View File

@@ -633,4 +633,3 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
``` ```
--- ---

View File

@@ -1,2 +1 @@
include ':app' include ':app'

View File

@@ -59,4 +59,3 @@ No migration plan needed unless we introduce a Phase 3 to cleanup existing platf
Historically the gap has been somewhat filled by the different platform layers. On the iOS platform there is a MapKit style “AnnotationDelegate”, which in some cases draws directly to the mglMap core and in others will add views as subviews to the MGLMapView. On Android there is a whole proposal for updating the Annotations API (design-proposals/2023-06-17-android-annotations.md). Note: This proposal is for purely additive code and we do not plan to change any of these existing systems at this time. Those who have attempted to make complex map applications using these workarounds quickly run into performance issues and other problems like incompatibility with clustering or label collisions. Historically the gap has been somewhat filled by the different platform layers. On the iOS platform there is a MapKit style “AnnotationDelegate”, which in some cases draws directly to the mglMap core and in others will add views as subviews to the MGLMapView. On Android there is a whole proposal for updating the Annotations API (design-proposals/2023-06-17-android-annotations.md). Note: This proposal is for purely additive code and we do not plan to change any of these existing systems at this time. Those who have attempted to make complex map applications using these workarounds quickly run into performance issues and other problems like incompatibility with clustering or label collisions.
If one were to attempt to create such a system using SymbolLayers, they will quickly find that they need to build out a whole system to handle touch events (usually involving querying a screen rect for map features). They will find that if they want to draw many different high resolution images they now need to deal with manually adding images to the stylesheet and the performance implications of doing so. They will also find that any attempts at animating the content can cause full layout recalculations of the map and will rarely animate as expected. If one were to attempt to create such a system using SymbolLayers, they will quickly find that they need to build out a whole system to handle touch events (usually involving querying a screen rect for map features). They will find that if they want to draw many different high resolution images they now need to deal with manually adding images to the stylesheet and the performance implications of doing so. They will also find that any attempts at animating the content can cause full layout recalculations of the map and will rarely animate as expected.

View File

@@ -38,4 +38,3 @@
}, },
"layers": [] "layers": []
} }

View File

@@ -44,4 +44,3 @@
}, },
"layers": [] "layers": []
} }

View File

@@ -942,4 +942,3 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
``` ```
--- ---

View File

@@ -1,4 +1,3 @@
dependency-graph-mapbox-libraries.png dependency-graph-mapbox-libraries.png
src/test/resources/mobile-event* src/test/resources/mobile-event*
local.properties local.properties

View File

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

View File

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

View File

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

View File

@@ -50,4 +50,3 @@
android:visibility="gone"/> android:visibility="gone"/>
</org.maplibre.android.annotations.BubbleLayout> </org.maplibre.android.annotations.BubbleLayout>

View File

@@ -543,4 +543,3 @@ public class EGLLogWrapper implements EGL11 {
} }
} }
} }

View File

@@ -1,3 +1,2 @@
/build /build
local.properties local.properties

View File

@@ -1,4 +1,3 @@
lint-baseline.xml lint-baseline.xml
lint/lint-baseline-local.xml lint/lint-baseline-local.xml
local.properties local.properties

View File

@@ -47,5 +47,3 @@ public class MapLibreMapAction implements ViewAction {
void onInvokeAction(@NonNull UiController uiController, @NonNull MapLibreMap maplibreMap); void onInvokeAction(@NonNull UiController uiController, @NonNull MapLibreMap maplibreMap);
} }
} }

View File

@@ -38,4 +38,3 @@ public final class WaitAction implements ViewAction {
onView(isRoot()).perform(new WaitAction(loopTime)); onView(isRoot()).perform(new WaitAction(loopTime));
} }
} }

View File

@@ -65,4 +65,3 @@ public class CompassViewTest extends EspressoTest {
}); });
} }
} }

View File

@@ -22,4 +22,3 @@
app:backgroundTint="@android:color/white"/> app:backgroundTint="@android:color/white"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@@ -4,5 +4,3 @@
android:id="@+id/fragment_container" android:id="@+id/fragment_container"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"/> android:layout_height="match_parent"/>

View File

@@ -102,5 +102,3 @@
</FrameLayout> </FrameLayout>
</RelativeLayout> </RelativeLayout>

View File

@@ -5,4 +5,3 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"/> android:orientation="vertical"/>

View File

@@ -26,4 +26,3 @@
android:textSize="14sp"/> android:textSize="14sp"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@@ -26,4 +26,3 @@
app:layout_anchorGravity="bottom"/> app:layout_anchorGravity="bottom"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@@ -13,4 +13,3 @@
android:contentDescription="@null"/> android:contentDescription="@null"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>

View File

@@ -12,4 +12,3 @@
android:paddingTop="4dp"/> android:paddingTop="4dp"/>
</org.maplibre.android.testapp.view.MapViewPager> </org.maplibre.android.testapp.view.MapViewPager>

View File

@@ -58,4 +58,3 @@ class CcachePlugin : Plugin<Project> {
} }
} }
} }

View File

@@ -13,5 +13,3 @@ val mapboxGenerator = Generator("mapboxLibraries", // Suffix for our Gradle task
dependencyGraphGenerator { dependencyGraphGenerator {
generators = listOf(mapboxGenerator) generators = listOf(mapboxGenerator)
} }

View File

@@ -24,4 +24,3 @@ You can remove a click listener again with `MapLibreMap.removeOnMapClickListener
</video> </video>
{{ openmaptiles_caption }} {{ openmaptiles_caption }}
</figure> </figure>

View File

@@ -41,4 +41,3 @@ Each method uses `MapLibreMap.animateCamera`, but with a different `CameraUpdate
```kotlin ```kotlin
--8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/camera/ManualZoomActivity.kt:zoomToPoint" --8<-- "MapLibreAndroidTestApp/src/main/java/org/maplibre/android/testapp/activity/camera/ManualZoomActivity.kt:zoomToPoint"
``` ```

View File

@@ -1,3 +1 @@
<%-CHANGELOG-%> <%-CHANGELOG-%>

View File

@@ -2,4 +2,3 @@
/scripts/generate-style-code.list /scripts/generate-style-code.list
/scripts/update-examples.list /scripts/update-examples.list
vulkan.xcworkspace vulkan.xcworkspace

View File

@@ -303,4 +303,3 @@
/* User-friendly error description */ /* User-friendly error description */
"REMOVE_SRC_FAIL_MISMATCH_FMT" = "The source can’t be removed because its identifier, “%@”, belongs to a different source in this style."; "REMOVE_SRC_FAIL_MISMATCH_FMT" = "The source can’t be removed because its identifier, “%@”, belongs to a different source in this style.";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -303,4 +303,3 @@
/* User-friendly error description */ /* User-friendly error description */
"REMOVE_SRC_FAIL_MISMATCH_FMT" = "The source can’t be removed because its identifier, “%@”, belongs to a different source in this style."; "REMOVE_SRC_FAIL_MISMATCH_FMT" = "The source can’t be removed because its identifier, “%@”, belongs to a different source in this style.";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -300,4 +300,3 @@
/* User-friendly error description */ /* User-friendly error description */
"REMOVE_SRC_FAIL_IN_USE_FMT" = "La source « %@ » est en cours d’utilisation, impossible de la supprimer."; "REMOVE_SRC_FAIL_IN_USE_FMT" = "La source « %@ » est en cours d’utilisation, impossible de la supprimer.";

View File

@@ -303,4 +303,3 @@
/* User-friendly error description */ /* User-friendly error description */
"REMOVE_SRC_FAIL_MISMATCH_FMT" = "A fonte non se pode eliminar porque o seu identificador, “%@”, pertence a unha fonte diferente neste estilo."; "REMOVE_SRC_FAIL_MISMATCH_FMT" = "A fonte non se pode eliminar porque o seu identificador, “%@”, pertence a unha fonte diferente neste estilo.";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "오픈스트리트맵"; "OSM_SHORT_NAME" = "오픈스트리트맵";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -294,4 +294,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -119,4 +119,3 @@ MLNMatrix4 MLNMatrix4Make(std::array<double, 16> array) {
}; };
return mat4; return mat4;
} }

View File

@@ -69,4 +69,3 @@
} }
@end @end

View File

@@ -74,4 +74,3 @@
} }
} }
@end @end

View File

@@ -18,4 +18,3 @@ ${fs.readFileSync('platform/default/mbgl/storage/merge_sideloaded.sql', 'utf8')
} // namespace mbgl } // namespace mbgl
`); `);

View File

@@ -20,4 +20,3 @@ ${fs.readFileSync('platform/default/include/mbgl/storage/offline_schema.sql', 'u
} // namespace mbgl } // namespace mbgl
`); `);

View File

@@ -106,4 +106,3 @@
return [[MLNCameraTransitionNaNZoomMapView alloc] initWithFrame:rect styleURL:styleURL]; return [[MLNCameraTransitionNaNZoomMapView alloc] initWithFrame:rect styleURL:styleURL];
} }
@end @end

View File

@@ -249,4 +249,3 @@
} }
@end @end

View File

@@ -347,7 +347,3 @@
} }
} }
@end @end

View File

@@ -4,4 +4,3 @@ set -u
(cd glyphs && ./download.sh) (cd glyphs && ./download.sh)
(cd tiles && ./download.sh) (cd tiles && ./download.sh)

View File

@@ -1,2 +1 @@
*/*.pbf */*.pbf

View File

@@ -32,4 +32,3 @@ verify the font list and run download.sh
4. tiles 4. tiles
run download.sh run download.sh

View File

@@ -1,2 +1 @@
tiles/ tiles/

View File

@@ -105,4 +105,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "You Are Here"; "USER_DOT_TITLE" = "You Are Here";

View File

@@ -108,4 +108,3 @@
/* OpenStreetMap short name attribution */ /* OpenStreetMap short name attribution */
"OSM_SHORT_NAME" = "OSM"; "OSM_SHORT_NAME" = "OSM";

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Ets aquí"; "USER_DOT_TITLE" = "Ets aquí";

View File

@@ -105,4 +105,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "You Are Here"; "USER_DOT_TITLE" = "You Are Here";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Du er her"; "USER_DOT_TITLE" = "Du er her";

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Sie sind hier"; "USER_DOT_TITLE" = "Sie sind hier";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Usted está aquí"; "USER_DOT_TITLE" = "Usted está aquí";

View File

@@ -105,4 +105,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Vous êtes ici"; "USER_DOT_TITLE" = "Vous êtes ici";

View File

@@ -105,4 +105,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Ti estás aquí"; "USER_DOT_TITLE" = "Ti estás aquí";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "אתה נמצא כאן"; "USER_DOT_TITLE" = "אתה נמצא כאן";

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Itt vagy"; "USER_DOT_TITLE" = "Itt vagy";

View File

@@ -72,4 +72,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "現在位置"; "USER_DOT_TITLE" = "現在位置";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "당신의 위치"; "USER_DOT_TITLE" = "당신의 위치";

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Jūs esate čia"; "USER_DOT_TITLE" = "Jūs esate čia";

View File

@@ -4,4 +4,3 @@ null:vendor/metal-cpp/*
# `NS::String*` implicit cast to `NS::Object*` in Context::createProgram # `NS::String*` implicit cast to `NS::Object*` in Context::createProgram
alignment:src/mbgl/mtl/context.cpp alignment:src/mbgl/mtl/context.cpp

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Você Está Aqui"; "USER_DOT_TITLE" = "Você Está Aqui";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Você Está Aqui"; "USER_DOT_TITLE" = "Você Está Aqui";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Вы здесь"; "USER_DOT_TITLE" = "Вы здесь";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Du är här"; "USER_DOT_TITLE" = "Du är här";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Ви тут"; "USER_DOT_TITLE" = "Ви тут";

View File

@@ -111,4 +111,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "Bạn ở Đây"; "USER_DOT_TITLE" = "Bạn ở Đây";

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "你在这里"; "USER_DOT_TITLE" = "你在这里";

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */ /* Default user location annotation title */
"USER_DOT_TITLE" = "你在這裡"; "USER_DOT_TITLE" = "你在這裡";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Zoom Out"; "ZOOM_OUT_TOOLTIP" = "Zoom Out";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "بعّد"; "ZOOM_OUT_TOOLTIP" = "بعّد";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Отдалечи"; "ZOOM_OUT_TOOLTIP" = "Отдалечи";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Allunyar"; "ZOOM_OUT_TOOLTIP" = "Allunyar";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Oddálit"; "ZOOM_OUT_TOOLTIP" = "Oddálit";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Zoom Ud"; "ZOOM_OUT_TOOLTIP" = "Zoom Ud";

View File

@@ -12,4 +12,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Verkleinern"; "ZOOM_OUT_TOOLTIP" = "Verkleinern";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Alejar"; "ZOOM_OUT_TOOLTIP" = "Alejar";

View File

@@ -12,4 +12,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Loitonna"; "ZOOM_OUT_TOOLTIP" = "Loitonna";

View File

@@ -24,4 +24,3 @@
/* Tooltip of Zoom Out button */ /* Tooltip of Zoom Out button */
"ZOOM_OUT_TOOLTIP" = "Dézoomer"; "ZOOM_OUT_TOOLTIP" = "Dézoomer";

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