Skip to content

Commit c58f436

Browse files
committed
add fastlane
1 parent 0a24a84 commit c58f436

11 files changed

+85
-107
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
.DS_Store
44
issues/**
5+
**/*.p8
56

67
#amplify-do-not-edit-begin
78
amplify/\#current-cloud-backend

buildspec-fastlane.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# buildspec.yml
2+
version: 0.2
3+
4+
phases:
5+
6+
install:
7+
commands:
8+
- code/ci_actions/00_install_rosetta.sh
9+
10+
pre_build:
11+
commands:
12+
- code/ci_actions/02_amplify.sh
13+
14+
build:
15+
commands:
16+
- (cd code && fastlane build)
17+
18+
19+
artifacts:
20+
name: getting-started-$(date +%Y-%m-%d).ipa
21+
files:
22+
- 'getting started.ipa'
23+
base-directory: 'code/build-release'
24+
25+
cache:
26+
paths:
27+
- 'code/build-release'

code/fastlane/Appfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ app_identifier("com.amazonaws.amplify.mobile.getting-started") # The bundle iden
33
apple_id(ENV['APPLE_ID']) # Your Apple email address
44
itc_team_id(ENV['ITC_TEAM_ID']) # App Store Connect Team ID
55
team_id(ENV['TEAM_ID']) # Developer Portal Team ID
6-
7-
# For more information about the Appfile, see:
8-
# https://docs.fastlane.tools/advanced/#appfile

code/fastlane/Fastfile

Lines changed: 24 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,35 @@
1-
# This file contains the fastlane.tools configuration
2-
# You can find the documentation at https://docs.fastlane.tools
3-
#
4-
# For a list of all available actions, check out
5-
#
6-
# https://docs.fastlane.tools/actions
7-
#
8-
# For a list of all available plugins, check out
9-
#
10-
# https://docs.fastlane.tools/plugins/available-plugins
11-
#
12-
13-
# Uncomment the line if you want fastlane to automatically update itself
14-
# update_fastlane
151

162
default_platform(:ios)
173

18-
# keychain is managed outside of Fastlane Match, with command line scripts.
19-
# if you decide to switch to Fastlane Match, you have to change the project signing settings as well.
20-
21-
#unlock_keychain(
22-
# path: "/Users/ec2-user/Library/Keychains/dev.keychain-db",
23-
# password: "Passw0rd",
24-
# set_default: true
25-
#)
26-
274
platform :ios do
28-
29-
lane :clean do
30-
clean_build_artifacts
31-
clear_derived_data
5+
before_all do
6+
setup_ci
327
end
338

9+
desc "Build and Sign the binary"
10+
lane :build do
11+
match(type: "appstore", readonly: true)
12+
gym(
13+
scheme: "getting started",
14+
export_method: "app-store"
15+
)
16+
end
17+
18+
desc "Push a new beta build to TestFlight"
3419
lane :beta do
35-
desc "Push a new beta build to TestFlight"
20+
match(type: "appstore", readonly: true)
21+
22+
app_store_connect_api_key(
23+
key_id: "S3SVC2YV67",
24+
issuer_id: "69a6de7b-8428-47e3-e053-5b8c7c11a4d1",
25+
key_filepath: "./secrets/AuthKey_S3SVC2YV67.p8",
26+
duration: 1200, # optional (maximum 1200)
27+
in_house: false # optional but may be required if using match/sigh
28+
)
29+
3630
increment_build_number(xcodeproj: "getting started.xcodeproj")
37-
build # call build lane
31+
build_app(scheme: "getting started")
3832
upload_to_testflight
3933
end
40-
41-
42-
lane :build do
43-
desc "Build the project"
44-
build_app(workspace: "getting started.xcworkspace", scheme: "getting started",
45-
skip_archive: false,
46-
output_directory: ".build",
47-
output_name: "getting_started.ipa",
48-
export_method: "development",
49-
export_options: {
50-
provisioningProfiles: {
51-
"com.amazonaws.amplify.mobile.getting-started" => "match Development com.amazonaws.amplify.mobile.getting-started 1665469423"
52-
}
53-
})
54-
end
55-
5634
end
35+

code/fastlane/Fixing Ruby openssl errors - ABuisman.com.webloc

Lines changed: 0 additions & 8 deletions
This file was deleted.

code/fastlane/Matchfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
s3_bucket(ENV['S3_BUCKET'])
2-
s3_region(ENV['S3_REGION'])
3-
storage_mode("s3")
1+
git_url("git@github.com:sebsto/secret.git")
2+
storage_mode("git")
43

4+
# storage_mode("s3")
5+
# s3_bucket("ios-certificates-private-sst")
6+
# s3_region("us-west-2")
57
type("development") # The default type, can be: appstore, adhoc, enterprise or development
68

7-
app_identifier(["com.amazonaws.amplify.mobile.getting-started"])
8-
username(ENV['APPLE_ID'])
9-
10-
# keychain_name("dev-match")
11-
129
# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
1310
# username("user@fastlane.tools") # Your Apple Developer Portal username
1411

code/fastlane/README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
fastlane documentation
2-
================
2+
----
3+
34
# Installation
45

56
Make sure you have the latest version of the Xcode command line tools installed:
67

7-
```
8+
```sh
89
xcode-select --install
910
```
1011

11-
Install _fastlane_ using
12-
```
13-
[sudo] gem install fastlane -NV
14-
```
15-
or alternatively using `brew install fastlane`
12+
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
1613

1714
# Available Actions
15+
1816
## iOS
19-
### ios clean
20-
```
21-
fastlane ios clean
17+
18+
### ios build
19+
20+
```sh
21+
[bundle exec] fastlane ios build
2222
```
2323

24+
Build and Sign the binary
25+
2426
### ios beta
25-
```
26-
fastlane ios beta
27-
```
2827

29-
### ios build
30-
```
31-
fastlane ios build
28+
```sh
29+
[bundle exec] fastlane ios beta
3230
```
3331

32+
Push a new beta build to TestFlight
3433

3534
----
3635

3736
This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
38-
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
39-
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
37+
38+
More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
39+
40+
The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).

code/fastlane/[match] errSecInternalComponent if not possible to prompt for keychain password · Issue #15185 · fastlane:fastlane.webloc

Lines changed: 0 additions & 8 deletions
This file was deleted.

code/fastlane/fastlane match 2.210 - S3 access fails due to SSL certificate validation error · Issue #20734 · fastlane:fastlane.webloc

Lines changed: 0 additions & 8 deletions
This file was deleted.

code/getting started.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@
493493
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
494494
GCC_WARN_UNUSED_FUNCTION = YES;
495495
GCC_WARN_UNUSED_VARIABLE = YES;
496-
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
496+
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
497497
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
498498
MTL_FAST_MATH = YES;
499499
ONLY_ACTIVE_ARCH = YES;
@@ -551,7 +551,7 @@
551551
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
552552
GCC_WARN_UNUSED_FUNCTION = YES;
553553
GCC_WARN_UNUSED_VARIABLE = YES;
554-
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
554+
IPHONEOS_DEPLOYMENT_TARGET = 18.0;
555555
MTL_ENABLE_DEBUG_INFO = NO;
556556
MTL_FAST_MATH = YES;
557557
SDKROOT = iphoneos;
@@ -569,7 +569,7 @@
569569
CODE_SIGN_IDENTITY = "Apple Development";
570570
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
571571
CODE_SIGN_STYLE = Manual;
572-
CURRENT_PROJECT_VERSION = 15;
572+
CURRENT_PROJECT_VERSION = 9;
573573
DEVELOPMENT_ASSET_PATHS = "\"getting started/Preview Content\"";
574574
DEVELOPMENT_TEAM = "";
575575
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 56U756R2L2;
@@ -600,7 +600,7 @@
600600
CODE_SIGN_IDENTITY = "Apple Development";
601601
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution";
602602
CODE_SIGN_STYLE = Manual;
603-
CURRENT_PROJECT_VERSION = 15;
603+
CURRENT_PROJECT_VERSION = 9;
604604
DEVELOPMENT_ASSET_PATHS = "\"getting started/Preview Content\"";
605605
DEVELOPMENT_TEAM = "";
606606
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 56U756R2L2;
@@ -632,7 +632,7 @@
632632
CODE_SIGN_IDENTITY = "Apple Development";
633633
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
634634
CODE_SIGN_STYLE = Manual;
635-
CURRENT_PROJECT_VERSION = 1;
635+
CURRENT_PROJECT_VERSION = 9;
636636
DEVELOPMENT_TEAM = 56U756R2L2;
637637
GENERATE_INFOPLIST_FILE = YES;
638638
LD_RUNPATH_SEARCH_PATHS = (
@@ -660,7 +660,7 @@
660660
CODE_SIGN_IDENTITY = "Apple Development";
661661
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
662662
CODE_SIGN_STYLE = Manual;
663-
CURRENT_PROJECT_VERSION = 1;
663+
CURRENT_PROJECT_VERSION = 9;
664664
DEVELOPMENT_TEAM = 56U756R2L2;
665665
GENERATE_INFOPLIST_FILE = YES;
666666
LD_RUNPATH_SEARCH_PATHS = (
@@ -687,7 +687,7 @@
687687
CODE_SIGN_IDENTITY = "iPhone Developer";
688688
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer";
689689
CODE_SIGN_STYLE = Manual;
690-
CURRENT_PROJECT_VERSION = 1;
690+
CURRENT_PROJECT_VERSION = 9;
691691
DEVELOPMENT_TEAM = 56U756R2L2;
692692
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 56U756R2L2;
693693
GENERATE_INFOPLIST_FILE = YES;
@@ -720,7 +720,7 @@
720720
CODE_SIGN_IDENTITY = "iPhone Developer";
721721
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer";
722722
CODE_SIGN_STYLE = Manual;
723-
CURRENT_PROJECT_VERSION = 1;
723+
CURRENT_PROJECT_VERSION = 9;
724724
DEVELOPMENT_TEAM = 56U756R2L2;
725725
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 56U756R2L2;
726726
GENERATE_INFOPLIST_FILE = YES;

0 commit comments

Comments
 (0)