Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 73f787e

Browse files
authored
Firebase App Distribution(EXPOSUREAPP-12797) (#5780)
* Setup fastlane * plugin * Firebase App Distribution * Notify Teams * Fix link * run on push (testing) * add x86_64-linux * Update release_candidate.yml * tag in teams message * Fix release tag * Tag highlight * Run on tag builds * Revert "Run on tag builds" This reverts commit 84e8dcb. * Run on tag builds This reverts commit fbb0b08. * add stackholders
1 parent feda517 commit 73f787e

File tree

7 files changed

+286
-0
lines changed

7 files changed

+286
-0
lines changed

.github/workflows/release_candidate.yml

+23
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,21 @@ jobs:
2828
keystore_password: '${{ secrets.KEYSTORE_PASSWORD }}'
2929
key_alias: '${{ secrets.KEY_ALIAS }}'
3030
key_password: '${{ secrets.KEY_PASSWORD }}'
31+
firebase_login_credentials: '${{ secrets.FIREBASE_LOGIN_CREDENTIALS }}'
32+
firebase_app_id: '${{ secrets.FIREBASE_APP_ID }}'
3133

3234
steps:
3335
- uses: actions/[email protected]
36+
3437
- name: Copy CI gradle.properties
3538
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
39+
40+
- name: Setup Ruby
41+
uses: ruby/[email protected]
42+
with:
43+
ruby-version: '3.0'
44+
bundler-cache: true
45+
3646
- name: Set up JDK 11
3747
uses: actions/[email protected]
3848
with:
@@ -97,3 +107,16 @@ jobs:
97107
-H "authorization: Bearer $GITHUB_ACCESS_TOKEN" \
98108
-d "{\"ref\":\"main\"}" \
99109
https://api.github.com/repos/corona-warn-app/cwa-app-automation/actions/workflows/32064115/dispatches
110+
111+
- name: Configure Fastlane
112+
run: |
113+
apk_path=$(find Corona-Warn-App/build/outputs/apk/deviceForTesters/release -name '*Corona-Warn-App*.apk')
114+
echo "apk_path=$apk_path" >> $GITHUB_ENV
115+
echo "release_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
116+
echo $firebase_login_credentials | base64 -di > ./fastlane/service_credentials.json
117+
118+
- name: Run Fastlane
119+
run: bundle exec fastlane firebaseAppDistribution
120+
- name: Notify Teams
121+
run: |
122+
curl -H 'Content-Type: application/json' -d '{"text": "Release [`${{ env.release_tag }}`](https://github.com/corona-warn-app/cwa-app-android/releases/tag/${{ env.release_tag }}) is ready for testing"}' ${{ secrets.TEAMS_WEBHOOK_URL }}

Gemfile

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
source "https://rubygems.org"
2+
3+
gem "fastlane"
4+
5+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
6+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

Gemfile.lock

+221
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.5)
5+
rexml
6+
addressable (2.8.1)
7+
public_suffix (>= 2.0.2, < 6.0)
8+
artifactory (3.0.15)
9+
atomos (0.1.3)
10+
aws-eventstream (1.2.0)
11+
aws-partitions (1.682.0)
12+
aws-sdk-core (3.168.4)
13+
aws-eventstream (~> 1, >= 1.0.2)
14+
aws-partitions (~> 1, >= 1.651.0)
15+
aws-sigv4 (~> 1.5)
16+
jmespath (~> 1, >= 1.6.1)
17+
aws-sdk-kms (1.61.0)
18+
aws-sdk-core (~> 3, >= 3.165.0)
19+
aws-sigv4 (~> 1.1)
20+
aws-sdk-s3 (1.117.2)
21+
aws-sdk-core (~> 3, >= 3.165.0)
22+
aws-sdk-kms (~> 1)
23+
aws-sigv4 (~> 1.4)
24+
aws-sigv4 (1.5.2)
25+
aws-eventstream (~> 1, >= 1.0.2)
26+
babosa (1.0.4)
27+
claide (1.1.0)
28+
colored (1.2)
29+
colored2 (3.1.2)
30+
commander (4.6.0)
31+
highline (~> 2.0.0)
32+
declarative (0.0.20)
33+
digest-crc (0.6.4)
34+
rake (>= 12.0.0, < 14.0.0)
35+
domain_name (0.5.20190701)
36+
unf (>= 0.0.5, < 1.0.0)
37+
dotenv (2.8.1)
38+
emoji_regex (3.2.3)
39+
excon (0.95.0)
40+
faraday (1.10.2)
41+
faraday-em_http (~> 1.0)
42+
faraday-em_synchrony (~> 1.0)
43+
faraday-excon (~> 1.1)
44+
faraday-httpclient (~> 1.0)
45+
faraday-multipart (~> 1.0)
46+
faraday-net_http (~> 1.0)
47+
faraday-net_http_persistent (~> 1.0)
48+
faraday-patron (~> 1.0)
49+
faraday-rack (~> 1.0)
50+
faraday-retry (~> 1.0)
51+
ruby2_keywords (>= 0.0.4)
52+
faraday-cookie_jar (0.0.7)
53+
faraday (>= 0.8.0)
54+
http-cookie (~> 1.0.0)
55+
faraday-em_http (1.0.0)
56+
faraday-em_synchrony (1.0.0)
57+
faraday-excon (1.1.0)
58+
faraday-httpclient (1.0.1)
59+
faraday-multipart (1.0.4)
60+
multipart-post (~> 2)
61+
faraday-net_http (1.0.1)
62+
faraday-net_http_persistent (1.2.0)
63+
faraday-patron (1.0.0)
64+
faraday-rack (1.0.0)
65+
faraday-retry (1.0.3)
66+
faraday_middleware (1.2.0)
67+
faraday (~> 1.0)
68+
fastimage (2.2.6)
69+
fastlane (2.211.0)
70+
CFPropertyList (>= 2.3, < 4.0.0)
71+
addressable (>= 2.8, < 3.0.0)
72+
artifactory (~> 3.0)
73+
aws-sdk-s3 (~> 1.0)
74+
babosa (>= 1.0.3, < 2.0.0)
75+
bundler (>= 1.12.0, < 3.0.0)
76+
colored
77+
commander (~> 4.6)
78+
dotenv (>= 2.1.1, < 3.0.0)
79+
emoji_regex (>= 0.1, < 4.0)
80+
excon (>= 0.71.0, < 1.0.0)
81+
faraday (~> 1.0)
82+
faraday-cookie_jar (~> 0.0.6)
83+
faraday_middleware (~> 1.0)
84+
fastimage (>= 2.1.0, < 3.0.0)
85+
gh_inspector (>= 1.1.2, < 2.0.0)
86+
google-apis-androidpublisher_v3 (~> 0.3)
87+
google-apis-playcustomapp_v1 (~> 0.1)
88+
google-cloud-storage (~> 1.31)
89+
highline (~> 2.0)
90+
json (< 3.0.0)
91+
jwt (>= 2.1.0, < 3)
92+
mini_magick (>= 4.9.4, < 5.0.0)
93+
multipart-post (~> 2.0.0)
94+
naturally (~> 2.2)
95+
optparse (~> 0.1.1)
96+
plist (>= 3.1.0, < 4.0.0)
97+
rubyzip (>= 2.0.0, < 3.0.0)
98+
security (= 0.1.3)
99+
simctl (~> 1.6.3)
100+
terminal-notifier (>= 2.0.0, < 3.0.0)
101+
terminal-table (>= 1.4.5, < 2.0.0)
102+
tty-screen (>= 0.6.3, < 1.0.0)
103+
tty-spinner (>= 0.8.0, < 1.0.0)
104+
word_wrap (~> 1.0.0)
105+
xcodeproj (>= 1.13.0, < 2.0.0)
106+
xcpretty (~> 0.3.0)
107+
xcpretty-travis-formatter (>= 0.0.3)
108+
fastlane-plugin-firebase_app_distribution (0.3.8)
109+
gh_inspector (1.1.3)
110+
google-apis-androidpublisher_v3 (0.32.0)
111+
google-apis-core (>= 0.9.1, < 2.a)
112+
google-apis-core (0.9.2)
113+
addressable (~> 2.5, >= 2.5.1)
114+
googleauth (>= 0.16.2, < 2.a)
115+
httpclient (>= 2.8.1, < 3.a)
116+
mini_mime (~> 1.0)
117+
representable (~> 3.0)
118+
retriable (>= 2.0, < 4.a)
119+
rexml
120+
webrick
121+
google-apis-iamcredentials_v1 (0.16.0)
122+
google-apis-core (>= 0.9.1, < 2.a)
123+
google-apis-playcustomapp_v1 (0.12.0)
124+
google-apis-core (>= 0.9.1, < 2.a)
125+
google-apis-storage_v1 (0.19.0)
126+
google-apis-core (>= 0.9.0, < 2.a)
127+
google-cloud-core (1.6.0)
128+
google-cloud-env (~> 1.0)
129+
google-cloud-errors (~> 1.0)
130+
google-cloud-env (1.6.0)
131+
faraday (>= 0.17.3, < 3.0)
132+
google-cloud-errors (1.3.0)
133+
google-cloud-storage (1.44.0)
134+
addressable (~> 2.8)
135+
digest-crc (~> 0.4)
136+
google-apis-iamcredentials_v1 (~> 0.1)
137+
google-apis-storage_v1 (~> 0.19.0)
138+
google-cloud-core (~> 1.6)
139+
googleauth (>= 0.16.2, < 2.a)
140+
mini_mime (~> 1.0)
141+
googleauth (1.3.0)
142+
faraday (>= 0.17.3, < 3.a)
143+
jwt (>= 1.4, < 3.0)
144+
memoist (~> 0.16)
145+
multi_json (~> 1.11)
146+
os (>= 0.9, < 2.0)
147+
signet (>= 0.16, < 2.a)
148+
highline (2.0.3)
149+
http-cookie (1.0.5)
150+
domain_name (~> 0.5)
151+
httpclient (2.8.3)
152+
jmespath (1.6.2)
153+
json (2.6.3)
154+
jwt (2.5.0)
155+
memoist (0.16.2)
156+
mini_magick (4.12.0)
157+
mini_mime (1.1.2)
158+
multi_json (1.15.0)
159+
multipart-post (2.0.0)
160+
nanaimo (0.3.0)
161+
naturally (2.2.1)
162+
optparse (0.1.1)
163+
os (1.1.4)
164+
plist (3.6.0)
165+
public_suffix (5.0.1)
166+
rake (13.0.6)
167+
representable (3.2.0)
168+
declarative (< 0.1.0)
169+
trailblazer-option (>= 0.1.1, < 0.2.0)
170+
uber (< 0.2.0)
171+
retriable (3.1.2)
172+
rexml (3.2.5)
173+
rouge (2.0.7)
174+
ruby2_keywords (0.0.5)
175+
rubyzip (2.3.2)
176+
security (0.1.3)
177+
signet (0.17.0)
178+
addressable (~> 2.8)
179+
faraday (>= 0.17.5, < 3.a)
180+
jwt (>= 1.5, < 3.0)
181+
multi_json (~> 1.10)
182+
simctl (1.6.8)
183+
CFPropertyList
184+
naturally
185+
terminal-notifier (2.0.0)
186+
terminal-table (1.8.0)
187+
unicode-display_width (~> 1.1, >= 1.1.1)
188+
trailblazer-option (0.1.2)
189+
tty-cursor (0.7.1)
190+
tty-screen (0.8.1)
191+
tty-spinner (0.9.3)
192+
tty-cursor (~> 0.7)
193+
uber (0.1.0)
194+
unf (0.1.4)
195+
unf_ext
196+
unf_ext (0.0.8.2)
197+
unicode-display_width (1.8.0)
198+
webrick (1.7.0)
199+
word_wrap (1.0.0)
200+
xcodeproj (1.22.0)
201+
CFPropertyList (>= 2.3.3, < 4.0)
202+
atomos (~> 0.1.3)
203+
claide (>= 1.0.2, < 2.0)
204+
colored2 (~> 3.1)
205+
nanaimo (~> 0.3.0)
206+
rexml (~> 3.2.4)
207+
xcpretty (0.3.0)
208+
rouge (~> 2.0.7)
209+
xcpretty-travis-formatter (1.0.1)
210+
xcpretty (~> 0.2, >= 0.0.7)
211+
212+
PLATFORMS
213+
x86_64-darwin-22
214+
x86_64-linux
215+
216+
DEPENDENCIES
217+
fastlane
218+
fastlane-plugin-firebase_app_distribution
219+
220+
BUNDLED WITH
221+
2.3.26

fastlane/Appfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package_name("de.rki.coronawarnapp.test") # e.g. com.krausefx.app

fastlane/Fastfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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
15+
16+
default_platform(:android)
17+
18+
platform :android do
19+
desc "Submit APK through Firebase App Distribution"
20+
lane :firebaseAppDistribution do
21+
firebase_app_distribution(
22+
app: ENV["firebase_app_id"],
23+
apk_path: ENV["apk_path"],
24+
release_notes: "https://github.com/corona-warn-app/cwa-app-android/releases/tag/#{ENV["release_tag"]}",
25+
groups_file: "fastlane/groups.txt",
26+
service_credentials_file: "fastlane/service_credentials.json"
27+
)
28+
end
29+
end

fastlane/Pluginfile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Autogenerated by fastlane
2+
#
3+
# Ensure this file is checked in to source control!
4+
5+
gem 'fastlane-plugin-firebase_app_distribution'

fastlane/groups.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cwa-android-testers, cwa-stakeholders

0 commit comments

Comments
 (0)