File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Modules/@babylonjs/react-native Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 29
29
},
30
30
"peerDependencies" : {
31
31
"@babylonjs/core" : " ^5.0.0-alpha.34" ,
32
- "react" : " ^ 16.13.1" ,
33
- "react-native" : " ^ 0.63.1" ,
32
+ "react" : " >= 16.13.1" ,
33
+ "react-native" : " >= 0.63.1" ,
34
34
"react-native-permissions" : " ^2.1.4"
35
35
},
36
36
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ def safeExtGet(prop, fallback) {
19
19
rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
20
20
}
21
21
22
+ def reactProperties = new Properties ()
23
+ file(" $projectDir /../../../react-native/ReactAndroid/gradle.properties" ). withInputStream { reactProperties. load(it) }
24
+ def REACT_VERSION = reactProperties. getProperty(" VERSION_NAME" ). split(" \\ ." )[1 ]. toInteger()
25
+
22
26
apply plugin : ' com.android.library'
23
27
apply plugin : ' maven'
24
28
@@ -59,6 +63,14 @@ android {
59
63
}
60
64
}
61
65
66
+ // The full/real version of libturbomodulejsijni.so will be built and included in apps using React Native 0.64 or newer,
67
+ // so exclude Babylon React Native's minimal version of these libs in this case.
68
+ if (REACT_VERSION >= 64 ) {
69
+ android. packagingOptions. excludes + = ' lib/armeabi-v7a/libturbomodulejsijni.so'
70
+ android. packagingOptions. excludes + = ' lib/arm64-v8a/libturbomodulejsijni.so'
71
+ android. packagingOptions. excludes + = ' lib/x86/libturbomodulejsijni.so'
72
+ }
73
+
62
74
repositories {
63
75
// ref: https://www.baeldung.com/maven-local-repository
64
76
mavenLocal()
You can’t perform that action at this time.
0 commit comments