Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ios/CCC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@
"$(inherited)",
"-lsqlite3",
);
PRODUCT_BUNDLE_IDENTIFIER = com.oztechan.ccc;
PRODUCT_BUNDLE_IDENTIFIER = com.oztechan.ccc.debug;
PRODUCT_NAME = "$(TARGET_NAME)_I";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
2 changes: 1 addition & 1 deletion ios/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
app_identifier("com.oztechan.ccc") # The bundle identifier of your app
app_identifier("com.oztechan.ccc", "com.oztechan.ccc.debug") # The bundle identifier of your app
apple_id("development.oztechan@gmail.com") # Your Apple email address

itc_team_id("124231627") # App Store Connect Team ID
Expand Down
23 changes: 17 additions & 6 deletions ios/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ def get_method_from_match_type(match_type)
return method
end

def get_identifier_from_configuration(configuration)
identifier = ""

if configuration == "Release"
identifier = "com.oztechan.ccc"
else
identifier = "com.oztechan.ccc.debug"
end

return identifier
end

platform :ios do
desc "iOS Lanes"

Expand All @@ -65,7 +77,7 @@ platform :ios do
)
build_project(
match_type: "adhoc",
profile: "match AdHoc com.oztechan.ccc",
profile: "match AdHoc com.oztechan.ccc.debug",
configuration: "Debug"
)
end
Expand Down Expand Up @@ -107,6 +119,7 @@ platform :ios do
ensure_temp_keychain(keychain_name, keychain_password)

match(
app_identifier: ["com.oztechan.ccc", "com.oztechan.ccc.debug"],
type: options[:match_type],
readonly: is_ci,
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
Expand All @@ -127,10 +140,11 @@ platform :ios do
lane :build_project do |options|
match_type = options[:match_type]
method = get_method_from_match_type(match_type)
identifier = get_identifier_from_configuration(options[:configuration])

update_code_signing_settings(use_automatic_signing: false)
update_project_provisioning(
profile: ENV["sigh_com.oztechan.ccc_" + match_type + "_profile-path"]
profile: ENV["sigh_" + identifier + "_" + match_type + "_profile-path"]
)
xcodes(select_for_current_build_only: true)
gym(
Expand All @@ -141,10 +155,7 @@ platform :ios do
codesigning_identity: "Apple Distribution: Mustafa Ozhan (Q5WB95G58X)",
export_method: method,
export_options: {
signingStyle: "manual",
provisioningProfiles: {
"com.oztechan.ccc": options[:profile]
}
signingStyle: "manual"
},
)
end
Expand Down