diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 03a54558..ee2517a0 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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)