Skip to content

Commit b39d3d4

Browse files
Add huawei upload
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent d852aff commit b39d3d4

File tree

5 files changed

+215
-0
lines changed

5 files changed

+215
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ fastlane/Fastfile
4747

4848
# scan temporary files
4949
**/fastlane/test_output
50+
/fastlane/vendor/
51+
/.bundle/

Gemfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Autogenerated by fastlane
2+
#
3+
# Ensure this file is checked in to source control!
4+
5+
source "https://rubygems.org"
6+
7+
gem 'fastlane'
8+
9+
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
10+
eval_gemfile(plugins_path) if File.exist?(plugins_path)

Gemfile.lock

+180
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.2)
5+
addressable (2.7.0)
6+
public_suffix (>= 2.0.2, < 5.0)
7+
atomos (0.1.3)
8+
aws-eventstream (1.1.0)
9+
aws-partitions (1.343.0)
10+
aws-sdk-core (3.104.1)
11+
aws-eventstream (~> 1, >= 1.0.2)
12+
aws-partitions (~> 1, >= 1.239.0)
13+
aws-sigv4 (~> 1.1)
14+
jmespath (~> 1.0)
15+
aws-sdk-kms (1.36.0)
16+
aws-sdk-core (~> 3, >= 3.99.0)
17+
aws-sigv4 (~> 1.1)
18+
aws-sdk-s3 (1.75.0)
19+
aws-sdk-core (~> 3, >= 3.104.1)
20+
aws-sdk-kms (~> 1)
21+
aws-sigv4 (~> 1.1)
22+
aws-sigv4 (1.2.1)
23+
aws-eventstream (~> 1, >= 1.0.2)
24+
babosa (1.0.3)
25+
claide (1.0.3)
26+
colored (1.2)
27+
colored2 (3.1.2)
28+
commander-fastlane (4.4.6)
29+
highline (~> 1.7.2)
30+
declarative (0.0.20)
31+
declarative-option (0.1.0)
32+
digest-crc (0.6.1)
33+
rake (~> 13.0)
34+
domain_name (0.5.20190701)
35+
unf (>= 0.0.5, < 1.0.0)
36+
dotenv (2.7.6)
37+
emoji_regex (3.0.0)
38+
excon (0.75.0)
39+
faraday (0.17.3)
40+
multipart-post (>= 1.2, < 3)
41+
faraday-cookie_jar (0.0.6)
42+
faraday (>= 0.7.4)
43+
http-cookie (~> 1.0.0)
44+
faraday_middleware (0.14.0)
45+
faraday (>= 0.7.4, < 1.0)
46+
fastimage (2.1.7)
47+
fastlane (2.152.0)
48+
CFPropertyList (>= 2.3, < 4.0.0)
49+
addressable (>= 2.3, < 3.0.0)
50+
aws-sdk-s3 (~> 1.0)
51+
babosa (>= 1.0.3, < 2.0.0)
52+
bundler (>= 1.12.0, < 3.0.0)
53+
colored
54+
commander-fastlane (>= 4.4.6, < 5.0.0)
55+
dotenv (>= 2.1.1, < 3.0.0)
56+
emoji_regex (>= 0.1, < 4.0)
57+
excon (>= 0.71.0, < 1.0.0)
58+
faraday (>= 0.17, < 1.0)
59+
faraday-cookie_jar (~> 0.0.6)
60+
faraday_middleware (>= 0.13.1, < 2.0)
61+
fastimage (>= 2.1.0, < 3.0.0)
62+
gh_inspector (>= 1.1.2, < 2.0.0)
63+
google-api-client (>= 0.37.0, < 0.39.0)
64+
google-cloud-storage (>= 1.15.0, < 2.0.0)
65+
highline (>= 1.7.2, < 2.0.0)
66+
json (< 3.0.0)
67+
jwt (>= 2.1.0, < 3)
68+
mini_magick (>= 4.9.4, < 5.0.0)
69+
multipart-post (~> 2.0.0)
70+
plist (>= 3.1.0, < 4.0.0)
71+
rubyzip (>= 2.0.0, < 3.0.0)
72+
security (= 0.1.3)
73+
simctl (~> 1.6.3)
74+
slack-notifier (>= 2.0.0, < 3.0.0)
75+
terminal-notifier (>= 2.0.0, < 3.0.0)
76+
terminal-table (>= 1.4.5, < 2.0.0)
77+
tty-screen (>= 0.6.3, < 1.0.0)
78+
tty-spinner (>= 0.8.0, < 1.0.0)
79+
word_wrap (~> 1.0.0)
80+
xcodeproj (>= 1.13.0, < 2.0.0)
81+
xcpretty (~> 0.3.0)
82+
xcpretty-travis-formatter (>= 0.0.3)
83+
fastlane-plugin-huawei_appgallery_connect (1.0.9)
84+
gh_inspector (1.1.3)
85+
google-api-client (0.38.0)
86+
addressable (~> 2.5, >= 2.5.1)
87+
googleauth (~> 0.9)
88+
httpclient (>= 2.8.1, < 3.0)
89+
mini_mime (~> 1.0)
90+
representable (~> 3.0)
91+
retriable (>= 2.0, < 4.0)
92+
signet (~> 0.12)
93+
google-cloud-core (1.5.0)
94+
google-cloud-env (~> 1.0)
95+
google-cloud-errors (~> 1.0)
96+
google-cloud-env (1.3.3)
97+
faraday (>= 0.17.3, < 2.0)
98+
google-cloud-errors (1.0.1)
99+
google-cloud-storage (1.26.2)
100+
addressable (~> 2.5)
101+
digest-crc (~> 0.4)
102+
google-api-client (~> 0.33)
103+
google-cloud-core (~> 1.2)
104+
googleauth (~> 0.9)
105+
mini_mime (~> 1.0)
106+
googleauth (0.13.0)
107+
faraday (>= 0.17.3, < 2.0)
108+
jwt (>= 1.4, < 3.0)
109+
memoist (~> 0.16)
110+
multi_json (~> 1.11)
111+
os (>= 0.9, < 2.0)
112+
signet (~> 0.14)
113+
highline (1.7.10)
114+
http-cookie (1.0.3)
115+
domain_name (~> 0.5)
116+
httpclient (2.8.3)
117+
jmespath (1.4.0)
118+
json (2.3.1)
119+
jwt (2.2.1)
120+
memoist (0.16.2)
121+
mini_magick (4.10.1)
122+
mini_mime (1.0.2)
123+
multi_json (1.15.0)
124+
multipart-post (2.0.0)
125+
nanaimo (0.3.0)
126+
naturally (2.2.0)
127+
os (1.1.0)
128+
plist (3.5.0)
129+
public_suffix (4.0.5)
130+
rake (13.0.1)
131+
representable (3.0.4)
132+
declarative (< 0.1.0)
133+
declarative-option (< 0.2.0)
134+
uber (< 0.2.0)
135+
retriable (3.1.2)
136+
rouge (2.0.7)
137+
rubyzip (2.3.0)
138+
security (0.1.3)
139+
signet (0.14.0)
140+
addressable (~> 2.3)
141+
faraday (>= 0.17.3, < 2.0)
142+
jwt (>= 1.5, < 3.0)
143+
multi_json (~> 1.10)
144+
simctl (1.6.8)
145+
CFPropertyList
146+
naturally
147+
slack-notifier (2.3.2)
148+
terminal-notifier (2.0.0)
149+
terminal-table (1.8.0)
150+
unicode-display_width (~> 1.1, >= 1.1.1)
151+
tty-cursor (0.7.1)
152+
tty-screen (0.8.1)
153+
tty-spinner (0.9.3)
154+
tty-cursor (~> 0.7)
155+
uber (0.1.0)
156+
unf (0.1.4)
157+
unf_ext
158+
unf_ext (0.0.7.7)
159+
unicode-display_width (1.7.0)
160+
word_wrap (1.0.0)
161+
xcodeproj (1.17.1)
162+
CFPropertyList (>= 2.3.3, < 4.0)
163+
atomos (~> 0.1.3)
164+
claide (>= 1.0.2, < 2.0)
165+
colored2 (~> 3.1)
166+
nanaimo (~> 0.3.0)
167+
xcpretty (0.3.0)
168+
rouge (~> 2.0.7)
169+
xcpretty-travis-formatter (1.0.0)
170+
xcpretty (~> 0.2, >= 0.0.7)
171+
172+
PLATFORMS
173+
ruby
174+
175+
DEPENDENCIES
176+
fastlane
177+
fastlane-plugin-huawei_appgallery_connect
178+
179+
BUNDLED WITH
180+
2.1.4

fastlane/Fastfile

+17
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ fastlane_version "2.58.0"
88
# export FASTLANE_NEXTCLOUD_KEY_ALIAS=""
99
# export FASTLANE_NEXTCLOUD_KEY_PASSWORD=""
1010
# export FASTLANE_NEXTCLOUD_GITHUB_API_TOKEN=""
11+
# export FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_ID=""
12+
# export FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_SECRET=""
13+
# export FASTLANE_NEXTCLOUD_HUAWEI_APP_ID=""
1114

1215
skip_docs
1316

@@ -70,6 +73,7 @@ lane :releasePhase2_Final do |options|
7073
checkIfAPKexists()
7174
tag(info)
7275
uploadToPlaystore_Final(info)
76+
uploadToHuawei_Final(info)
7377
createGithubRelease_Final(info)
7478
fdroidMergeRequest_Final(info)
7579
createChangelogPullRequest_Final(info)
@@ -116,6 +120,19 @@ lane :beautifyPhone do
116120
sh("adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false -e level 100")
117121
end
118122

123+
# to install
124+
# bundle exec fastlane add_plugin huawei_appgallery_connect
125+
# bundle install --path build/vendor/bundle
126+
private_lane :uploadToHuawei_Final do |options|
127+
huawei_appgallery_connect(
128+
client_id: ENV["FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_ID"],
129+
client_secret: ENV["FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_SECRET"],
130+
app_id: ENV["FASTLANE_NEXTCLOUD_HUAWEI_APP_ID"],
131+
apk_path: "release/nextcloud-" + options["versionCode"] + ".apk",
132+
submit_for_review: true,
133+
)
134+
end
135+
119136
## private lanes
120137

121138
desc "Build debug and test APK for screenshots"

fastlane/Pluginfile

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

0 commit comments

Comments
 (0)