@@ -20,12 +20,12 @@ react {
2020 bundleCommand = " export:embed"
2121
2222 /* Folders */
23- // The root of your project, i.e. where "package.json" lives. Default is '..'
24- // root = file("../")
25- // The folder where the react-native NPM package is. Default is ../node_modules/react-native
26- // reactNativeDir = file("../node_modules/react-native")
27- // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
28- // codegenDir = file("../node_modules/@react-native/codegen")
23+ // The root of your project, i.e. where "package.json" lives. Default is '../ ..'
24+ // root = file("../../ ")
25+ // The folder where the react-native NPM package is. Default is ../../ node_modules/react-native
26+ // reactNativeDir = file("../../ node_modules/react-native")
27+ // The folder where the react-native Codegen package is. Default is ../../ node_modules/@react-native/codegen
28+ // codegenDir = file("../../ node_modules/@react-native/codegen")
2929
3030 /* Variants */
3131 // The list of variants to that are debuggable. For those we're going to
@@ -57,6 +57,9 @@ react {
5757 //
5858 // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5959 // hermesFlags = ["-O", "-output-source-map"]
60+
61+ /* Autolinking */
62+ autolinkLibrariesWithApp()
6063}
6164
6265/**
@@ -90,8 +93,6 @@ android {
9093 targetSdkVersion rootProject. ext. targetSdkVersion
9194 versionCode 1
9295 versionName " 1.0.0"
93-
94- buildConfigField(" boolean" , " REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS" , (findProperty(" reactNative.unstable_useRuntimeSchedulerAlways" ) ?: true ). toString())
9596 }
9697 signingConfigs {
9798 debug {
@@ -112,13 +113,17 @@ android {
112113 shrinkResources (findProperty(' android.enableShrinkResourcesInReleaseBuilds' )?. toBoolean() ?: false )
113114 minifyEnabled enableProguardInReleaseBuilds
114115 proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
116+ crunchPngs (findProperty(' android.enablePngCrunchInReleaseBuilds' )?. toBoolean() ?: true )
115117 }
116118 }
117119 packagingOptions {
118120 jniLibs {
119121 useLegacyPackaging (findProperty(' expo.useLegacyPackaging' )?. toBoolean() ?: false )
120122 }
121123 }
124+ androidResources {
125+ ignoreAssetsPattern ' !.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
126+ }
122127}
123128
124129// Apply static values from `gradle.properties` to the `android.packagingOptions`
@@ -163,14 +168,9 @@ dependencies {
163168 }
164169 }
165170
166- implementation(" com.facebook.react:flipper-integration" )
167-
168171 if (hermesEnabled. toBoolean()) {
169172 implementation(" com.facebook.react:hermes-android" )
170173 } else {
171174 implementation jscFlavor
172175 }
173176}
174-
175- apply from : new File ([" node" , " --print" , " require.resolve('@react-native-community/cli-platform-android/package.json', { paths: [require.resolve('react-native/package.json')] })" ]. execute(null , rootDir). text. trim(), " ../native_modules.gradle" );
176- applyNativeModulesAppBuildGradle(project)
0 commit comments