@@ -8,14 +8,14 @@ apply plugin: "com.facebook.react"
88 */
99react {
1010 /* Folders */
11- // The root of your project, i.e. where "package.json" lives. Default is '..'
12- // root = file("../")
13- // The folder where the react-native NPM package is. Default is ../node_modules/react-native
14- // reactNativeDir = file("../node_modules/react-native")
15- // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
16- // codegenDir = file("../node_modules/@react-native/codegen")
17- // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
18- // cliFile = file("../node_modules/react-native/cli.js")
11+ // The root of your project, i.e. where "package.json" lives. Default is '../.. '
12+ // root = file("../../ ")
13+ // The folder where the react-native NPM package is. Default is ../../ node_modules/react-native
14+ // reactNativeDir = file("../../ node_modules/react-native")
15+ // The folder where the react-native Codegen package is. Default is ../../ node_modules/@react-native/codegen
16+ // codegenDir = file("../../ node_modules/@react-native/codegen")
17+ // The cli.js file which is the React Native CLI entrypoint. Default is ../../ node_modules/react-native/cli.js
18+ // cliFile = file("../../ node_modules/react-native/cli.js")
1919
2020 /* Variants */
2121 // The list of variants to that are debuggable. For those we're going to
@@ -49,6 +49,9 @@ react {
4949 //
5050 // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5151 // hermesFlags = ["-O", "-output-source-map"]
52+
53+ /* Autolinking */
54+ autolinkLibrariesWithApp()
5255}
5356
5457/**
@@ -60,14 +63,14 @@ def enableProguardInReleaseBuilds = false
6063 * The preferred build flavor of JavaScriptCore (JSC)
6164 *
6265 * For example, to use the international variant, you can use:
63- * `def jscFlavor = 'org.webkit:android- jsc-intl:+' `
66+ * `def jscFlavor = io.github.react-native-community: jsc-android- intl:2026004.+ `
6467 *
6568 * The international variant includes ICU i18n library and necessary data
6669 * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
6770 * give correct results when using with locales other than en-US. Note that
6871 * this variant is about 6MiB larger per architecture than default.
6972 */
70- def jscFlavor = ' org.webkit:android- jsc: +'
73+ def jscFlavor = ' io.github.react-native-community: jsc-android:2026004. +'
7174
7275android {
7376 ndkVersion rootProject. ext. ndkVersion
@@ -114,5 +117,3 @@ dependencies {
114117 implementation jscFlavor
115118 }
116119}
117-
118- apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
0 commit comments