|
@@ -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",
|
|
@@ -76,7 +76,9 @@ import com.android.build.OutputFile
|
76
|
76
|
*/
|
77
|
77
|
|
78
|
78
|
project.ext.react = [
|
79
|
|
- entryFile: "index.js",
|
|
79
|
+ cliPath: "../../../node_modules/react-native/local-cli/cli.js",
|
|
80
|
+ entryFile: "./example/index.js",
|
|
81
|
+ root: "../../../",
|
80
|
82
|
enableHermes: false, // clean and rebuild if changing
|
81
|
83
|
]
|
82
|
84
|
|
|
@@ -179,6 +181,7 @@ android {
|
179
|
181
|
}
|
180
|
182
|
|
181
|
183
|
dependencies {
|
|
184
|
+ implementation project(':rnWebView')
|
182
|
185
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
183
|
186
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
184
|
187
|
|