11apply plugin : " com.android.application"
2+ apply plugin : " org.jetbrains.kotlin.android"
23apply plugin : " com.facebook.react"
34
45/**
@@ -7,14 +8,14 @@ apply plugin: "com.facebook.react"
78 */
89react {
910 /* Folders */
10- // The root of your project, i.e. where "package.json" lives. Default is '..'
11- // root = file("../")
12- // The folder where the react-native NPM package is. Default is ../node_modules/react-native
13- // reactNativeDir = file("../node_modules/react-native")
14- // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
15- // codegenDir = file("../node_modules/@react-native/codegen")
16- // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
17- // 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")
1819
1920 /* Variants */
2021 // The list of variants to that are debuggable. For those we're going to
@@ -48,6 +49,9 @@ react {
4849 //
4950 // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5051 // hermesFlags = ["-O", "-output-source-map"]
52+
53+ /* Autolinking */
54+ autolinkLibrariesWithApp()
5155}
5256
5357/**
@@ -59,19 +63,19 @@ def enableProguardInReleaseBuilds = false
5963 * The preferred build flavor of JavaScriptCore (JSC)
6064 *
6165 * For example, to use the international variant, you can use:
62- * `def jscFlavor = 'org.webkit:android- jsc-intl:+' `
66+ * `def jscFlavor = io.github.react-native-community: jsc-android- intl:2026004.+ `
6367 *
6468 * The international variant includes ICU i18n library and necessary data
6569 * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
6670 * give correct results when using with locales other than en-US. Note that
6771 * this variant is about 6MiB larger per architecture than default.
6872 */
69- def jscFlavor = ' org.webkit:android- jsc: +'
73+ def jscFlavor = ' io.github.react-native-community: jsc-android:2026004. +'
7074
7175android {
7276 ndkVersion rootProject. ext. ndkVersion
73-
74- compileSdkVersion rootProject. ext. compileSdkVersion
77+ buildToolsVersion rootProject . ext . buildToolsVersion
78+ compileSdk rootProject. ext. compileSdkVersion
7579
7680 namespace " com.auth0samples"
7781 defaultConfig {
@@ -108,17 +112,9 @@ dependencies {
108112 // The version of react-native is set by the React Native Gradle Plugin
109113 implementation(" com.facebook.react:react-android" )
110114
111- debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " )
112- debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
113- exclude group :' com.squareup.okhttp3' , module :' okhttp'
114- }
115-
116- debugImplementation(" com.facebook.flipper:flipper-fresco-plugin:${ FLIPPER_VERSION} " )
117115 if (hermesEnabled. toBoolean()) {
118116 implementation(" com.facebook.react:hermes-android" )
119117 } else {
120118 implementation jscFlavor
121119 }
122120}
123-
124- apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
0 commit comments