11apply plugin : " com.android.application"
2+ apply plugin : " org.jetbrains.kotlin.android"
23apply plugin : " com.facebook.react"
34apply plugin : " com.google.gms.google-services"
45
@@ -8,14 +9,14 @@ apply plugin: "com.google.gms.google-services"
89 */
910react {
1011 /* 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")
12+ // The root of your project, i.e. where "package.json" lives. Default is '../.. '
13+ // root = file("../../ ")
14+ // The folder where the react-native NPM package is. Default is ../../ node_modules/react-native
15+ // reactNativeDir = file("../../ node_modules/react-native")
16+ // The folder where the react-native Codegen package is. Default is ../../ node_modules/@react-native/codegen
17+ // codegenDir = file("../../ node_modules/@react-native/codegen")
18+ // The cli.js file which is the React Native CLI entrypoint. Default is ../../ node_modules/react-native/cli.js
19+ // cliFile = file("../../ node_modules/react-native/cli.js")
1920
2021 /* Variants */
2122 // The list of variants to that are debuggable. For those we're going to
@@ -49,6 +50,9 @@ react {
4950 //
5051 // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5152 // hermesFlags = ["-O", "-output-source-map"]
53+
54+ /* Autolinking */
55+ autolinkLibrariesWithApp()
5256}
5357
5458/**
@@ -71,8 +75,8 @@ def jscFlavor = 'org.webkit:android-jsc:+'
7175
7276android {
7377 ndkVersion rootProject. ext. ndkVersion
74-
75- compileSdkVersion rootProject. ext. compileSdkVersion
78+ buildToolsVersion rootProject . ext . buildToolsVersion
79+ compileSdk rootProject. ext. compileSdkVersion
7680
7781 namespace " com.example"
7882 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