react-native-cesium 1.2.14 → 1.2.15
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/README.md +2 -0
- package/android/build.gradle +6 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -153,6 +153,8 @@ What happens on **`./gradlew`** / Android Studio build:
|
|
|
153
153
|
|
|
154
154
|
You still need a discoverable **Android NDK** (expand **Additional Android specific requirements** under [System dependencies](#system-dependencies) above) so that build can succeed.
|
|
155
155
|
|
|
156
|
+
**Maintainers:** verify Android builds with **Gradle 9.3+** (as in React Native 0.85+ templates; this repo’s example app uses the wrapper under `example/android/gradle/wrapper/`).
|
|
157
|
+
|
|
156
158
|
### Building
|
|
157
159
|
|
|
158
160
|
**Automatic (default):** assuming you have done the above and have all the required dependencies in place, when the native output is missing, the package tries to build it for you:
|
package/android/build.gradle
CHANGED
|
@@ -31,14 +31,12 @@ if (isNewArchitectureEnabled()) {
|
|
|
31
31
|
|
|
32
32
|
def reactNativeCesiumPackageDir = projectDir.parentFile
|
|
33
33
|
|
|
34
|
-
tasks.register('ensureCesiumNativeAndroid') {
|
|
34
|
+
tasks.register('ensureCesiumNativeAndroid', Exec) {
|
|
35
35
|
group 'cesium'
|
|
36
36
|
description 'If vendor/android Cesium Native is missing, runs scripts/cesium/ensure-native.mjs (update + build). Can take a long time.'
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return
|
|
41
|
-
}
|
|
37
|
+
def marker = new File(reactNativeCesiumPackageDir, 'vendor/android/share/cesium-native/cmake/cesium-nativeConfig.cmake')
|
|
38
|
+
onlyIf { !marker.exists() }
|
|
39
|
+
doFirst {
|
|
42
40
|
if (System.getenv('REACT_NATIVE_CESIUM_SKIP_NATIVE_BUILD') == '1') {
|
|
43
41
|
throw new RuntimeException(
|
|
44
42
|
'react-native-cesium: Android Cesium Native artifacts are missing under vendor/android. ' +
|
|
@@ -46,11 +44,9 @@ tasks.register('ensureCesiumNativeAndroid') {
|
|
|
46
44
|
'Or unset REACT_NATIVE_CESIUM_SKIP_NATIVE_BUILD to allow automatic build during Gradle. See package README.'
|
|
47
45
|
)
|
|
48
46
|
}
|
|
49
|
-
project.exec {
|
|
50
|
-
workingDir reactNativeCesiumPackageDir
|
|
51
|
-
commandLine 'node', 'scripts/cesium/ensure-native.mjs', '--android'
|
|
52
|
-
}
|
|
53
47
|
}
|
|
48
|
+
workingDir reactNativeCesiumPackageDir
|
|
49
|
+
commandLine 'node', 'scripts/cesium/ensure-native.mjs', '--android'
|
|
54
50
|
}
|
|
55
51
|
|
|
56
52
|
tasks.preBuild {
|