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/**
@@ -70,8 +74,8 @@ def jscFlavor = 'org.webkit:android-jsc:+'
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.audiowaveformexample"
7781 defaultConfig {
@@ -106,19 +110,10 @@ android {
106110dependencies {
107111 // The version of react-native is set by the React Native Gradle Plugin
108112 implementation(" com.facebook.react:react-android" )
109- implementation ' com.facebook.fresco:animated-gif:2.5.0'
110113
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} " )
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