@maplibre/maplibre-react-native 11.3.1 → 11.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MapLibreReactNative.podspec +15 -2
- package/android/src/main/java/org/maplibre/reactnative/components/sources/MLRNSource.kt +12 -6
- package/lib/commonjs/plugin/android.js +1 -1
- package/lib/commonjs/plugin/android.js.map +1 -1
- package/lib/commonjs/plugin/ios.js +8 -5
- package/lib/commonjs/plugin/ios.js.map +1 -1
- package/lib/commonjs/plugin/withMapLibre.js +1 -1
- package/lib/module/plugin/android.js +1 -1
- package/lib/module/plugin/android.js.map +1 -1
- package/lib/module/plugin/ios.js +5 -2
- package/lib/module/plugin/ios.js.map +1 -1
- package/lib/module/plugin/withMapLibre.js +1 -1
- package/lib/module/plugin/withMapLibre.js.map +1 -1
- package/lib/typescript/commonjs/plugin/android.d.ts +2 -2
- package/lib/typescript/commonjs/plugin/android.d.ts.map +1 -1
- package/lib/typescript/commonjs/plugin/ios.d.ts +1 -1
- package/lib/typescript/commonjs/plugin/ios.d.ts.map +1 -1
- package/lib/typescript/commonjs/plugin/withMapLibre.d.ts +1 -1
- package/lib/typescript/commonjs/plugin/withMapLibre.d.ts.map +1 -1
- package/lib/typescript/module/plugin/android.d.ts +2 -2
- package/lib/typescript/module/plugin/android.d.ts.map +1 -1
- package/lib/typescript/module/plugin/ios.d.ts +1 -1
- package/lib/typescript/module/plugin/ios.d.ts.map +1 -1
- package/lib/typescript/module/plugin/withMapLibre.d.ts +1 -1
- package/lib/typescript/module/plugin/withMapLibre.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/plugin/android.ts +4 -2
- package/src/plugin/ios.ts +4 -5
- package/src/plugin/withMapLibre.ts +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require "json"
|
|
2
|
+
require "securerandom"
|
|
2
3
|
|
|
3
4
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
5
|
|
|
@@ -15,19 +16,31 @@ $MLRN_SPM_SPEC ||= {
|
|
|
15
16
|
|
|
16
17
|
$MLRN = Object.new
|
|
17
18
|
|
|
19
|
+
# Prevent UUID collisions https://github.com/maplibre/maplibre-react-native/issues/1499
|
|
20
|
+
def $MLRN._mlrn_unique_uuid(project)
|
|
21
|
+
loop do
|
|
22
|
+
candidate = SecureRandom.hex(12).upcase
|
|
23
|
+
return candidate unless project.objects_by_uuid.key?(candidate)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
18
27
|
def $MLRN._add_spm_to_target(project, target, url, requirement, product_name)
|
|
19
28
|
pkg_class = Xcodeproj::Project::Object::XCRemoteSwiftPackageReference
|
|
20
29
|
ref_class = Xcodeproj::Project::Object::XCSwiftPackageProductDependency
|
|
21
30
|
pkg = project.root_object.package_references.find { |p| p.class == pkg_class && p.repositoryURL == url }
|
|
22
31
|
if !pkg
|
|
23
|
-
|
|
32
|
+
pkg_uuid = self._mlrn_unique_uuid(project)
|
|
33
|
+
pkg = pkg_class.new(project, pkg_uuid)
|
|
34
|
+
project.objects_by_uuid[pkg_uuid] = pkg
|
|
24
35
|
pkg.repositoryURL = url
|
|
25
36
|
project.root_object.package_references << pkg
|
|
26
37
|
end
|
|
27
38
|
pkg.requirement = requirement
|
|
28
39
|
ref = target.package_product_dependencies.find { |r| r.class == ref_class && r.package == pkg && r.product_name == product_name }
|
|
29
40
|
if !ref
|
|
30
|
-
|
|
41
|
+
ref_uuid = self._mlrn_unique_uuid(project)
|
|
42
|
+
ref = ref_class.new(project, ref_uuid)
|
|
43
|
+
project.objects_by_uuid[ref_uuid] = ref
|
|
31
44
|
ref.package = pkg
|
|
32
45
|
ref.product_name = product_name
|
|
33
46
|
target.package_product_dependencies << ref
|
|
@@ -136,20 +136,26 @@ abstract class MLRNSource<T : Source?>(
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
fun removeLayer(childPosition: Int) {
|
|
139
|
+
val queuedLayers = mQueuedLayers
|
|
139
140
|
val layer: MLRNLayer? =
|
|
140
|
-
if (
|
|
141
|
-
|
|
141
|
+
if (!queuedLayers.isNullOrEmpty()) {
|
|
142
|
+
queuedLayers.getOrNull(childPosition)
|
|
142
143
|
} else {
|
|
143
|
-
mLayers
|
|
144
|
+
mLayers.getOrNull(childPosition)
|
|
144
145
|
}
|
|
146
|
+
|
|
147
|
+
if (layer == null) return
|
|
148
|
+
|
|
145
149
|
removeLayerFromMap(layer, childPosition)
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
fun getLayerAt(childPosition: Int): MLRNLayer? {
|
|
149
|
-
|
|
150
|
-
|
|
153
|
+
val queuedLayers = mQueuedLayers
|
|
154
|
+
if (!queuedLayers.isNullOrEmpty()) {
|
|
155
|
+
return queuedLayers.getOrNull(childPosition)
|
|
151
156
|
}
|
|
152
|
-
|
|
157
|
+
|
|
158
|
+
return mLayers.getOrNull(childPosition)
|
|
153
159
|
}
|
|
154
160
|
|
|
155
161
|
protected fun addLayerToMap(
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.withGradleProperties = exports.mergeGradleProperties = exports.getGradleProperties = exports.android = exports.GRADLE_PROPERTIES_PREFIX = void 0;
|
|
7
|
-
var _configPlugins = require("
|
|
7
|
+
var _configPlugins = require("expo/config-plugins");
|
|
8
8
|
const GRADLE_PROPERTIES_PREFIX = exports.GRADLE_PROPERTIES_PREFIX = "org.maplibre.reactnative.";
|
|
9
9
|
const getGradleProperties = props => {
|
|
10
10
|
return Object.entries(props?.android || {}).reduce((properties, [key, value]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_configPlugins","require","GRADLE_PROPERTIES_PREFIX","exports","getGradleProperties","props","Object","entries","android","reduce","properties","key","value","push","type","toString","mergeGradleProperties","oldProperties","newProperties","merged","filter","item","startsWith","withGradleProperties","config","gradleProperties","withGradlePropertiesExpo","c","modResults"],"sourceRoot":"../../../src","sources":["plugin/android.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_configPlugins","require","GRADLE_PROPERTIES_PREFIX","exports","getGradleProperties","props","Object","entries","android","reduce","properties","key","value","push","type","toString","mergeGradleProperties","oldProperties","newProperties","merged","filter","item","startsWith","withGradleProperties","config","gradleProperties","withGradlePropertiesExpo","c","modResults"],"sourceRoot":"../../../src","sources":["plugin/android.ts"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAgBO,MAAMC,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GAAG,2BAA2B;AAE5D,MAAME,mBAAmB,GAC9BC,KAA0B,IACP;EACnB,OAAOC,MAAM,CAACC,OAAO,CAACF,KAAK,EAAEG,OAAO,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAChD,CAACC,UAAU,EAAE,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;IAC5B,IAAID,GAAG,IAAIC,KAAK,EAAE;MAChBF,UAAU,CAACG,IAAI,CAAC;QACdC,IAAI,EAAE,UAAU;QAChBH,GAAG,EAAE,GAAGT,wBAAwB,GAAGS,GAAG,EAAE;QACxCC,KAAK,EAAEA,KAAK,CAACG,QAAQ,CAAC;MACxB,CAAC,CAAC;IACJ;IAEA,OAAOL,UAAU;EACnB,CAAC,EACD,EACF,CAAC;AACH,CAAC;AAACP,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAEK,MAAMY,qBAAqB,GAAGA,CACnCC,aAA+B,EAC/BC,aAA6B,KACR;EACrB,MAAMC,MAAM,GAAGF,aAAa,CAACG,MAAM,CAChCC,IAAI,IACH,EACEA,IAAI,CAACP,IAAI,KAAK,UAAU,IACxBO,IAAI,CAACV,GAAG,CAACW,UAAU,CAACpB,wBAAwB,CAAC,CAEnD,CAAC;EAEDiB,MAAM,CAACN,IAAI,CAAC,GAAGK,aAAa,CAAC;EAE7B,OAAOC,MAAM;AACf,CAAC;AAAChB,OAAA,CAAAa,qBAAA,GAAAA,qBAAA;AAEK,MAAMO,oBAAuD,GAAGA,CACrEC,MAAM,EACNnB,KAAK,KACF;EACH,MAAMoB,gBAAgB,GAAGrB,mBAAmB,CAACC,KAAK,CAAC;EAEnD,OAAO,IAAAqB,mCAAwB,EAACF,MAAM,EAAGG,CAAC,IAAK;IAC7CA,CAAC,CAACC,UAAU,GAAGZ,qBAAqB,CAACW,CAAC,CAACC,UAAU,EAAEH,gBAAgB,CAAC;IAEpE,OAAOE,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAACxB,OAAA,CAAAoB,oBAAA,GAAAA,oBAAA;AAEK,MAAMf,OAAO,GAAAL,OAAA,CAAAK,OAAA,GAAG;EACrBe;AACF,CAAC","ignoreList":[]}
|
|
@@ -6,8 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.applyPodfileGlobalVariables = void 0;
|
|
7
7
|
exports.applyPodfilePostInstall = applyPodfilePostInstall;
|
|
8
8
|
exports.withPodfileGlobalVariables = exports.ios = void 0;
|
|
9
|
-
var _configPlugins = require("
|
|
10
|
-
|
|
9
|
+
var _configPlugins = require("expo/config-plugins");
|
|
10
|
+
const {
|
|
11
|
+
mergeContents,
|
|
12
|
+
removeGeneratedContents
|
|
13
|
+
} = _configPlugins.CodeGenerator;
|
|
11
14
|
const TAG_PREFIX = `@maplibre/maplibre-react-native`;
|
|
12
15
|
|
|
13
16
|
/**
|
|
@@ -15,7 +18,7 @@ const TAG_PREFIX = `@maplibre/maplibre-react-native`;
|
|
|
15
18
|
* SPM (Swift Package Manager) which Expo doesn't currently support.
|
|
16
19
|
*/
|
|
17
20
|
function applyPodfilePostInstall(contents) {
|
|
18
|
-
const result =
|
|
21
|
+
const result = mergeContents({
|
|
19
22
|
tag: `${TAG_PREFIX}:post-install`,
|
|
20
23
|
src: contents,
|
|
21
24
|
newSrc: ` $MLRN.post_install(installer)`,
|
|
@@ -44,7 +47,7 @@ const applyPodfileGlobalVariables = (contents, props) => {
|
|
|
44
47
|
globalVariables.push(`$MLRN_SPM_SPEC = ${props.ios.spmSpec}`);
|
|
45
48
|
}
|
|
46
49
|
if (globalVariables.length > 0) {
|
|
47
|
-
return
|
|
50
|
+
return mergeContents({
|
|
48
51
|
tag,
|
|
49
52
|
src: contents,
|
|
50
53
|
newSrc: globalVariables.join("\n"),
|
|
@@ -53,7 +56,7 @@ const applyPodfileGlobalVariables = (contents, props) => {
|
|
|
53
56
|
comment: "#"
|
|
54
57
|
}).contents;
|
|
55
58
|
}
|
|
56
|
-
const modified =
|
|
59
|
+
const modified = removeGeneratedContents(contents, tag);
|
|
57
60
|
return modified ?? contents;
|
|
58
61
|
};
|
|
59
62
|
exports.applyPodfileGlobalVariables = applyPodfileGlobalVariables;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_configPlugins","require","
|
|
1
|
+
{"version":3,"names":["_configPlugins","require","mergeContents","removeGeneratedContents","CodeGenerator","TAG_PREFIX","applyPodfilePostInstall","contents","result","tag","src","newSrc","anchor","offset","comment","didMerge","didClear","withPodfilePostInstall","config","withPodfile","c","modResults","applyPodfileGlobalVariables","props","globalVariables","ios","nativeVersion","push","spmSpec","length","join","modified","exports","withPodfileGlobalVariables","withDwarfDsym","withXcodeProject","debugInformationFormat"],"sourceRoot":"../../../src","sources":["plugin/ios.ts"],"mappings":";;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AASA,MAAM;EAAEC,aAAa;EAAEC;AAAwB,CAAC,GAAGC,4BAAa;AAEhE,MAAMC,UAAU,GAAG,iCAAiC;;AAEpD;AACA;AACA;AACA;AACO,SAASC,uBAAuBA,CAACC,QAAgB,EAAU;EAChE,MAAMC,MAAM,GAAGN,aAAa,CAAC;IAC3BO,GAAG,EAAE,GAAGJ,UAAU,eAAe;IACjCK,GAAG,EAAEH,QAAQ;IACbI,MAAM,EAAE,mCAAmC;IAC3CC,MAAM,EAAE,+BAA+B;IACvCC,MA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AIxB,QAAQ;AAC7B,CAAC;AAACyB,OAAA,CAAAV,2BAAA,GAAAA,2BAAA;AAEK,MAAMW,0BAA6D,GAAGA,CAC3Ef,MAAM,EACNK,KAAK,KACF;EACH,OAAO,IAAAJ,0BAAW,EAACD,MAAM,EAAGE,CAAC,IAAK;IAChCA,CAAC,CAACC,UAAU,CAACd,QAAQ,GAAGe,2BAA2B,CACjDF,CAAC,CAACC,UAAU,CAACd,QAAQ,EACrBgB,KACF,CAAC;IAED,OAAOH,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXAY,OAAA,CAAAC,0BAAA,GAAAA,0BAAA;AAYA,MAAMC,aAA2B,GAAIhB,MAAM,IAAK;EAC9C,OAAO,IAAAiB,+BAAgB,EAACjB,MAAM,EAAGE,CAAC,IAAK;IACrCA,CAAC,CAACC,UAAU,CAACe,sBAAsB,GAAG,iBAAiB;IAEvD,OAAOhB,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAEM,MAAMK,GAAG,GAAAO,OAAA,CAAAP,GAAA,GAAG;EACjBR,sBAAsB;EACtBgB,0BAA0B;EAC1BC;AACF,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _configPlugins = require("
|
|
7
|
+
var _configPlugins = require("expo/config-plugins");
|
|
8
8
|
var _android = require("./android.js");
|
|
9
9
|
var _ios = require("./ios.js");
|
|
10
10
|
let pkg = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { withGradleProperties as withGradlePropertiesExpo } from "
|
|
3
|
+
import { withGradleProperties as withGradlePropertiesExpo } from "expo/config-plugins";
|
|
4
4
|
export const GRADLE_PROPERTIES_PREFIX = "org.maplibre.reactnative.";
|
|
5
5
|
export const getGradleProperties = props => {
|
|
6
6
|
return Object.entries(props?.android || {}).reduce((properties, [key, value]) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["withGradleProperties","withGradlePropertiesExpo","GRADLE_PROPERTIES_PREFIX","getGradleProperties","props","Object","entries","android","reduce","properties","key","value","push","type","toString","mergeGradleProperties","oldProperties","newProperties","merged","filter","item","startsWith","config","gradleProperties","c","modResults"],"sourceRoot":"../../../src","sources":["plugin/android.ts"],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"names":["withGradleProperties","withGradlePropertiesExpo","GRADLE_PROPERTIES_PREFIX","getGradleProperties","props","Object","entries","android","reduce","properties","key","value","push","type","toString","mergeGradleProperties","oldProperties","newProperties","merged","filter","item","startsWith","config","gradleProperties","c","modResults"],"sourceRoot":"../../../src","sources":["plugin/android.ts"],"mappings":";;AAAA,SAGEA,oBAAoB,IAAIC,wBAAwB,QAC3C,qBAAqB;AAY5B,OAAO,MAAMC,wBAAwB,GAAG,2BAA2B;AAEnE,OAAO,MAAMC,mBAAmB,GAC9BC,KAA0B,IACP;EACnB,OAAOC,MAAM,CAACC,OAAO,CAACF,KAAK,EAAEG,OAAO,IAAI,CAAC,CAAC,CAAC,CAACC,MAAM,CAChD,CAACC,UAAU,EAAE,CAACC,GAAG,EAAEC,KAAK,CAAC,KAAK;IAC5B,IAAID,GAAG,IAAIC,KAAK,EAAE;MAChBF,UAAU,CAACG,IAAI,CAAC;QACdC,IAAI,EAAE,UAAU;QAChBH,GAAG,EAAE,GAAGR,wBAAwB,GAAGQ,GAAG,EAAE;QACxCC,KAAK,EAAEA,KAAK,CAACG,QAAQ,CAAC;MACxB,CAAC,CAAC;IACJ;IAEA,OAAOL,UAAU;EACnB,CAAC,EACD,EACF,CAAC;AACH,CAAC;AAED,OAAO,MAAMM,qBAAqB,GAAGA,CACnCC,aAA+B,EAC/BC,aAA6B,KACR;EACrB,MAAMC,MAAM,GAAGF,aAAa,CAACG,MAAM,CAChCC,IAAI,IACH,EACEA,IAAI,CAACP,IAAI,KAAK,UAAU,IACxBO,IAAI,CAACV,GAAG,CAACW,UAAU,CAACnB,wBAAwB,CAAC,CAEnD,CAAC;EAEDgB,MAAM,CAACN,IAAI,CAAC,GAAGK,aAAa,CAAC;EAE7B,OAAOC,MAAM;AACf,CAAC;AAED,OAAO,MAAMlB,oBAAuD,GAAGA,CACrEsB,MAAM,EACNlB,KAAK,KACF;EACH,MAAMmB,gBAAgB,GAAGpB,mBAAmB,CAACC,KAAK,CAAC;EAEnD,OAAOH,wBAAwB,CAACqB,MAAM,EAAGE,CAAC,IAAK;IAC7CA,CAAC,CAACC,UAAU,GAAGV,qBAAqB,CAACS,CAAC,CAACC,UAAU,EAAEF,gBAAgB,CAAC;IAEpE,OAAOC,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMjB,OAAO,GAAG;EACrBP;AACF,CAAC","ignoreList":[]}
|
package/lib/module/plugin/ios.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { withPodfile, withXcodeProject } from "
|
|
4
|
-
|
|
3
|
+
import { CodeGenerator, withPodfile, withXcodeProject } from "expo/config-plugins";
|
|
4
|
+
const {
|
|
5
|
+
mergeContents,
|
|
6
|
+
removeGeneratedContents
|
|
7
|
+
} = CodeGenerator;
|
|
5
8
|
const TAG_PREFIX = `@maplibre/maplibre-react-native`;
|
|
6
9
|
|
|
7
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["withPodfile","withXcodeProject","mergeContents","removeGeneratedContents","TAG_PREFIX","applyPodfilePostInstall","contents","result","tag","src","newSrc","anchor","offset","comment","didMerge","didClear","withPodfilePostInstall","config","c","modResults","applyPodfileGlobalVariables","props","globalVariables","ios","nativeVersion","push","spmSpec","length","join","modified","withPodfileGlobalVariables","withDwarfDsym","debugInformationFormat"],"sourceRoot":"../../../src","sources":["plugin/ios.ts"],"mappings":";;AAAA,
|
|
1
|
+
{"version":3,"names":["CodeGenerator","withPodfile","withXcodeProject","mergeContents","removeGeneratedContents","TAG_PREFIX","applyPodfilePostInstall","contents","result","tag","src","newSrc","anchor","offset","comment","didMerge","didClear","withPodfilePostInstall","config","c","modResults","applyPodfileGlobalVariables","props","globalVariables","ios","nativeVersion","push","spmSpec","length","join","modified","withPodfileGlobalVariables","withDwarfDsym","debugInformationFormat"],"sourceRoot":"../../../src","sources":["plugin/ios.ts"],"mappings":";;AAAA,SACEA,aAAa,EAEbC,WAAW,EACXC,gBAAgB,QACX,qBAAqB;AAI5B,MAAM;EAAEC,aAAa;EAAEC;AAAwB,CAAC,GAAGJ,aAAa;AAEhE,MAAMK,UAAU,GAAG,iCAAiC;;AAEpD;AACA;AACA;AACA;AACA,OAAO,SAASC,uBAAuBA,CAACC,QAAgB,EAAU;EAChE,MAAMC,MAAM,GAAGL,aAAa,CAAC;IAC3BM,GAAG,EAAE,GAAGJ,UAAU,eAAe;IACjCK,GAAG,EAAEH,QAAQ;IACbI,MAAM,EAAE,mCAAmC;IAC3CC,MAAM,EAAE,+BAA+B;IACvCC,MAAM,EAAE,CAAC;IACTC,OAAO,EAAE;EACX,CAAC,CAAC;EAEF,IAAIN,MAAM,CAACO,QAAQ,IAAIP,MAAM,CAACQ,QAAQ,EAAE;IACtC,OAAOR,MAAM,CAACD,QAAQ;EACxB;EAEA,OAAOA,QAAQ;AACjB;AAEA,MAAMU,sBAAoC,GAAIC,MAAM,IAAK;EACvD,OAAOjB,WAAW,CAACiB,MAAM,EAAGC,CAAC,IAAK;IAChCA,CAAC,CAACC,UAAU,CAACb,QAAQ,GAAGD,uBAAuB,CAACa,CAAC,CAACC,UAAU,CAACb,QAAQ,CAAC;IAEtE,OAAOY,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAME,2BAA2B,GAAGA,CACzCd,QAAgB,EAChBe,KAA0B,KACf;EACX,MAAMb,GAAG,GAAG,GAAGJ,U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d,CAAC;EACV,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,MAAMK,GAAG,GAAG;EACjBP,sBAAsB;EACtBc,0BAA0B;EAC1BC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createRunOncePlugin","android","ios","pkg","name","require","withMapLibre","config","props","withGradleProperties","withDwarfDsym","withPodfileGlobalVariables","withPodfilePostInstall","version"],"sourceRoot":"../../../src","sources":["plugin/withMapLibre.ts"],"mappings":";;AAAA,SAA4BA,mBAAmB,QAAQ,
|
|
1
|
+
{"version":3,"names":["createRunOncePlugin","android","ios","pkg","name","require","withMapLibre","config","props","withGradleProperties","withDwarfDsym","withPodfileGlobalVariables","withPodfilePostInstall","version"],"sourceRoot":"../../../src","sources":["plugin/withMapLibre.ts"],"mappings":";;AAAA,SAA4BA,mBAAmB,QAAQ,qBAAqB;AAG5E,SAASC,OAAO,QAAQ,cAAW;AACnC,SAASC,GAAG,QAAQ,UAAO;AAE3B,IAAIC,GAAuC,GAAG;EAC5CC,IAAI,EAAE;AACR,CAAC;AACD,IAAI;EACFD,GAAG,GAAGE,OAAO,CAAC,8CAA8C,CAAC;AAC/D,CAAC,CAAC,MAAM;EACN;AAAA;AAGF,MAAMC,YAA+C,GAAGA,CAACC,MAAM,EAAEC,KAAK,KAAK;EACzE;EACAD,MAAM,GAAGN,OAAO,CAACQ,oBAAoB,CAACF,MAAM,EAAEC,KAAK,CAAC;;EAEpD;EACAD,MAAM,GAAGL,GAAG,CAACQ,aAAa,CAACH,MAAM,CAAC;EAClCA,MAAM,GAAGL,GAAG,CAACS,0BAA0B,CAACJ,MAAM,EAAEC,KAAK,CAAC;EACtDD,MAAM,GAAGL,GAAG,CAACU,sBAAsB,CAACL,MAAM,CAAC;EAE3C,OAAOA,MAAM;AACf,CAAC;AAED,eAAeP,mBAAmB,CAACM,YAAY,EAAEH,GAAG,CAACC,IAAI,EAAED,GAAG,CAACU,OAAO,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ConfigPlugin } from "
|
|
2
|
-
import type { PropertiesItem } from "@expo/config-plugins/build/android/Properties";
|
|
1
|
+
import { type AndroidConfig, type ConfigPlugin } from "expo/config-plugins";
|
|
3
2
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
3
|
+
type PropertiesItem = AndroidConfig.Properties.PropertiesItem;
|
|
4
4
|
type PropertyItem = {
|
|
5
5
|
type: "property";
|
|
6
6
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,
|
|
1
|
+
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EAElB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,cAAc,GAAG,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC;AAE9D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AAEpE,eAAO,MAAM,mBAAmB,GAC9B,OAAO,mBAAmB,KACzB,YAAY,EAed,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,eAAe,cAAc,EAAE,EAC/B,eAAe,YAAY,EAAE,KAC5B,cAAc,EAYhB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,CAWlE,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConfigPlugin } from "
|
|
1
|
+
import { type ConfigPlugin } from "expo/config-plugins";
|
|
2
2
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
3
3
|
/**
|
|
4
4
|
* Only the post-install block is required, the post installer block is used for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/plugin/ios.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/plugin/ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAMjE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAehE;AAUD,eAAO,MAAM,2BAA2B,GACtC,UAAU,MAAM,EAChB,OAAO,mBAAmB,KACzB,MA2BF,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,mBAAmB,CAYxE,CAAC;AAsBF,eAAO,MAAM,GAAG;;;;CAIf,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConfigPlugin } from "
|
|
1
|
+
import { type ConfigPlugin } from "expo/config-plugins";
|
|
2
2
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
3
3
|
declare const _default: ConfigPlugin<MapLibrePluginProps>;
|
|
4
4
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withMapLibre.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withMapLibre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,
|
|
1
|
+
{"version":3,"file":"withMapLibre.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withMapLibre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,qBAAqB,CAAC;AAE7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;;AAyBjE,wBAAwE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ConfigPlugin } from "
|
|
2
|
-
import type { PropertiesItem } from "@expo/config-plugins/build/android/Properties";
|
|
1
|
+
import { type AndroidConfig, type ConfigPlugin } from "expo/config-plugins";
|
|
3
2
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
3
|
+
type PropertiesItem = AndroidConfig.Properties.PropertiesItem;
|
|
4
4
|
type PropertyItem = {
|
|
5
5
|
type: "property";
|
|
6
6
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,
|
|
1
|
+
{"version":3,"file":"android.d.ts","sourceRoot":"","sources":["../../../../src/plugin/android.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,YAAY,EAElB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,KAAK,cAAc,GAAG,aAAa,CAAC,UAAU,CAAC,cAAc,CAAC;AAE9D,KAAK,YAAY,GAAG;IAClB,IAAI,EAAE,UAAU,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,wBAAwB,8BAA8B,CAAC;AAEpE,eAAO,MAAM,mBAAmB,GAC9B,OAAO,mBAAmB,KACzB,YAAY,EAed,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,eAAe,cAAc,EAAE,EAC/B,eAAe,YAAY,EAAE,KAC5B,cAAc,EAYhB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAAY,CAAC,mBAAmB,CAWlE,CAAC;AAEF,eAAO,MAAM,OAAO;;CAEnB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConfigPlugin } from "
|
|
1
|
+
import { type ConfigPlugin } from "expo/config-plugins";
|
|
2
2
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
3
3
|
/**
|
|
4
4
|
* Only the post-install block is required, the post installer block is used for
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/plugin/ios.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ios.d.ts","sourceRoot":"","sources":["../../../../src/plugin/ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAGlB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAMjE;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAehE;AAUD,eAAO,MAAM,2BAA2B,GACtC,UAAU,MAAM,EAChB,OAAO,mBAAmB,KACzB,MA2BF,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YAAY,CAAC,mBAAmB,CAYxE,CAAC;AAsBF,eAAO,MAAM,GAAG;;;;CAIf,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ConfigPlugin } from "
|
|
1
|
+
import { type ConfigPlugin } from "expo/config-plugins";
|
|
2
2
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
3
3
|
declare const _default: ConfigPlugin<MapLibrePluginProps>;
|
|
4
4
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withMapLibre.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withMapLibre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,
|
|
1
|
+
{"version":3,"file":"withMapLibre.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withMapLibre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,qBAAqB,CAAC;AAE7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;;AAyBjE,wBAAwE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maplibre/maplibre-react-native",
|
|
3
3
|
"description": "React Native library for creating maps with MapLibre Native for Android & iOS",
|
|
4
|
-
"version": "11.3.
|
|
4
|
+
"version": "11.3.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": true
|
|
@@ -138,21 +138,21 @@
|
|
|
138
138
|
}
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
|
-
"@expo/config-plugins": ">=54.0.0",
|
|
142
141
|
"@types/geojson": "^7946.0.0",
|
|
143
142
|
"@types/react": ">=19.1.0",
|
|
143
|
+
"expo": ">=54.0.0",
|
|
144
144
|
"react": ">=19.1.0",
|
|
145
145
|
"react-native": ">=0.80.0"
|
|
146
146
|
},
|
|
147
147
|
"peerDependenciesMeta": {
|
|
148
|
-
"@expo/config-plugins": {
|
|
149
|
-
"optional": true
|
|
150
|
-
},
|
|
151
148
|
"@types/geojson": {
|
|
152
149
|
"optional": true
|
|
153
150
|
},
|
|
154
151
|
"@types/react": {
|
|
155
152
|
"optional": true
|
|
153
|
+
},
|
|
154
|
+
"expo": {
|
|
155
|
+
"optional": true
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
"dependencies": {
|
|
@@ -163,7 +163,6 @@
|
|
|
163
163
|
"@turf/nearest-point-on-line": "^7.3.5"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@expo/config-plugins": "56.0.8",
|
|
167
166
|
"@react-native-community/cli": "20.1.3",
|
|
168
167
|
"@react-native/babel-preset": "0.85.3",
|
|
169
168
|
"@react-native/jest-preset": "0.85.3",
|
|
@@ -177,6 +176,7 @@
|
|
|
177
176
|
"@types/react": "19.2.14",
|
|
178
177
|
"eslint": "9.39.4",
|
|
179
178
|
"eslint-config-universe": "15.0.4",
|
|
179
|
+
"expo": "56.0.8",
|
|
180
180
|
"jest": "29.7.0",
|
|
181
181
|
"prettier": "3.8.3",
|
|
182
182
|
"react": "19.2.3",
|
package/src/plugin/android.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
+
type AndroidConfig,
|
|
2
3
|
type ConfigPlugin,
|
|
3
4
|
withGradleProperties as withGradlePropertiesExpo,
|
|
4
|
-
} from "
|
|
5
|
-
import type { PropertiesItem } from "@expo/config-plugins/build/android/Properties";
|
|
5
|
+
} from "expo/config-plugins";
|
|
6
6
|
|
|
7
7
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
8
8
|
|
|
9
|
+
type PropertiesItem = AndroidConfig.Properties.PropertiesItem;
|
|
10
|
+
|
|
9
11
|
type PropertyItem = {
|
|
10
12
|
type: "property";
|
|
11
13
|
key: string;
|
package/src/plugin/ios.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
+
CodeGenerator,
|
|
2
3
|
type ConfigPlugin,
|
|
3
4
|
withPodfile,
|
|
4
5
|
withXcodeProject,
|
|
5
|
-
} from "
|
|
6
|
-
import {
|
|
7
|
-
mergeContents,
|
|
8
|
-
removeGeneratedContents,
|
|
9
|
-
} from "@expo/config-plugins/build/utils/generateCode";
|
|
6
|
+
} from "expo/config-plugins";
|
|
10
7
|
|
|
11
8
|
import type { MapLibrePluginProps } from "./MapLibrePluginProps";
|
|
12
9
|
|
|
10
|
+
const { mergeContents, removeGeneratedContents } = CodeGenerator;
|
|
11
|
+
|
|
13
12
|
const TAG_PREFIX = `@maplibre/maplibre-react-native`;
|
|
14
13
|
|
|
15
14
|
/**
|