mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-04-28 09:25:20 +00:00
COVIDSafe code from version 2.6 (#51)
This commit is contained in:
parent
195798ddd5
commit
4d98b6c5e4
43 changed files with 910 additions and 144 deletions
6
fastlane/Appfile
Normal file
6
fastlane/Appfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
itc_team_id(<idhere>) # App Store Connect Team ID
|
||||
team_id(<portalTeamId>) # Developer Portal Team ID
|
||||
|
||||
# For more information about the Appfile, see:
|
||||
# https://docs.fastlane.tools/advanced/#appfile
|
96
fastlane/Fastfile
Normal file
96
fastlane/Fastfile
Normal file
|
@ -0,0 +1,96 @@
|
|||
# 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)
|
||||
|
||||
platform :ios do
|
||||
before_all do
|
||||
setup_circle_ci
|
||||
end
|
||||
|
||||
desc "Install UAT certificate (in CI)"
|
||||
lane :import_uat_distribution_certificate do
|
||||
|
||||
import_certificate(
|
||||
certificate_path: "Distribution_UAT.p12",
|
||||
certificate_password: ENV["DISTRIBUTION_UAT_P12_PASSWORD"] || "default",
|
||||
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
|
||||
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
||||
)
|
||||
|
||||
install_provisioning_profile(path: "~/Library/MobileDevice/Provisioning\ Profiles/AppStore_UAT.mobileprovision")
|
||||
end
|
||||
|
||||
desc "Install PROD certificate (in CI)"
|
||||
lane :import_distribution_certificate do
|
||||
|
||||
import_certificate(
|
||||
certificate_path: "Distribution.p12",
|
||||
certificate_password: ENV["DISTRIBUTION_P12_PASSWORD"] || "default",
|
||||
keychain_name: ENV["MATCH_KEYCHAIN_NAME"],
|
||||
keychain_password: ENV["MATCH_KEYCHAIN_PASSWORD"],
|
||||
)
|
||||
|
||||
install_provisioning_profile(path: "~/Library/MobileDevice/Provisioning\ Profiles/AppStore.mobileprovision")
|
||||
end
|
||||
|
||||
desc "Push a new UAT build to TestFlight"
|
||||
lane :beta do
|
||||
|
||||
# To increment build number is recommended to use api_key
|
||||
# increment_build_number(
|
||||
# build_number: app_store_build_number + 1,
|
||||
# xcodeproj: "CovidSafe.xcodeproj"
|
||||
# )
|
||||
|
||||
gym(workspace: "CovidSafe.xcworkspace",
|
||||
scheme: "covid-staging",
|
||||
export_options: {
|
||||
method: "app-store",
|
||||
provisioningProfiles: {
|
||||
"au.gov.health.covidsafe.uat" => "CovidSafe UAT"
|
||||
}
|
||||
},
|
||||
configuration: "Release")
|
||||
|
||||
upload_to_testflight(apple_id: ENV["APPLE_ID_UAT"],
|
||||
skip_submission: true,
|
||||
skip_waiting_for_build_processing: true)
|
||||
end
|
||||
|
||||
desc "Push a new PROD build to TestFlight"
|
||||
lane :release do
|
||||
|
||||
# To increment build number is recommended to use api_key
|
||||
# increment_build_number(
|
||||
# build_number: app_store_build_number + 1,
|
||||
# xcodeproj: "CovidSafe.xcodeproj"
|
||||
# )
|
||||
|
||||
gym(workspace: "CovidSafe.xcworkspace",
|
||||
scheme: "covid-production",
|
||||
export_options: {
|
||||
method: "app-store",
|
||||
provisioningProfiles: {
|
||||
"au.gov.health.covidsafe" => "COVIDSafe"
|
||||
}
|
||||
},
|
||||
configuration: "Release")
|
||||
|
||||
upload_to_testflight(apple_id: ENV["APPLE_ID"],
|
||||
skip_submission: true,
|
||||
skip_waiting_for_build_processing: true)
|
||||
end
|
||||
end
|
24
fastlane/README.md
Normal file
24
fastlane/README.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
fastlane documentation
|
||||
================
|
||||
# Installation
|
||||
|
||||
Make sure you have the latest version of the Xcode command line tools installed:
|
||||
|
||||
```
|
||||
xcode-select --install
|
||||
```
|
||||
|
||||
Install _fastlane_ using
|
||||
```
|
||||
[sudo] gem install fastlane -NV
|
||||
```
|
||||
or alternatively using `brew install fastlane`
|
||||
|
||||
# Available Actions
|
||||
## iOS
|
||||
|
||||
- import_uat_distribution_certificate: This lane will decode and install the needed provisioning profile and signing certificate for the UAT build.
|
||||
- import_distribution_certificate: This lane will decode and install the needed provisioning profile and signing certificate for the PROD build.
|
||||
- beta: This lane will build and upload the UAT build to testflight
|
||||
- release: This lane will build and upload the PROD build to testflight
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue