Fix Android building fail

This commit is contained in:
Zhiyuan Zheng 2022-05-08 00:00:01 +02:00
parent ea0b85365e
commit 8f8b7b41b9
3 changed files with 2 additions and 3 deletions

View File

@ -79,7 +79,6 @@ import com.android.build.OutputFile
project.ext.react = [
enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes",
cliPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute().text.trim(), "../cli.js")
]
apply from: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute().text.trim(), "../react.gradle")

View File

@ -123,7 +123,7 @@ private_lane :build_ios do
end
desc "Build and deploy Android app"
lane :build_android do
private_lane :build_android do
sh("echo #{ENV["ANDROID_KEYSTORE"]} | base64 -d | tee #{File.expand_path('..', Dir.pwd)}/android/tooot.jks >/dev/null", log: false)
case ENVIRONMENT

View File

@ -19,7 +19,7 @@
"android": "react-native run-android",
"iphone": "react-native run-ios",
"ipad": "react-native run-ios --simulator 'iPad mini (6th generation)'",
"app:build": "bundle exec fastlane build_android",
"app:build": "bundle exec fastlane build",
"release": "scripts/release.sh",
"clean": "react-native-clean-project",
"postinstall": "patch-package"