Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add fastlane methods for registering devices & profile #642

Merged
merged 3 commits into from
Nov 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# encrypted files/folders
env/** filter=git-crypt diff=git-crypt
.env filter=git-crypt diff=git-crypt
ios/devices.txt filter=git-crypt diff=git-crypt
android/app/src/main/res/values/Intercom.xml filter=git-crypt diff=git-crypt
ios/atb/Intercom.plist filter=git-crypt diff=git-crypt
android/app/google-services.json filter=git-crypt diff=git-crypt
Expand Down
6 changes: 6 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ before_all do
end

platform :ios do
desc 'Update devices'
lane :update_devices do
register_devices(devices_file: "./ios/devices.txt")
match(type: "adhoc", force_for_new_devices: true)
end

desc 'Match certificates'
lane :get_cert do
ensure_env_vars(
Expand Down
5 changes: 5 additions & 0 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ or alternatively using `brew install fastlane`

# Available Actions
## iOS
### ios update_devices
```
fastlane ios update_devices
```
Update devices
### ios get_cert
```
fastlane ios get_cert
Expand Down
Binary file added ios/devices.txt
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"generate-svg-color": "svgr --config-file .svgrrc.color.yml -d ./src/assets/svg/ ./assets/svgs/color && prettier --write ./src/assets/svg/",
"generate-svgs": "yarn generate-svg-mono-icons && yarn generate-svg-color",
"build:ios": "fastlane ios build",
"updatedevices:ios": "fastlane ios update_devices",
"appcenter:ios": "fastlane ios appcenter",
"cert:ios": "fastlane ios get_cert",
"build:android": "fastlane android build",
Expand Down