Skip to content

Commit

Permalink
Use native ruby to write secrets file
Browse files Browse the repository at this point in the history
  • Loading branch information
mplorentz committed Dec 21, 2023
1 parent b29504b commit ea91ac8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
16 changes: 8 additions & 8 deletions Nos.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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 = "";
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
12 changes: 8 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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,
Expand Down

0 comments on commit ea91ac8

Please sign in to comment.