@@ -17,14 +17,14 @@ import com.android.build.OutputFile
17
17
*/
18
18
react {
19
19
/* Folders */
20
- // The root of your project, i.e. where "package.json" lives. Default is '..'
21
- // root = file("../")
22
- // The folder where the react-native NPM package is. Default is ../node_modules/react-native
23
- // reactNativeDir = file("../node_modules/react-native")
24
- // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
25
- // codegenDir = file("../node_modules/@react-native/codegen")
26
- // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
27
- // cliFile = file("../node_modules/react-native/cli.js")
20
+ // The root of your project, i.e. where "package.json" lives. Default is '../.. '
21
+ // root = file("../../ ")
22
+ // The folder where the react-native NPM package is. Default is ../../ node_modules/react-native
23
+ // reactNativeDir = file("../../ node_modules/react-native")
24
+ // The folder where the react-native Codegen package is. Default is ../../ node_modules/@react-native/codegen
25
+ // codegenDir = file("../../ node_modules/@react-native/codegen")
26
+ // The cli.js file which is the React Native CLI entrypoint. Default is ../../ node_modules/react-native/cli.js
27
+ // cliFile = file("../../ node_modules/react-native/cli.js")
28
28
29
29
/* Variants */
30
30
// The list of variants to that are debuggable. For those we're going to
@@ -58,6 +58,9 @@ react {
58
58
//
59
59
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
60
60
// hermesFlags = ["-O", "-output-source-map"]
61
+
62
+ /* Autolinking */
63
+ autolinkLibrariesWithApp()
61
64
}
62
65
63
66
/**
@@ -232,8 +235,6 @@ tasks.register('copyDownloadableDepsToLibs', Copy) {
232
235
into ' libs'
233
236
}
234
237
235
- apply from : file(" ../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle" ); applyNativeModulesAppBuildGradle(project)
236
-
237
238
protobuf {
238
239
protoc {
239
240
artifact = " com.google.protobuf:protoc:3.24.1"
0 commit comments