feat: remove build responsabilty from iOS script
This commit is contained in:
parent
3a411fe576
commit
e11b2fb58c
@ -61,15 +61,6 @@ module Fastlane
|
|||||||
)
|
)
|
||||||
UI.message("🍺 API Key formated")
|
UI.message("🍺 API Key formated")
|
||||||
|
|
||||||
# Install Cocoapods
|
|
||||||
other_action.cocoapods(
|
|
||||||
clean_install: true,
|
|
||||||
clean: true,
|
|
||||||
integrate: true,
|
|
||||||
podfile: "./Podfile"
|
|
||||||
)
|
|
||||||
UI.message("🍺 Pod got")
|
|
||||||
|
|
||||||
# Set up code signing using match
|
# Set up code signing using match
|
||||||
# Configures and runs `match` which manages code signing certificates and provisioning profiles for the project.
|
# Configures and runs `match` which manages code signing certificates and provisioning profiles for the project.
|
||||||
# The function takes the app's bundle identifier, an authorization token for the project's Git repository, and the name and password for a temporary keychain used to store the signing certificate.
|
# The function takes the app's bundle identifier, an authorization token for the project's Git repository, and the name and password for a temporary keychain used to store the signing certificate.
|
||||||
@ -90,15 +81,6 @@ module Fastlane
|
|||||||
)
|
)
|
||||||
UI.message("🍺 Signing environment ready")
|
UI.message("🍺 Signing environment ready")
|
||||||
|
|
||||||
begin
|
|
||||||
other_action.flutter_build(
|
|
||||||
build: 'xcarchive',
|
|
||||||
build_args: params[:build_args]
|
|
||||||
)
|
|
||||||
rescue => e
|
|
||||||
puts "Error : #{e.message}"
|
|
||||||
end
|
|
||||||
|
|
||||||
archive_path = "../build/ios/archive/Runner.xcarchive"
|
archive_path = "../build/ios/archive/Runner.xcarchive"
|
||||||
|
|
||||||
if File.exist?(archive_path)
|
if File.exist?(archive_path)
|
||||||
@ -129,7 +111,7 @@ module Fastlane
|
|||||||
skip_submission: true,
|
skip_submission: true,
|
||||||
distribute_external: false,
|
distribute_external: false,
|
||||||
notify_external_testers: false,
|
notify_external_testers: false,
|
||||||
ipa: "./build/Runner.ipa"
|
ipa: "./Runner.ipa",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Delete keychain if existing
|
# Delete keychain if existing
|
||||||
@ -165,12 +147,6 @@ module Fastlane
|
|||||||
env_name: "IOS_CD_TEST_TYPE",
|
env_name: "IOS_CD_TEST_TYPE",
|
||||||
optional: false,
|
optional: false,
|
||||||
description: "Type of test (internal, external, production)"),
|
description: "Type of test (internal, external, production)"),
|
||||||
FastlaneCore::ConfigItem.new(
|
|
||||||
key: :build_args,
|
|
||||||
description: 'An array of extra arguments for "flutter build"',
|
|
||||||
optional: true,
|
|
||||||
type: Array
|
|
||||||
)
|
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user