@@ -2,83 +2,8 @@ apply plugin: "com.android.application"
22
33import com.android.build.OutputFile
44
5- /**
6- * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7- * and bundleReleaseJsAndAssets).
8- * These basically call `react-native bundle` with the correct arguments during the Android build
9- * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10- * bundle directly from the development server. Below you can see all the possible configurations
11- * and their defaults. If you decide to add a configuration block, make sure to add it before the
12- * `apply from: "../../node_modules/react-native/react.gradle"` line.
13- *
14- * project.ext.react = [
15- * // the name of the generated asset file containing your JS bundle
16- * bundleAssetName: "index.android.bundle",
17- *
18- * // the entry file for bundle generation. If none specified and
19- * // "index.android.js" exists, it will be used. Otherwise "index.js" is
20- * // default. Can be overridden with ENTRY_FILE environment variable.
21- * entryFile: "index.android.js",
22- *
23- * // https://reactnative.dev/docs/performance#enable-the-ram-format
24- * bundleCommand: "ram-bundle",
25- *
26- * // whether to bundle JS and assets in debug mode
27- * bundleInDebug: false,
28- *
29- * // whether to bundle JS and assets in release mode
30- * bundleInRelease: true,
31- *
32- * // whether to bundle JS and assets in another build variant (if configured).
33- * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
34- * // The configuration property can be in the following formats
35- * // 'bundleIn${productFlavor}${buildType}'
36- * // 'bundleIn${buildType}'
37- * // bundleInFreeDebug: true,
38- * // bundleInPaidRelease: true,
39- * // bundleInBeta: true,
40- *
41- * // whether to disable dev mode in custom build variants (by default only disabled in release)
42- * // for example: to disable dev mode in the staging build type (if configured)
43- * devDisabledInStaging: true,
44- * // The configuration property can be in the following formats
45- * // 'devDisabledIn${productFlavor}${buildType}'
46- * // 'devDisabledIn${buildType}'
47- *
48- * // the root of your project, i.e. where "package.json" lives
49- * root: "../../",
50- *
51- * // where to put the JS bundle asset in debug mode
52- * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
53- *
54- * // where to put the JS bundle asset in release mode
55- * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
56- *
57- * // where to put drawable resources / React Native assets, e.g. the ones you use via
58- * // require('./image.png')), in debug mode
59- * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
60- *
61- * // where to put drawable resources / React Native assets, e.g. the ones you use via
62- * // require('./image.png')), in release mode
63- * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
64- *
65- * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
66- * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
67- * // date; if you have any other folders that you want to ignore for performance reasons (gradle
68- * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
69- * // for example, you might want to remove it from here.
70- * inputExcludes: ["android/**", "ios/**"],
71- *
72- * // override which node gets called and with what additional arguments
73- * nodeExecutableAndArgs: ["node"],
74- *
75- * // supply additional arguments to the packager
76- * extraPackagerArgs: []
77- * ]
78- */
79-
805project. ext. react = [
81- enableHermes : false , // clean and rebuild if changing
6+ enableHermes : true , // clean and rebuild if changing
827]
838
849apply from : " ../../node_modules/react-native/react.gradle"
0 commit comments