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:
1
.github/ISSUE_TEMPLATE/config.yml
vendored
1
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -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"
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -633,4 +633,3 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
include ':app'
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -126,5 +126,3 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -131,5 +131,3 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -58,4 +58,3 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@
|
||||
},
|
||||
"layers": []
|
||||
}
|
||||
|
||||
|
||||
@@ -44,4 +44,3 @@
|
||||
},
|
||||
"layers": []
|
||||
}
|
||||
|
||||
|
||||
@@ -942,4 +942,3 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
1
platform/android/MapLibreAndroid/.gitignore
vendored
1
platform/android/MapLibreAndroid/.gitignore
vendored
@@ -1,4 +1,3 @@
|
||||
dependency-graph-mapbox-libraries.png
|
||||
src/test/resources/mobile-event*
|
||||
local.properties
|
||||
|
||||
|
||||
@@ -52,4 +52,3 @@ public abstract class LibraryLoader {
|
||||
|
||||
public abstract void load(String name);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,4 +30,3 @@ public interface CompassListener {
|
||||
*/
|
||||
void onCompassAccuracyChange(int compassStatus);
|
||||
}
|
||||
|
||||
|
||||
@@ -239,4 +239,3 @@ public class LocationEngineRequest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -50,4 +50,3 @@
|
||||
android:visibility="gone"/>
|
||||
|
||||
</org.maplibre.android.annotations.BubbleLayout>
|
||||
|
||||
|
||||
@@ -543,4 +543,3 @@ public class EGLLogWrapper implements EGL11 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
/build
|
||||
local.properties
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
lint-baseline.xml
|
||||
lint/lint-baseline-local.xml
|
||||
local.properties
|
||||
|
||||
|
||||
@@ -47,5 +47,3 @@ public class MapLibreMapAction implements ViewAction {
|
||||
void onInvokeAction(@NonNull UiController uiController, @NonNull MapLibreMap maplibreMap);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -38,4 +38,3 @@ public final class WaitAction implements ViewAction {
|
||||
onView(isRoot()).perform(new WaitAction(loopTime));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -65,4 +65,3 @@ public class CompassViewTest extends EspressoTest {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,4 +22,3 @@
|
||||
app:backgroundTint="@android:color/white"/>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
@@ -4,5 +4,3 @@
|
||||
android:id="@+id/fragment_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
|
||||
|
||||
@@ -102,5 +102,3 @@
|
||||
</FrameLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
@@ -5,4 +5,3 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"/>
|
||||
|
||||
|
||||
@@ -26,4 +26,3 @@
|
||||
android:textSize="14sp"/>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
@@ -26,4 +26,3 @@
|
||||
app:layout_anchorGravity="bottom"/>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
@@ -13,4 +13,3 @@
|
||||
android:contentDescription="@null"/>
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
||||
|
||||
|
||||
@@ -12,4 +12,3 @@
|
||||
android:paddingTop="4dp"/>
|
||||
|
||||
</org.maplibre.android.testapp.view.MapViewPager>
|
||||
|
||||
|
||||
@@ -58,4 +58,3 @@ class CcachePlugin : Plugin<Project> {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -13,5 +13,3 @@ val mapboxGenerator = Generator("mapboxLibraries", // Suffix for our Gradle task
|
||||
dependencyGraphGenerator {
|
||||
generators = listOf(mapboxGenerator)
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@ You can remove a click listener again with `MapLibreMap.removeOnMapClickListener
|
||||
</video>
|
||||
{{ openmaptiles_caption }}
|
||||
</figure>
|
||||
|
||||
|
||||
@@ -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"
|
||||
```
|
||||
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
<%-CHANGELOG-%>
|
||||
|
||||
|
||||
|
||||
1
platform/darwin/.gitignore
vendored
1
platform/darwin/.gitignore
vendored
@@ -2,4 +2,3 @@
|
||||
/scripts/generate-style-code.list
|
||||
/scripts/update-examples.list
|
||||
vulkan.xcworkspace
|
||||
|
||||
|
||||
@@ -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.";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -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.";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -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.";
|
||||
|
||||
|
||||
@@ -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.";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "오픈스트리트맵";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -294,4 +294,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -119,4 +119,3 @@ MLNMatrix4 MLNMatrix4Make(std::array<double, 16> array) {
|
||||
};
|
||||
return mat4;
|
||||
}
|
||||
|
||||
|
||||
@@ -69,4 +69,3 @@
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -74,4 +74,3 @@
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
@@ -18,4 +18,3 @@ ${fs.readFileSync('platform/default/mbgl/storage/merge_sideloaded.sql', 'utf8')
|
||||
|
||||
} // namespace mbgl
|
||||
`);
|
||||
|
||||
|
||||
@@ -20,4 +20,3 @@ ${fs.readFileSync('platform/default/include/mbgl/storage/offline_schema.sql', 'u
|
||||
|
||||
} // namespace mbgl
|
||||
`);
|
||||
|
||||
|
||||
@@ -106,4 +106,3 @@
|
||||
return [[MLNCameraTransitionNaNZoomMapView alloc] initWithFrame:rect styleURL:styleURL];
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
@@ -249,4 +249,3 @@
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -347,7 +347,3 @@
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ set -u
|
||||
|
||||
(cd glyphs && ./download.sh)
|
||||
(cd tiles && ./download.sh)
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
*/*.pbf
|
||||
|
||||
|
||||
@@ -32,4 +32,3 @@ verify the font list and run download.sh
|
||||
|
||||
4. tiles
|
||||
run download.sh
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
tiles/
|
||||
|
||||
|
||||
@@ -105,4 +105,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "You Are Here";
|
||||
|
||||
|
||||
@@ -108,4 +108,3 @@
|
||||
|
||||
/* OpenStreetMap short name attribution */
|
||||
"OSM_SHORT_NAME" = "OSM";
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Ets aquí";
|
||||
|
||||
|
||||
@@ -105,4 +105,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "You Are Here";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Du er her";
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Sie sind hier";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Usted está aquí";
|
||||
|
||||
|
||||
@@ -105,4 +105,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Vous êtes ici";
|
||||
|
||||
|
||||
@@ -105,4 +105,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Ti estás aquí";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "אתה נמצא כאן";
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Itt vagy";
|
||||
|
||||
|
||||
@@ -72,4 +72,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "現在位置";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "당신의 위치";
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Jūs esate čia";
|
||||
|
||||
|
||||
@@ -4,4 +4,3 @@ null:vendor/metal-cpp/*
|
||||
|
||||
# `NS::String*` implicit cast to `NS::Object*` in Context::createProgram
|
||||
alignment:src/mbgl/mtl/context.cpp
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Você Está Aqui";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Você Está Aqui";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Вы здесь";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Du är här";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Ви тут";
|
||||
|
||||
|
||||
@@ -111,4 +111,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "Bạn ở Đây";
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "你在这里";
|
||||
|
||||
|
||||
@@ -87,4 +87,3 @@
|
||||
|
||||
/* Default user location annotation title */
|
||||
"USER_DOT_TITLE" = "你在這裡";
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Zoom Out";
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "بعّد";
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Отдалечи";
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Allunyar";
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Oddálit";
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Zoom Ud";
|
||||
|
||||
|
||||
@@ -12,4 +12,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Verkleinern";
|
||||
|
||||
|
||||
@@ -24,4 +24,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Alejar";
|
||||
|
||||
|
||||
@@ -12,4 +12,3 @@
|
||||
|
||||
/* Tooltip of Zoom Out button */
|
||||
"ZOOM_OUT_TOOLTIP" = "Loitonna";
|
||||
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user