From 8f8b7b41b9e9b404425edb5f7f3b8c8a5c6edcc4 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Sun, 8 May 2022 00:00:01 +0200 Subject: [PATCH] Fix Android building fail --- android/app/build.gradle | 1 - fastlane/Fastfile | 2 +- package.json | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 0568f271..3cd03925 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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") diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 57f13142..7a7cb227 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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 diff --git a/package.json b/package.json index 4334f04e..3e8a9733 100644 --- a/package.json +++ b/package.json @@ -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"