-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #360 from nimblehq/release/3.10.0
Release - 3.10.0
- Loading branch information
Showing
16 changed files
with
167 additions
and
22 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Test Upload Build to TestFlight | ||
|
||
# SECRETS needed: | ||
### SSH_PRIVATE_KEY for Match Repo | ||
### MATCH_REPO | ||
### MATCH_PASS | ||
### API_KEY_ID | ||
### ISSUER_ID | ||
### APPSTORE_CONNECT_API_KEY | ||
|
||
on: | ||
pull_request | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install SSH key | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Bundle install | ||
run: bundle install | ||
|
||
- name: Cache Pods | ||
uses: actions/cache@v2 | ||
id: cocoapodCache | ||
with: | ||
path: Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- name: Start Install Script for Template App | ||
run: sh make.sh --bundle-id co.nimblehq.ios.templates --bundle-id-staging co.nimblehq.ios.templates.staging --project-name TemplateApp | ||
|
||
- name: Start Setup Script for Template App TestFlight Upload | ||
run: sh set_up_test_testflight.sh | ||
env: | ||
MATCH_REPO: ${{ secrets.MATCH_REPO }} | ||
API_KEY_ID: ${{ secrets.API_KEY_ID }} | ||
ISSUER_ID: ${{ secrets.ISSUER_ID }} | ||
|
||
- name: Set Up Test Project for App Store | ||
run: bundle exec fastlane set_up_test_project | ||
|
||
- name: Update Provision Profile | ||
run: bundle exec fastlane update_provision_settings | ||
env: | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASS }} | ||
|
||
- name: Build App and Distribute to AppStore | ||
run: bundle exec fastlane build_and_upload_appstore_app | ||
env: | ||
APPSTORE_CONNECT_API_KEY: ${{ secrets.APPSTORE_CONNECT_API_KEY }} | ||
SKIP_FIREBASE_DSYM: "true" | ||
BUMP_APP_STORE_BUILD_NUMBER: "true" |
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 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 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,7 +1,6 @@ | ||
# frozen_string_literal: true | ||
|
||
clean(true) | ||
export_team_id(Constants.DEV_PORTAL_TEAM_ID) | ||
output_directory(Constants.BUILD_PATH) # .ipa | ||
build_path(Constants.BUILD_PATH) # .xcarchive is stored | ||
derived_data_path(Constants.DERIVED_DATA_PATH) # .app |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# frozen_string_literal: true | ||
|
||
require './Constants/Constants' | ||
require './Constants/Environments' | ||
require './Managers/MatchManager' | ||
|
||
match_manager = MatchManager.new( | ||
fastlane: self, | ||
keychain_name: Constants.KEYCHAIN_NAME, | ||
keychain_password: Constants.KEYCHAIN_PASSWORD, | ||
is_ci: Environments.CI, | ||
username: '' | ||
) | ||
|
||
private_lane :template_app_icon do | ||
appicon( | ||
appicon_image_file: 'fastlane/Tests/appicon.png', | ||
appicon_devices: %i[iphone ios_marketing], | ||
appicon_path: '{PROJECT_NAME}/Resources/Assets/Assets.xcassets' | ||
) | ||
end | ||
|
||
private_lane :disable_exempt_encryption do | ||
set_info_plist_value(path: "{PROJECT_NAME}/Configurations/Plists/Info.plist", key: "ITSAppUsesNonExemptEncryption", value: false) | ||
end | ||
|
||
lane :set_up_test_project do | ||
template_app_icon | ||
disable_exempt_encryption | ||
end | ||
|
||
desc 'Sync AppStore match signing' | ||
lane :update_provision_settings do | ||
match_manager.sync_app_store_signing(app_identifier: [Constants.BUNDLE_ID_PRODUCTION]) | ||
update_code_signing_settings( | ||
use_automatic_signing: false, | ||
team_id: ENV["sigh_#{Constants.BUNDLE_ID_PRODUCTION}_appstore_team-id"], | ||
profile_name: ENV["sigh_#{Constants.BUNDLE_ID_PRODUCTION}_appstore_profile-name"], | ||
code_sign_identity: 'iPhone Distribution' | ||
) | ||
end |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
echo "import('./Tests/Fastfile')" | cat - fastlane/Fastfile | tee fastlane/Fastfile &> /dev/null | ||
|
||
bundle exec fastlane add_plugin appicon | ||
|
||
readonly CONSTANT_API_KEY_ID="<#API_KEY_ID#>" | ||
readonly CONSTANT_ISSUER_ID="<#ISSUER_ID#>" | ||
readonly CONSTANT_MATCH_REPO="[email protected]:{organization}\/{repo}.git" | ||
|
||
readonly WORKING_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P) | ||
MATCH_REPO_ESCAPED=$(echo "${MATCH_REPO//\//\\\/}") | ||
|
||
LC_ALL=C find $WORKING_DIR -type f -exec sed -i "" "s/$CONSTANT_API_KEY_ID/$API_KEY_ID/g" {} + | ||
LC_ALL=C find $WORKING_DIR -type f -exec sed -i "" "s/$CONSTANT_ISSUER_ID/$ISSUER_ID/g" {} + | ||
LC_ALL=C find $WORKING_DIR -type f -exec sed -i "" "s/$CONSTANT_MATCH_REPO/$MATCH_REPO_ESCAPED/g" {} + |