Update Fastfile
This commit is contained in:
+42
-48
@@ -26,44 +26,46 @@ end
|
||||
|
||||
platform :ios do
|
||||
lane :release do
|
||||
bump_build()
|
||||
build_ios_app(
|
||||
workspace: ENV['WORKSPACE'],
|
||||
configuration: 'Release',
|
||||
scheme: ENV['SCHEME'],
|
||||
clean: true,
|
||||
xcargs: '-allowProvisioningUpdates',
|
||||
include_symbols: true
|
||||
)
|
||||
deliver(
|
||||
api_key: {
|
||||
'key_id': 'NFBM52M2PY',
|
||||
'issuer_id': '22e070fb-ba6d-4f93-bf6f-1a6415f583fe',
|
||||
'key': '''-----BEGIN PRIVATE KEY-----
|
||||
MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgD1Oi0HNrBDYZnpyB
|
||||
FZkitTAPPYyVUNMd6PVTXKn1LJWgCgYIKoZIzj0DAQehRANCAAQ8z07wnl2HAwew
|
||||
BWQsPHV/39P60ym+gN1u9SbD103BuiDhUaym1EAHFjFsNxaAD40SlpLaQBI+N+w2
|
||||
xeCPq6ef
|
||||
-----END PRIVATE KEY-----
|
||||
''',
|
||||
'duration': 1200,
|
||||
'in_house': false
|
||||
},
|
||||
ipa: lane_context[:IPA_OUTPUT_PATH],
|
||||
username: ENV['USER_NAME'],
|
||||
team_id: ENV['TEAM_ID'],
|
||||
app_identifier: ENV['BUNDLE_ID'],
|
||||
submit_for_review: true,
|
||||
automatic_release: true,
|
||||
phased_release: false,
|
||||
force: true, # Skip HTMl report verification
|
||||
skip_metadata: false,
|
||||
skip_screenshots: false,
|
||||
overwrite_screenshots: true,
|
||||
skip_binary_upload: false,
|
||||
precheck_include_in_app_purchases: false,
|
||||
submission_information: { add_id_info_uses_idfa: false, export_compliance_uses_encryption: false }
|
||||
)
|
||||
begin
|
||||
bump_build
|
||||
build_ios_app(
|
||||
workspace: ENV['WORKSPACE'],
|
||||
configuration: 'Release',
|
||||
scheme: ENV['SCHEME'],
|
||||
clean: true,
|
||||
xcargs: '-allowProvisioningUpdates',
|
||||
include_symbols: true
|
||||
)
|
||||
app_store_connect_api_key(
|
||||
key_id: 'NFBM52M2PY',
|
||||
issuer_id: '22e070fb-ba6d-4f93-bf6f-1a6415f583fe',
|
||||
key_filepath: '~/AuthKey_NFBM52M2PY.p8',
|
||||
duration: 1200,
|
||||
in_house: false
|
||||
)
|
||||
deliver(
|
||||
ipa: lane_context[:IPA_OUTPUT_PATH],
|
||||
username: ENV['USER_NAME'],
|
||||
team_id: ENV['TEAM_ID'],
|
||||
app_identifier: ENV['BUNDLE_ID'],
|
||||
submit_for_review: true,
|
||||
automatic_release: true,
|
||||
phased_release: false,
|
||||
force: true, # Skip HTMl report verification
|
||||
skip_metadata: false,
|
||||
skip_screenshots: false,
|
||||
overwrite_screenshots: true,
|
||||
skip_binary_upload: false,
|
||||
precheck_include_in_app_purchases: false,
|
||||
submission_information: { add_id_info_uses_idfa: false, export_compliance_uses_encryption: false }
|
||||
)
|
||||
clean_build_artifacts
|
||||
rescue => exception
|
||||
revert_bump_build
|
||||
`git checkout . && git clean -df`
|
||||
clean_build_artifacts
|
||||
raise exception
|
||||
end
|
||||
end
|
||||
|
||||
lane :bump_version do
|
||||
@@ -73,14 +75,9 @@ platform :ios do
|
||||
bump_type: 'patch',
|
||||
target: lane_context[:TARGET_NAME]
|
||||
)
|
||||
increment_version_number_in_plist(
|
||||
bump_type: 'patch',
|
||||
target: lane_context[:WIDGET_TARGET_NAME]
|
||||
)
|
||||
info_plist_path = get_info_plist_path(scheme: lane_context[:SCHEME])
|
||||
widget_info_plist_path = get_info_plist_path(scheme: lane_context[:WIDGET_SCHEME])
|
||||
git_commit(
|
||||
path: [info_plist_path, widget_info_plist_path],
|
||||
path: [info_plist_path],
|
||||
message: 'Bump to next version',
|
||||
skip_git_hooks: true
|
||||
)
|
||||
@@ -88,12 +85,9 @@ platform :ios do
|
||||
|
||||
private_lane :bump_build do
|
||||
increment_build_number_in_plist(scheme: lane_context[:SCHEME])
|
||||
increment_build_number_in_plist(scheme: lane_context[:WIDGET_SCHEME])
|
||||
|
||||
info_plist_path = get_info_plist_path(scheme: lane_context[:SCHEME])
|
||||
widget_info_plist_path = get_info_plist_path(scheme: lane_context[:WIDGET_SCHEME])
|
||||
git_commit(
|
||||
path: [info_plist_path, widget_info_plist_path],
|
||||
path: [info_plist_path],
|
||||
message: 'Increase Build Number',
|
||||
skip_git_hooks: true
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user