@@ -2,22 +2,20 @@ apply plugin: "com.android.application"
22apply plugin : " org.jetbrains.kotlin.android"
33apply plugin : " com.facebook.react"
44
5- import com.android.build.OutputFile
6-
75/**
86 * This is the configuration block to customize your React Native Android app.
97 * By default you don't need to apply any configuration, just uncomment the lines you need.
108 */
119react {
1210 /* Folders */
13- // The root of your project, i.e. where "package.json" lives. Default is '..'
14- // root = file("../")
15- // The folder where the react-native NPM package is. Default is ../node_modules/react-native
16- // reactNativeDir = file("../node_modules/react-native")
17- // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
18- // codegenDir = file("../node_modules/@react-native/codegen")
19- // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
20- // 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")
2119
2220 /* Variants */
2321 // The list of variants to that are debuggable. For those we're going to
@@ -51,6 +49,9 @@ react {
5149 //
5250 // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5351 // hermesFlags = ["-O", "-output-source-map"]
52+
53+ /* Autolinking */
54+ autolinkLibrariesWithApp()
5455}
5556
5657/**
@@ -73,7 +74,6 @@ def jscFlavor = 'org.webkit:android-jsc:+'
7374
7475android {
7576 ndkVersion rootProject. ext. ndkVersion
76-
7777 buildToolsVersion rootProject. ext. buildToolsVersion
7878 compileSdk rootProject. ext. compileSdkVersion
7979
@@ -85,7 +85,6 @@ android {
8585 versionCode 1
8686 versionName " 1.0"
8787 }
88-
8988 signingConfigs {
9089 debug {
9190 storeFile file(' debug.keystore' )
@@ -112,13 +111,9 @@ dependencies {
112111 // The version of react-native is set by the React Native Gradle Plugin
113112 implementation(" com.facebook.react:react-android" )
114113
115- implementation(project(' :rncamerakit' ))
116-
117114 if (hermesEnabled. toBoolean()) {
118115 implementation(" com.facebook.react:hermes-android" )
119116 } else {
120117 implementation jscFlavor
121118 }
122119}
123-
124- apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
0 commit comments