Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sacha Froment <sfroment42@gmail.com>
- Loading branch information
Showing
5 changed files
with
117 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,97 @@ | ||
# This file contains the fastlane.tools configuration | ||
# You can find the documentation at https://docs.fastlane.tools | ||
# | ||
# For a list of all available actions, check out | ||
# | ||
# https://docs.fastlane.tools/actions | ||
# | ||
# For a list of all available plugins, check out | ||
# | ||
# https://docs.fastlane.tools/plugins/available-plugins | ||
# | ||
|
||
# Uncomment the line if you want fastlane to automatically update itself | ||
# update_fastlane | ||
|
||
default_platform(:ios) | ||
# # This file contains the fastlane.tools configuration | ||
# # You can find the documentation at https://docs.fastlane.tools | ||
# # | ||
# # For a list of all available actions, check out | ||
# # | ||
# # https://docs.fastlane.tools/actions | ||
# # | ||
# # For a list of all available plugins, check out | ||
# # | ||
# # https://docs.fastlane.tools/plugins/available-plugins | ||
# # | ||
|
||
# # Uncomment the line if you want fastlane to automatically update itself | ||
# # update_fastlane | ||
|
||
fastlane_version "2.76.1" | ||
|
||
default_platform :ios | ||
|
||
platform :ios do | ||
desc "Description of what the lane does" | ||
lane :custom_lane do | ||
# add actions here: https://docs.fastlane.tools/actions | ||
end | ||
|
||
desc "Ad-hoc build" | ||
lane :adhoc do | ||
match(type: "adhoc") | ||
# snapshot | ||
gym(export_method: "ad-hoc", scheme: "berty") | ||
####### Certificates ####### | ||
|
||
desc "Installs the certificates and profiles locally" | ||
lane :certificates do |options| | ||
if options[:use_temporary_keychain] | ||
create_temporary_keychain | ||
end | ||
|
||
readonly = (options[:refresh_certificates] ? false : true) | ||
# force_for_new_devices = !readonly | ||
|
||
match( | ||
app_identifier: "chat.berty.tech", | ||
# team_id: "XXX", | ||
type: "development", | ||
readonly: true, | ||
# force_for_new_devices: force_for_new_devices | ||
) | ||
|
||
match( | ||
# git_branch: "Company-Enterprise", | ||
app_identifier: "chat.berty.tech", | ||
# team_id: "XXX", | ||
type: "adhoc", | ||
readonly: true, | ||
) | ||
|
||
if options[:use_temporary_keychain] | ||
sh "security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k #{ENV["KEYCHAIN_NAME"]} #{ENV["KEYCHAIN_PASSWORD"]}" | ||
end | ||
end | ||
|
||
private_lane :create_temporary_keychain do | ||
keychain_name = "temporary_keychain" | ||
ENV["KEYCHAIN_NAME"] = keychain_name | ||
ENV["KEYCHAIN_PASSWORD"] = keychain_name | ||
ENV["MATCH_KEYCHAIN_NAME"] = keychain_name | ||
ENV["MATCH_KEYCHAIN_PASSWORD"] = keychain_name | ||
|
||
create_keychain( | ||
default_keychain: true, | ||
unlock: true, | ||
timeout: 3600, | ||
add_to_search_list: true | ||
) | ||
end ####### Builds ####### | ||
|
||
desc "Submit a new Alpha Build to Fabric" | ||
|
||
desc "Submit a new build to iTunes Connect" | ||
lane :adhoc do |options| | ||
certificates( | ||
use_temporary_keychain: options[:use_temporary_keychain], | ||
refresh_certificates: options[:refresh_certificates] | ||
) | ||
|
||
increment_build_number( | ||
build_number: ENV["BUILD_NUMBER"] | ||
) | ||
|
||
gym( | ||
verbose: true, | ||
configuration: "Debug", | ||
scheme: "berty", | ||
clean: true, | ||
include_symbols: true, | ||
export_method: "development", | ||
export_options: { | ||
provisioningProfiles: { | ||
"chat.berty.tech" => "match Development chat.berty.tech" | ||
} | ||
} | ||
) | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
git_url("git@github.com:berty/ios-certs.git") | ||
|
||
type("development") # The default type, can be: appstore, adhoc, enterprise or development | ||
|
||
app_identifier(["tech.berty.chat"]) | ||
# username("user@fastlane.tools") # Your Apple Developer Portal username | ||
# type("development") # The default type, can be: appstore, adhoc, enterprise or development | ||
username("pnj@united-drivers.cab") # Your Apple Developer Portal username | ||
|
||
# For all available options run `fastlane match --help` | ||
# Remove the # in the beginning of the line to enable the other options |