build.gradle (e9e7efbbcc1b77c07f9f3218ffd573e376b9de47) | build.gradle (6613e77203923e5b1742a49281bfa5de03fc1440) |
---|---|
1apply plugin: "com.android.application" 2apply plugin: "org.jetbrains.kotlin.android" 3apply plugin: "com.facebook.react" 4 5import com.android.build.OutputFile 6import groovy.json.JsonSlurper 7 8 9/** 10 * This is the configuration block to customize your React Native Android app. 11 * By default you don't need to apply any configuration, just uncomment the lines you need. 12 */ 13react { 14 /* Folders */ | 1apply plugin: "com.android.application" 2apply plugin: "org.jetbrains.kotlin.android" 3apply plugin: "com.facebook.react" 4 5import com.android.build.OutputFile 6import groovy.json.JsonSlurper 7 8 9/** 10 * This is the configuration block to customize your React Native Android app. 11 * By default you don't need to apply any configuration, just uncomment the lines you need. 12 */ 13react { 14 /* Folders */ |
15 // The root of your project, i.e. where "package.json" lives. Default is '..' 16 // root = file("../") 17 // The folder where the react-native NPM package is. Default is ../node_modules/react-native 18 // reactNativeDir = file("../node_modules/react-native") 19 // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen 20 // codegenDir = file("../node_modules/@react-native/codegen") 21 // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js 22 // cliFile = file("../node_modules/react-native/cli.js") | 15 // The root of your project, i.e. where "package.json" lives. Default is '../..' 16 // root = file("../../") 17 // The folder where the react-native NPM package is. Default is ../../node_modules/react-native 18 // reactNativeDir = file("../../node_modules/react-native") 19 // The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen 20 // codegenDir = file("../../node_modules/@react-native/codegen") 21 // The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js 22 // cliFile = file("../../node_modules/react-native/cli.js") |
23 24 /* Variants */ 25 // The list of variants to that are debuggable. For those we're going to 26 // skip the bundling of the JS bundle and the assets. By default is just 'debug'. 27 // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. 28 // debuggableVariants = ["liteDebug", "prodDebug"] 29 30 /* Bundling */ --- 17 unchanged lines hidden (view full) --- 48 // extraPackagerArgs = [] 49 50 /* Hermes Commands */ 51 // The hermes compiler command to run. By default it is 'hermesc' 52 // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" 53 // 54 // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" 55 // hermesFlags = ["-O", "-output-source-map"] | 23 24 /* Variants */ 25 // The list of variants to that are debuggable. For those we're going to 26 // skip the bundling of the JS bundle and the assets. By default is just 'debug'. 27 // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. 28 // debuggableVariants = ["liteDebug", "prodDebug"] 29 30 /* Bundling */ --- 17 unchanged lines hidden (view full) --- 48 // extraPackagerArgs = [] 49 50 /* Hermes Commands */ 51 // The hermes compiler command to run. By default it is 'hermesc' 52 // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" 53 // 54 // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" 55 // hermesFlags = ["-O", "-output-source-map"] |
56 57 /* Autolinking */ 58 autolinkLibrariesWithApp() 59 |
|
56 // 57 // Added by install-expo-modules 58 entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", rootDir.getAbsoluteFile().getParentFile().getAbsolutePath(), "android", "absolute"].execute(null, rootDir).text.trim()) 59 cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim()) 60 bundleCommand = "export:embed" | 60 // 61 // Added by install-expo-modules 62 entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", rootDir.getAbsoluteFile().getParentFile().getAbsolutePath(), "android", "absolute"].execute(null, rootDir).text.trim()) 63 cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim()) 64 bundleCommand = "export:embed" |
65 // 66 // Added by install-expo-modules 67 entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", rootDir.getAbsoluteFile().getParentFile().getAbsolutePath(), "android", "absolute"].execute(null, rootDir).text.trim()) 68 cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim()) 69 bundleCommand = "export:embed" |
|
61} 62 63/** 64 * Set this to true to Run Proguard on Release builds to minify the Java bytecode. 65 */ 66def enableProguardInReleaseBuilds = false 67 68/** --- 105 unchanged lines hidden (view full) --- 174 175 // !! Add lines 176 implementation project(':react-native-fs') 177 implementation 'com.facebook.fresco:animated-gif:2.5.0' 178 // https://mvnrepository.com/artifact/net.jthink/jaudiotagger 179 implementation 'net.jthink:jaudiotagger:2.2.5' 180} 181 | 70} 71 72/** 73 * Set this to true to Run Proguard on Release builds to minify the Java bytecode. 74 */ 75def enableProguardInReleaseBuilds = false 76 77/** --- 105 unchanged lines hidden (view full) --- 183 184 // !! Add lines 185 implementation project(':react-native-fs') 186 implementation 'com.facebook.fresco:animated-gif:2.5.0' 187 // https://mvnrepository.com/artifact/net.jthink/jaudiotagger 188 implementation 'net.jthink:jaudiotagger:2.2.5' 189} 190 |
182apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) | |