[NEW] Enable Hermes (#1446)

This commit is contained in:
Diego Mello 2019-12-11 16:23:16 -03:00 committed by GitHub
parent 7df6afdcd3
commit 8823734d43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 15 deletions

View File

@ -197,7 +197,8 @@ jobs:
npx jetify
cd android
if [[ $KEYSTORE ]]; then
./gradlew bundleRelease
# TODO: enable app bundle again
./gradlew assembleRelease
else
./gradlew assembleDebug
fi

View File

@ -83,7 +83,7 @@ project.ext.react = [
entryFile: "index.js",
bundleAssetName: "app.bundle",
iconFontNames: [ 'custom.ttf' ],
enableHermes: false, // clean and rebuild if changing
enableHermes: true, // clean and rebuild if changing
]
apply from: "../../node_modules/react-native/react.gradle"

View File

@ -55,16 +55,16 @@ allprojects {
}
}
// subprojects { subproject ->
// afterEvaluate {
// if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
// android {
// compileSdkVersion 28
// buildToolsVersion "28.0.3"
// defaultConfig {
// targetSdkVersion 28
// }
// }
// }
// }
// }
subprojects { subproject ->
afterEvaluate {
if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
defaultConfig {
targetSdkVersion 28
}
}
}
}
}