File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
ios/AsyncStorageExample.xcworkspace Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ task fetchDependencies() {
28
28
buildscript {
29
29
def androidTestAppDir = " ../../node_modules/react-native-test-app/android"
30
30
apply from : " $androidTestAppDir /dependencies.gradle"
31
+ apply from : " ${ androidTestAppDir} /test-app-util.gradle"
31
32
32
33
// Mainly for Detox testing for using Next Storage
33
34
// when building next, force using next storage
@@ -43,11 +44,26 @@ buildscript {
43
44
}
44
45
45
46
dependencies {
46
- classpath " com.android.tools.build:gradle:$androidPluginVersion "
47
+ getReactNativeDependencies(). each { dependency ->
48
+ classpath(dependency)
49
+ }
50
+
51
+ if (isNewArchitectureEnabled(project)) {
52
+ classpath(" com.facebook.react:react-native-gradle-plugin" )
53
+ classpath(" de.undercouch:gradle-download-task:5.1.0" )
54
+ }
47
55
}
48
56
}
49
57
50
58
allprojects {
59
+ // TODO: remove when https://github.com/facebook/react-native/issues/35495 is fixed
60
+ project. pluginManager. withPlugin(" com.facebook.react" ) {
61
+ react {
62
+ reactNativeDir = rootProject. file(" ../../node_modules/react-native/" )
63
+ codegenDir = rootProject. file(" ../../node_modules/react-native-codegen/" )
64
+ }
65
+ }
66
+
51
67
repositories {
52
68
maven {
53
69
url(" $rootDir /../../node_modules/detox/Detox-android" )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ android.enableJetifier=true
36
36
37
37
# Enable new architecture, i.e. Fabric + TurboModule - implies USE_FABRIC=1.
38
38
# Note that this is incompatible with web debugging.
39
- # newArchEnabled=true
39
+ newArchEnabled =true
40
40
41
41
# Uncomment the line below if building react-native from source
42
42
# ANDROID_NDK_VERSION=21.4.7075529
@@ -50,3 +50,5 @@ KOTLIN_VERSION=1.6.21
50
50
# Enable dedicated thread pool executor
51
51
AsyncStorage_dedicatedExecutor =true
52
52
AsyncStorage_useNextStorage =true
53
+
54
+ REACT_NATIVE_NODE_MODULES_DIR =../node_modules/react-native
You can’t perform that action at this time.
0 commit comments