@@ -16,7 +16,9 @@ import org.apache.tools.ant.taskdefs.condition.Os
1616 * // the name of the generated asset file containing your JS bundle
1717 * bundleAssetName: "index.android.bundle",
1818 *
19- * // the entry file for bundle generation
19+ * // the entry file for bundle generation. If none specified and
20+ * // "index.android.js" exists, it will be used. Otherwise "index.js" is
21+ * // default. Can be overridden with ENTRY_FILE environment variable.
2022 * entryFile: "index.android.js",
2123 *
2224 * // https://reactnative.dev/docs/performance#enable-the-ram-format
@@ -38,7 +40,7 @@ import org.apache.tools.ant.taskdefs.condition.Os
3840 * // bundleInBeta: true,
3941 *
4042 * // whether to disable dev mode in custom build variants (by default only disabled in release)
41- * // for BlobCourierExample : to disable dev mode in the staging build type (if configured)
43+ * // for example : to disable dev mode in the staging build type (if configured)
4244 * devDisabledInStaging: true,
4345 * // The configuration property can be in the following formats
4446 * // 'devDisabledIn${productFlavor}${buildType}'
@@ -65,7 +67,7 @@ import org.apache.tools.ant.taskdefs.condition.Os
6567 * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
6668 * // date; if you have any other folders that you want to ignore for performance reasons (gradle
6769 * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
68- * // for BlobCourierExample , you might want to remove it from here.
70+ * // for example , you might want to remove it from here.
6971 * inputExcludes: ["android/**", "ios/**"],
7072 *
7173 * // override which node gets called and with what additional arguments
@@ -78,7 +80,6 @@ import org.apache.tools.ant.taskdefs.condition.Os
7880
7981project. ext. react = [
8082 enableHermes : false , // clean and rebuild if changing
81- bundleInRelease : true , // whether to bundle JS and assets in release mode
8283]
8384
8485apply from : " ../../node_modules/react-native/react.gradle"
@@ -101,7 +102,7 @@ def enableProguardInReleaseBuilds = false
101102/**
102103 * The preferred build flavor of JavaScriptCore.
103104 *
104- * For BlobCourierExample , to use the international variant, you can use:
105+ * For example , to use the international variant, you can use:
105106 * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
106107 *
107108 * The international variant includes ICU i18n library and necessary data
@@ -133,11 +134,6 @@ android {
133134
134135 compileSdkVersion rootProject. ext. compileSdkVersion
135136
136- compileOptions {
137- sourceCompatibility JavaVersion . VERSION_11
138- targetCompatibility JavaVersion . VERSION_11
139- }
140-
141137 defaultConfig {
142138 applicationId " io.deckers.blob_courier_example"
143139 minSdkVersion rootProject. ext. minSdkVersion
@@ -220,8 +216,8 @@ android {
220216 }
221217
222218 lintOptions {
223- abortOnError true
224- checkReleaseBuilds true
219+ abortOnError true
220+ checkReleaseBuilds true
225221 }
226222
227223 splits {
@@ -252,11 +248,13 @@ android {
252248 proguardFiles getDefaultProguardFile(" proguard-android.txt" ), " proguard-rules.pro"
253249 }
254250 }
251+
255252 // applicationVariants are e.g. debug, release
256253 applicationVariants. all { variant ->
257254 variant. outputs. each { output ->
258255 // For each separate APK per architecture, set a unique version code as described here:
259256 // https://developer.android.com/studio/build/configure-apk-splits.html
257+ // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc.
260258 def versionCodes = [" armeabi-v7a" : 1 , " x86" : 2 , " arm64-v8a" : 3 , " x86_64" : 4 ]
261259 def abi = output. getFilter(OutputFile . ABI )
262260 if (abi != null ) { // null for the universal-debug, universal-release variants
@@ -268,24 +266,23 @@ android {
268266 }
269267}
270268
271- dependencyLocking {
272- lockAllConfigurations()
273- }
274-
275269dependencies {
276270 implementation fileTree(dir : " libs" , include : [" *.jar" ])
277271
278272 // noinspection GradleDynamicVersion
279273 implementation " com.facebook.react:react-native:+" // From node_modules
280274
281275 implementation " androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
276+
282277 debugImplementation(" com.facebook.flipper:flipper:${ FLIPPER_VERSION} " ) {
283- exclude group :' com.facebook.fbjni'
278+ exclude group :' com.facebook.fbjni'
284279 }
280+
285281 debugImplementation(" com.facebook.flipper:flipper-network-plugin:${ FLIPPER_VERSION} " ) {
286282 exclude group :' com.facebook.flipper'
287283 exclude group :' com.squareup.okhttp3' , module :' okhttp'
288284 }
285+
289286 debugImplementation(" com.facebook.flipper:flipper-fresco-plugin:${ FLIPPER_VERSION} " ) {
290287 exclude group :' com.facebook.flipper'
291288 }
0 commit comments