Change Android package and class names away from mapbox (#1201)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart@emeel.net>
This commit is contained in:
@@ -11,7 +11,7 @@ namespace android {
|
||||
using SuperTag = jni::ObjectTag;
|
||||
class Formatted : private mbgl::util::noncopyable {
|
||||
public:
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/types/Formatted"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/types/Formatted"; };
|
||||
|
||||
static jni::Local<jni::Object<Formatted>> New(jni::JNIEnv &, const style::expression::Formatted &value);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace android {
|
||||
|
||||
class FormattedSection : private mbgl::util::noncopyable {
|
||||
public:
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/types/FormattedSection"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/types/FormattedSection"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
};
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class BackgroundLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/BackgroundLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/BackgroundLayer"; };
|
||||
|
||||
BackgroundLayer(jni::JNIEnv&, jni::String&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class CircleLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/CircleLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/CircleLayer"; };
|
||||
|
||||
CircleLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace android {
|
||||
class CustomLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/CustomLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/CustomLayer"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class FillExtrusionLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/FillExtrusionLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/FillExtrusionLayer"; };
|
||||
|
||||
FillExtrusionLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class FillLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/FillLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/FillLayer"; };
|
||||
|
||||
FillLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class HeatmapLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/HeatmapLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/HeatmapLayer"; };
|
||||
|
||||
HeatmapLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class HillshadeLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/HillshadeLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/HillshadeLayer"; };
|
||||
|
||||
HillshadeLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace android {
|
||||
|
||||
class Layer {
|
||||
public:
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/Layer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/Layer"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -19,9 +19,9 @@ class <%- camelize(type) %>Layer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
<% if (type === 'location-indicator') { -%>
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/location/<%- camelize(type) %>Layer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/location/<%- camelize(type) %>Layer"; };
|
||||
<% } else { -%>
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/<%- camelize(type) %>Layer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/<%- camelize(type) %>Layer"; };
|
||||
<% } -%>
|
||||
|
||||
<% if (type === 'background' || type === 'location-indicator') { -%>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class LineLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/LineLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/LineLayer"; };
|
||||
|
||||
LineLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class LocationIndicatorLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/location/LocationIndicatorLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/location/LocationIndicatorLayer"; };
|
||||
|
||||
LocationIndicatorLayer(jni::JNIEnv&, jni::String&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class RasterLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/RasterLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/RasterLayer"; };
|
||||
|
||||
RasterLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
class SymbolLayer : public Layer {
|
||||
public:
|
||||
using SuperTag = Layer;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/SymbolLayer"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/SymbolLayer"; };
|
||||
|
||||
SymbolLayer(jni::JNIEnv&, jni::String&, jni::String&);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ using namespace style;
|
||||
|
||||
class Light : private mbgl::util::noncopyable {
|
||||
public:
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/light/Light"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/light/Light"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace android {
|
||||
|
||||
class Position : private mbgl::util::noncopyable {
|
||||
public:
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/light/Position"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/light/Position"; };
|
||||
|
||||
static jni::Local<jni::Object<Position>> fromPosition(jni::JNIEnv&, jfloat, jfloat, jfloat);
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace android {
|
||||
class CustomGeometrySource : public Source {
|
||||
public:
|
||||
using SuperTag = Source;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/CustomGeometrySource"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/CustomGeometrySource"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ struct Update {
|
||||
class GeoJSONSource : public Source {
|
||||
public:
|
||||
using SuperTag = Source;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/GeoJsonSource"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/GeoJsonSource"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ class Bitmap;
|
||||
class ImageSource : public Source {
|
||||
public:
|
||||
using SuperTag = Source;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/ImageSource"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/ImageSource"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace android {
|
||||
class RasterDEMSource : public Source {
|
||||
public:
|
||||
using SuperTag = Source;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/RasterDemSource"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/RasterDemSource"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace android {
|
||||
class RasterSource : public Source {
|
||||
public:
|
||||
using SuperTag = Source;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/RasterSource"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/RasterSource"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace android {
|
||||
|
||||
class Source : private mbgl::util::noncopyable {
|
||||
public:
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/Source"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/Source"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace android {
|
||||
class UnknownSource : public Source {
|
||||
public:
|
||||
using SuperTag = Source;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/UnknownSource"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/UnknownSource"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace android {
|
||||
class VectorSource : public Source {
|
||||
public:
|
||||
using SuperTag = Source;
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/VectorSource"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/sources/VectorSource"; };
|
||||
|
||||
static void registerNative(jni::JNIEnv&);
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace android {
|
||||
|
||||
class TransitionOptions : private mbgl::util::noncopyable {
|
||||
public:
|
||||
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/TransitionOptions"; };
|
||||
static constexpr auto Name() { return "org/maplibre/android/style/layers/TransitionOptions"; };
|
||||
|
||||
static jni::Local<jni::Object<TransitionOptions>> fromTransitionOptions(jni::JNIEnv&,
|
||||
jlong duration,
|
||||
|
||||
Reference in New Issue
Block a user