diff --git a/Nos.xcodeproj/project.pbxproj b/Nos.xcodeproj/project.pbxproj index 584c4cc65..c9bf956f2 100644 --- a/Nos.xcodeproj/project.pbxproj +++ b/Nos.xcodeproj/project.pbxproj @@ -2019,7 +2019,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEVELOPMENT_TEAM = GZCZBKH7MY; GCC_OPTIMIZATION_LEVEL = s; GENERATE_INFOPLIST_FILE = YES; @@ -2040,7 +2040,7 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEVELOPMENT_TEAM = GZCZBKH7MY; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 16.2; @@ -2187,7 +2187,7 @@ CODE_SIGN_IDENTITY = "-"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"Nos/Views/Preview Content\""; DEVELOPMENT_TEAM = ""; @@ -2241,7 +2241,7 @@ CODE_SIGN_IDENTITY = "Apple Distribution: Verse Communications, Inc. (GZCZBKH7MY)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Distribution: Verse Communications, Inc. (GZCZBKH7MY)"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"Nos/Views/Preview Content\""; DEVELOPMENT_TEAM = ""; @@ -2287,7 +2287,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = GZCZBKH7MY; GCC_OPTIMIZATION_LEVEL = 0; @@ -2313,7 +2313,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = GZCZBKH7MY; GENERATE_INFOPLIST_FILE = YES; @@ -2337,7 +2337,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = GZCZBKH7MY; GCC_OPTIMIZATION_LEVEL = 0; @@ -2362,7 +2362,7 @@ buildSettings = { ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 134; + CURRENT_PROJECT_VERSION = 135; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_TEAM = GZCZBKH7MY; GENERATE_INFOPLIST_FILE = YES; diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 6465ea821..670b9291a 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -22,7 +22,8 @@ platform :ios do keychain_pass = ENV["KEYCHAIN_PASS"] sentry_auth = ENV["SENTRY_AUTH"] is_ci = ENV["CI"] - app_secrets_path = "Nos/Assets/ProductionSecrets.xcconfig" + app_secrets = ENV["APP_SECRETS"] + app_secrets_path = "../Nos/Assets/ProductionSecrets2.xcconfig" desc "Push a new development build to TestFlight" lane :dev do @@ -47,11 +48,12 @@ platform :ios do keychain_name: "keychain", keychain_password: keychain_pass ) - sh("echo", "$APP_SECRETS", ">", app_secrets_path) + File.open(app_secrets_path, 'w') do |file| + file.puts app_secrets + end else match(type: "appstore", readonly: is_ci) end - version_number = get_version_number( xcodeproj: "Nos.xcodeproj", target: "Nos" @@ -63,7 +65,9 @@ platform :ios do clean: true, xcargs: "-skipPackagePluginValidation" ) - sh("rm", app_secrets_path) + if is_ci + sh("rm", app_secrets_path) + end changelog = read_changelog upload_to_testflight( changelog: changelog,