Update Fastfile

iOS
mlch911 4 years ago
parent ede81fc45b
commit e4530e7bb5

1
.gitignore vendored

@ -43,3 +43,4 @@ app.*.symbols
# Obfuscation related # Obfuscation related
app.*.map.json app.*.map.json
ios/fastlane/report.xml

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

@ -5,27 +5,62 @@
<testcase classname="fastlane.lanes" name="0: default_platform" time="0.000166"> <testcase classname="fastlane.lanes" name="00: default_platform" time="0.000237">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="1: ensure_git_status_clean" time="0.029487"> <testcase classname="fastlane.lanes" name="01: Switch to ios bump_build lane" time="7.6e-05">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="2: increment_version_number_in_plist" time="3.152635"> <testcase classname="fastlane.lanes" name="02: increment_build_number_in_plist" time="3.153205">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="3: get_info_plist_path" time="1.482511"> <testcase classname="fastlane.lanes" name="03: get_info_plist_path" time="1.511789">
</testcase> </testcase>
<testcase classname="fastlane.lanes" name="4: git_commit" time="0.018977"> <testcase classname="fastlane.lanes" name="04: git_commit" time="0.020483">
</testcase>
<testcase classname="fastlane.lanes" name="05: Switch to ios tag_string lane" time="7.8e-05">
</testcase>
<testcase classname="fastlane.lanes" name="06: Switch to ios version_string lane" time="6.1e-05">
</testcase>
<testcase classname="fastlane.lanes" name="07: get_version_number_from_plist" time="1.536691">
</testcase>
<testcase classname="fastlane.lanes" name="08: Switch to ios build_string lane" time="9.2e-05">
</testcase>
<testcase classname="fastlane.lanes" name="09: get_build_number_from_plist" time="1.514093">
</testcase>
<testcase classname="fastlane.lanes" name="10: add_git_tag" time="0.012862">
</testcase>
<testcase classname="fastlane.lanes" name="11: build_ios_app" time="130.746772">
</testcase> </testcase>

Loading…
Cancel
Save