|
@@ -9,7 +9,7 @@ import com.android.build.OutputFile
|
9
|
9
|
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
|
10
|
10
|
* bundle directly from the development server. Below you can see all the possible configurations
|
11
|
11
|
* and their defaults. If you decide to add a configuration block, make sure to add it before the
|
12
|
|
- * `apply from: "../../node_modules/react-native/react.gradle"` line.
|
|
12
|
+ * `apply from: "../../../node_modules/react-native/react.gradle"` line.
|
13
|
13
|
*
|
14
|
14
|
* project.ext.react = [
|
15
|
15
|
* // the name of the generated asset file containing your JS bundle
|
|
@@ -44,7 +44,7 @@ import com.android.build.OutputFile
|
44
|
44
|
* // 'devDisabledIn${buildType}'
|
45
|
45
|
*
|
46
|
46
|
* // the root of your project, i.e. where "package.json" lives
|
47
|
|
- * root: "../../",
|
|
47
|
+ * root: "../../../",
|
48
|
48
|
*
|
49
|
49
|
* // where to put the JS bundle asset in debug mode
|
50
|
50
|
* jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
|
|
@@ -80,7 +80,7 @@ project.ext.react = [
|
80
|
80
|
enableHermes: false, // clean and rebuild if changing
|
81
|
81
|
]
|
82
|
82
|
|
83
|
|
-apply from: "../../node_modules/react-native/react.gradle"
|
|
83
|
+apply from: "../../../node_modules/react-native/react.gradle"
|
84
|
84
|
|
85
|
85
|
/**
|
86
|
86
|
* Set this to true to create two separate APKs instead of one:
|
|
@@ -183,7 +183,7 @@ dependencies {
|
183
|
183
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
184
|
184
|
|
185
|
185
|
if (enableHermes) {
|
186
|
|
- def hermesPath = "../../node_modules/hermes-engine/android/";
|
|
186
|
+ def hermesPath = "../../../node_modules/hermes-engine/android/";
|
187
|
187
|
debugImplementation files(hermesPath + "hermes-debug.aar")
|
188
|
188
|
releaseImplementation files(hermesPath + "hermes-release.aar")
|
189
|
189
|
} else {
|
|
@@ -198,4 +198,4 @@ task copyDownloadableDepsToLibs(type: Copy) {
|
198
|
198
|
into 'libs'
|
199
|
199
|
}
|
200
|
200
|
|
201
|
|
-apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
|
201
|
+apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|