Implementation
@override
String get fastlaneContent => '''
default_platform(:ios)
lane :upload_testflight do |options|
ipa = options[:ipa]
changelog = options[:changelog] || "新的版本发布了,快来下载呀!"
api_key = app_store_connect_api_key(
key_id: ENV['APP_STORE_CONNECT_API_KEY_ID'],
issuer_id: ENV['APP_STORE_CONNECT_API_ISSUER_ID'],
key_filepath: ENV['APP_STORE_CONNECT_API_KEY_FILEPATH'],
duration: 1200, # optional (maximum 1200)
in_house: false # optional but may be required if using match/sigh
)
upload_to_testflight(
api_key: api_key,
app_identifier: ENV['APP_IDENTIFIER'],
apple_id: ENV['APP_ID'],
ipa: ipa,
changelog: changelog,
skip_waiting_for_build_processing: false,
distribute_external: true,
groups: ["TEST1"],
reject_build_waiting_for_review: true,
)
end
''';