mirror of
https://github.com/tooot-app/app
synced 2025-01-04 21:47:40 +01:00
Update Fastfile
According to https://reactnative.dev/docs/next/publishing-to-app-store#1-enable-app-transport-security
This commit is contained in:
parent
ea018a71fa
commit
a4a6e9316b
@ -27,6 +27,13 @@ EXPO_PLIST = "./ios/tooot/Supporting/Expo.plist"
|
|||||||
desc "IOS: Prepare app store"
|
desc "IOS: Prepare app store"
|
||||||
private_lane :prepare_appstore_ios do
|
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: "CFBundleShortVersionString", value: VERSION )
|
||||||
|
set_info_plist_value(
|
||||||
|
path: INFO_PLIST,
|
||||||
|
key: "NSAppTransportSecurity",
|
||||||
|
value: {
|
||||||
|
"NSAllowsArbitraryLoads" => false
|
||||||
|
}
|
||||||
|
)
|
||||||
increment_build_number( xcodeproj: XCODEPROJ, build_number: BUILD_NUMBER )
|
increment_build_number( xcodeproj: XCODEPROJ, build_number: BUILD_NUMBER )
|
||||||
app_store_connect_api_key
|
app_store_connect_api_key
|
||||||
end
|
end
|
||||||
@ -37,15 +44,6 @@ private_lane :update_expo_ios do
|
|||||||
set_info_plist_value( path: EXPO_PLIST, key: "EXUpdatesReleaseChannel", value: RELEASE_CHANNEL )
|
set_info_plist_value( path: EXPO_PLIST, key: "EXUpdatesReleaseChannel", value: RELEASE_CHANNEL )
|
||||||
end
|
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"
|
desc "ANDROID: Prepare play store"
|
||||||
private_lane :prepare_playstore_android do
|
private_lane :prepare_playstore_android do
|
||||||
android_set_version_name( version_name: VERSION, gradle_file: "./android/app/build.gradle" )
|
android_set_version_name( version_name: VERSION, gradle_file: "./android/app/build.gradle" )
|
||||||
@ -93,7 +91,6 @@ private_lane :build_ios do
|
|||||||
groups: "内测用户",
|
groups: "内测用户",
|
||||||
changelog: "Ready for testing"
|
changelog: "Ready for testing"
|
||||||
)
|
)
|
||||||
# upload_symbols_ios
|
|
||||||
when "production"
|
when "production"
|
||||||
prepare_appstore_ios
|
prepare_appstore_ios
|
||||||
match( type: "appstore", readonly: true )
|
match( type: "appstore", readonly: true )
|
||||||
@ -152,7 +149,7 @@ lane :build do
|
|||||||
else
|
else
|
||||||
puts("Release #{GITHUB_RELEASE} does not exist. Create new release as well as new native build.")
|
puts("Release #{GITHUB_RELEASE} does not exist. Create new release as well as new native build.")
|
||||||
build_ios
|
build_ios
|
||||||
# build_android
|
build_android
|
||||||
case ENVIRONMENT
|
case ENVIRONMENT
|
||||||
when "staging"
|
when "staging"
|
||||||
github_release(prerelease: true)
|
github_release(prerelease: true)
|
||||||
|
Loading…
Reference in New Issue
Block a user