1
0
mirror of https://github.com/tooot-app/app synced 2025-01-02 12:47:13 +01:00
Zhiyuan Zheng 2021-03-04 00:51:25 +01:00
parent ea018a71fa
commit a4a6e9316b
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0

View File

@ -27,6 +27,13 @@ EXPO_PLIST = "./ios/tooot/Supporting/Expo.plist"
desc "IOS: Prepare app store"
private_lane :prepare_appstore_ios do
set_info_plist_value( path: INFO_PLIST, key: "CFBundleShortVersionString", value: VERSION )
set_info_plist_value(
path: INFO_PLIST,
key: "NSAppTransportSecurity",
value: {
"NSAllowsArbitraryLoads" => false
}
)
increment_build_number( xcodeproj: XCODEPROJ, build_number: BUILD_NUMBER )
app_store_connect_api_key
end
@ -37,15 +44,6 @@ private_lane :update_expo_ios do
set_info_plist_value( path: EXPO_PLIST, key: "EXUpdatesReleaseChannel", value: RELEASE_CHANNEL )
end
desc 'IOS: Upload dSYM'
lane :upload_symbols_ios do
download_dsyms
sentry_upload_dsym(
org_slug: ENV["SENTRY_ORGANIZATION"],
project_slug: ENV["SENTRY_PROJECT"]
)
end
desc "ANDROID: Prepare play store"
private_lane :prepare_playstore_android do
android_set_version_name( version_name: VERSION, gradle_file: "./android/app/build.gradle" )
@ -93,7 +91,6 @@ private_lane :build_ios do
groups: "内测用户",
changelog: "Ready for testing"
)
# upload_symbols_ios
when "production"
prepare_appstore_ios
match( type: "appstore", readonly: true )
@ -152,7 +149,7 @@ lane :build do
else
puts("Release #{GITHUB_RELEASE} does not exist. Create new release as well as new native build.")
build_ios
# build_android
build_android
case ENVIRONMENT
when "staging"
github_release(prerelease: true)