Skip to content

Commit d4642dd

Browse files
committed
fix: android builds
1 parent 6433789 commit d4642dd

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

example/android/app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ react {
1111
// The root of your project, i.e. where "package.json" lives. Default is '../..'
1212
// root = file("../../")
1313
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
14-
// reactNativeDir = file("../../node_modules/react-native")
14+
reactNativeDir = file("../../../node_modules/react-native")
1515
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
16-
// codegenDir = file("../../node_modules/@react-native/codegen")
16+
codegenDir = file("../../../node_modules/@react-native/codegen")
1717
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
18-
// cliFile = file("../../node_modules/react-native/cli.js")
18+
cliFile = file("../../../node_modules/react-native/cli.js")
1919

2020
/* Variants */
2121
// The list of variants to that are debuggable. For those we're going to
@@ -45,7 +45,7 @@ react {
4545

4646
/* Hermes Commands */
4747
// The hermes compiler command to run. By default it is 'hermesc'
48-
// hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
48+
hermesCommand = "$rootDir/../../node_modules/react-native/sdks/hermesc/%OS-BIN%/hermesc"
4949
//
5050
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5151
// hermesFlags = ["-O", "-output-source-map"]
@@ -57,7 +57,7 @@ react {
5757
/**
5858
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
5959
*/
60-
def enableProguardInReleaseBuilds = false
60+
def enableProguardInReleaseBuilds = true
6161

6262
/**
6363
* The preferred build flavor of JavaScriptCore (JSC)

example/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
1+
pluginManagement { includeBuild("../../node_modules/@react-native/gradle-plugin") }
22
plugins { id("com.facebook.react.settings") }
33
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
44
rootProject.name = 'ExampleApp'
55
include ':app'
6-
includeBuild('../node_modules/@react-native/gradle-plugin')
6+
includeBuild('../../node_modules/@react-native/gradle-plugin')

0 commit comments

Comments
 (0)