I have a fastlane lane that builds the app using gym
or build_app
but I also want to use flutter build
's --obfuscate
flag.
desc "Build - Enterprise"
lane :build_enterprise do |options|
bundle_id = options[:bundle_id]
sync_certificates_and_provisioning_profiles(
type: "enterprise",
bundle_id: bundle_id,
)
cleanup
gym(
scheme: get_scheme(bundle_id),
export_method: "enterprise",
clean: true,
include_bitcode: false,
include_symbols: true,
export_options: {
signingStyle: "manual",
provisioningProfiles: generate_enterprise_profiles(bundle_id)
}
)
end
As I understand, I can replace gym
with flutter build ios --obfuscate
but then how can I make use of other parameters that gym
provides. Such as: export_method
, export_options
, include_bitcode
, include_symbols
? I have multiple flavors in the app and using these parameters based on debug/release app or staging/production app is quite useful.
question from:
https://stackoverflow.com/questions/65854491/how-can-i-use-flutters-obfuscate-flag-with-fastlane-on-ios 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…