@@ -2,22 +2,20 @@ apply plugin: "com.android.application"
2
2
apply plugin : " org.jetbrains.kotlin.android"
3
3
apply plugin : " com.facebook.react"
4
4
5
- import com.android.build.OutputFile
6
-
7
5
/**
8
6
* This is the configuration block to customize your React Native Android app.
9
7
* By default you don't need to apply any configuration, just uncomment the lines you need.
10
8
*/
11
9
react {
12
10
/* 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")
21
19
22
20
/* Variants */
23
21
// The list of variants to that are debuggable. For those we're going to
@@ -51,6 +49,9 @@ react {
51
49
//
52
50
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
53
51
// hermesFlags = ["-O", "-output-source-map"]
52
+
53
+ /* Autolinking */
54
+ autolinkLibrariesWithApp()
54
55
}
55
56
56
57
/**
@@ -73,7 +74,6 @@ def jscFlavor = 'org.webkit:android-jsc:+'
73
74
74
75
android {
75
76
ndkVersion rootProject. ext. ndkVersion
76
-
77
77
buildToolsVersion rootProject. ext. buildToolsVersion
78
78
compileSdk rootProject. ext. compileSdkVersion
79
79
@@ -85,7 +85,6 @@ android {
85
85
versionCode 1
86
86
versionName " 1.0"
87
87
}
88
-
89
88
signingConfigs {
90
89
debug {
91
90
storeFile file(' debug.keystore' )
@@ -120,5 +119,3 @@ dependencies {
120
119
implementation jscFlavor
121
120
}
122
121
}
123
-
124
- apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
0 commit comments