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"
url: https://slack.openstreetmap.us/
about: "Join #maplibre-native on the Open Street Map Slack"

View File

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

View File

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

View File

@@ -1,2 +1 @@
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.
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": []
}

View File

@@ -44,4 +44,3 @@
},
"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
src/test/resources/mobile-event*
local.properties

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -47,5 +47,3 @@ public class MapLibreMapAction implements ViewAction {
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));
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -12,4 +12,3 @@
android:paddingTop="4dp"/>
</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 {
generators = listOf(mapboxGenerator)
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -303,4 +303,3 @@
/* 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.";

View File

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

View File

@@ -303,4 +303,3 @@
/* 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.";

View File

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

View File

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

View File

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

View File

@@ -300,4 +300,3 @@
/* User-friendly error description */
"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 */
"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 */
"OSM_SHORT_NAME" = "OSM";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -87,4 +87,3 @@
/* Default user location annotation title */
"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
alignment:src/mbgl/mtl/context.cpp

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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