add fastlane + github actions for ios

This commit is contained in:
Salvatore Giordano
2020-07-28 14:07:16 +02:00
parent 808cc223a1
commit 836acf6943
16 changed files with 585 additions and 123 deletions
+6
View File
@@ -0,0 +1,6 @@
# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
# apple_id("[[APPLE_ID]]") # Your Apple email address
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile
+46
View File
@@ -0,0 +1,46 @@
fastlane_version "2.68.0"
default_platform :ios
desc "Installs all Certs and Profiles necessary for development and ad-hoc"
lane :match_me do
match(
type: "development",
app_identifier: [
"io.getstream.flutter",
"io.getstream.flutter.Notifications"
]
)
match(
type: "adhoc",
app_identifier: [
"io.getstream.flutter",
"io.getstream.flutter.Notifications"
]
)
end
platform :ios do
desc "Deploy build to Firebase"
lane :deploy_to_firebase do
match_me
gym(
workspace: "./Runner.xcworkspace",
scheme: "Runner",
export_method: "ad-hoc",
export_options: "./fastlane/beta_gym_export_options.plist",
silent: true,
clean: true,
include_symbols: true,
output_directory: "./dist"
)
message = changelog_from_git_commits(commits_count: 10)
firebase_app_distribution(
app: "1:674907137625:ios:cafb9fb076a453c4d7f348",
groups: "ios-stream-testers",
)
end
end
+15
View File
@@ -0,0 +1,15 @@
git_url("https://github.com/GetStream/ios-certificates")
storage_mode("git")
username("[email protected]")
team_id("EHV7XZLAHA")
# app_identifier(["tools.fastlane.app", "tools.fastlane.app2"])
# username("[email protected]") # 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
# The docs are available on https://docs.fastlane.tools/actions/match
+5
View File
@@ -0,0 +1,5 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-firebase_app_distribution'
+37
View File
@@ -0,0 +1,37 @@
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
### match_me
```
fastlane match_me
```
Installs all Certs and Profiles necessary for development and ad-hoc
----
## iOS
### ios deploy_to_firebase
```
fastlane ios deploy_to_firebase
```
Deploy build to Firebase
----
This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>iCloudContainerEnvironment</key>
<string>Development</string>
<key>provisioningProfiles</key>
<dict>
<key>io.getstream.flutter</key>
<string>flutter example</string>
<key>io.getstream.flutter.Notifications</key>
<string>flutter example notifications</string>
</dict>
</dict>
</plist>
+48
View File
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="fastlane.lanes">
<testcase classname="fastlane.lanes" name="0: Verifying fastlane version" time="0.00047">
</testcase>
<testcase classname="fastlane.lanes" name="1: default_platform" time="0.000187">
</testcase>
<testcase classname="fastlane.lanes" name="2: Switch to ios match_me lane" time="0.0002">
</testcase>
<testcase classname="fastlane.lanes" name="3: match" time="8.03101">
</testcase>
<testcase classname="fastlane.lanes" name="4: match" time="7.17731">
</testcase>
<testcase classname="fastlane.lanes" name="5: gym" time="113.936563">
</testcase>
<testcase classname="fastlane.lanes" name="6: changelog_from_git_commits" time="0.027631">
</testcase>
<testcase classname="fastlane.lanes" name="7: firebase_app_distribution" time="10.02887">
</testcase>
</testsuite>
</testsuites>