@@ -20,12 +20,12 @@ react {
20
20
bundleCommand = " export:embed"
21
21
22
22
/* 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")
29
29
30
30
/* Variants */
31
31
// The list of variants to that are debuggable. For those we're going to
@@ -57,6 +57,9 @@ react {
57
57
//
58
58
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
59
59
// hermesFlags = ["-O", "-output-source-map"]
60
+
61
+ /* Autolinking */
62
+ autolinkLibrariesWithApp()
60
63
}
61
64
62
65
/**
@@ -90,8 +93,6 @@ android {
90
93
targetSdkVersion rootProject. ext. targetSdkVersion
91
94
versionCode 1
92
95
versionName " 1.0.0"
93
-
94
- buildConfigField(" boolean" , " REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS" , (findProperty(" reactNative.unstable_useRuntimeSchedulerAlways" ) ?: true ). toString())
95
96
}
96
97
signingConfigs {
97
98
debug {
@@ -112,13 +113,17 @@ android {
112
113
shrinkResources (findProperty(' android.enableShrinkResourcesInReleaseBuilds' )?. toBoolean() ?: false )
113
114
minifyEnabled enableProguardInReleaseBuilds
114
115
proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
116
+ crunchPngs (findProperty(' android.enablePngCrunchInReleaseBuilds' )?. toBoolean() ?: true )
115
117
}
116
118
}
117
119
packagingOptions {
118
120
jniLibs {
119
121
useLegacyPackaging (findProperty(' expo.useLegacyPackaging' )?. toBoolean() ?: false )
120
122
}
121
123
}
124
+ androidResources {
125
+ ignoreAssetsPattern ' !.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~'
126
+ }
122
127
}
123
128
124
129
// Apply static values from `gradle.properties` to the `android.packagingOptions`
@@ -163,14 +168,9 @@ dependencies {
163
168
}
164
169
}
165
170
166
- implementation(" com.facebook.react:flipper-integration" )
167
-
168
171
if (hermesEnabled. toBoolean()) {
169
172
implementation(" com.facebook.react:hermes-android" )
170
173
} else {
171
174
implementation jscFlavor
172
175
}
173
176
}
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