Skip to content

Commit da36283

Browse files
committed
refactor codesigning in beta lane
1 parent d7951ba commit da36283

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

fastlane/Fastfile

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -157,24 +157,11 @@ platform :ios do
157157
# Configure CI keychain and set match to readonly to avoid prompts
158158
setup_ci if is_ci
159159

160-
# Setup code signing
161-
sync_code_signing(
162-
type: "appstore",
163-
readonly: true,
164-
app_identifier: "com.techprimate.Flinky",
165-
git_private_key: ENV["MATCH_GIT_PRIVATE_KEY"]
166-
)
167-
sync_code_signing(
168-
type: "appstore",
169-
readonly: true,
170-
app_identifier: "com.techprimate.Flinky.ShareExtension",
171-
git_private_key: ENV["MATCH_GIT_PRIVATE_KEY"]
172-
)
173-
174160
version_info = _increment_version_and_build
175161
version_number = version_info[:version]
176162
build_number = version_info[:build]
177163

164+
_setup_code_signing
178165
_build_app_for_store
179166
_validate_app
180167
_setup_sentry_release(version: version_number, build: build_number)
@@ -301,6 +288,22 @@ Your feedback helps us improve Flinky for everyone. Thank you!"
301288
# These lanes are internal helpers and are not exposed in `fastlane lanes`
302289
# ============================================================================
303290

291+
# Private lane: Setup code signing for App Store Connect
292+
private_lane :_setup_code_signing do
293+
sync_code_signing(
294+
type: "appstore",
295+
readonly: true,
296+
app_identifier: "com.techprimate.Flinky",
297+
git_private_key: ENV["MATCH_GIT_PRIVATE_KEY"]
298+
)
299+
sync_code_signing(
300+
type: "appstore",
301+
readonly: true,
302+
app_identifier: "com.techprimate.Flinky.ShareExtension",
303+
git_private_key: ENV["MATCH_GIT_PRIVATE_KEY"]
304+
)
305+
end
306+
304307
# Private lane: Increment version and build number, return both values
305308
private_lane :_increment_version_and_build do
306309
version_number = get_version_number(

0 commit comments

Comments
 (0)