diff options
author | tobiasKaminsky <tobias@kaminsky.me> | 2020-07-22 15:41:29 +0300 |
---|---|---|
committer | tobiasKaminsky <tobias@kaminsky.me> | 2020-07-22 15:43:44 +0300 |
commit | b39d3d4182198354fc62957e1a6868d8d3719b8c (patch) | |
tree | 7f82a2e5010a3975d390e2a26b98430797917911 /fastlane | |
parent | d852aff10782a3b5abef1906f3790c475d7d8a32 (diff) |
Add huawei upload
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
Diffstat (limited to 'fastlane')
-rw-r--r-- | fastlane/Fastfile | 17 | ||||
-rw-r--r-- | fastlane/Pluginfile | 6 |
2 files changed, 23 insertions, 0 deletions
diff --git a/fastlane/Fastfile b/fastlane/Fastfile index b25fc8ee38..7963eef7fe 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -8,6 +8,9 @@ fastlane_version "2.58.0" # export FASTLANE_NEXTCLOUD_KEY_ALIAS="" # export FASTLANE_NEXTCLOUD_KEY_PASSWORD="" # export FASTLANE_NEXTCLOUD_GITHUB_API_TOKEN="" +# export FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_ID="" +# export FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_SECRET="" +# export FASTLANE_NEXTCLOUD_HUAWEI_APP_ID="" skip_docs @@ -70,6 +73,7 @@ lane :releasePhase2_Final do |options| checkIfAPKexists() tag(info) uploadToPlaystore_Final(info) + uploadToHuawei_Final(info) createGithubRelease_Final(info) fdroidMergeRequest_Final(info) createChangelogPullRequest_Final(info) @@ -116,6 +120,19 @@ lane :beautifyPhone do sh("adb shell am broadcast -a com.android.systemui.demo -e command battery -e plugged false -e level 100") end +# to install +# bundle exec fastlane add_plugin huawei_appgallery_connect +# bundle install --path build/vendor/bundle +private_lane :uploadToHuawei_Final do |options| + huawei_appgallery_connect( + client_id: ENV["FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_ID"], + client_secret: ENV["FASTLANE_NEXTCLOUD_HUAWEI_CLIENT_SECRET"], + app_id: ENV["FASTLANE_NEXTCLOUD_HUAWEI_APP_ID"], + apk_path: "release/nextcloud-" + options["versionCode"] + ".apk", + submit_for_review: true, + ) +end + ## private lanes desc "Build debug and test APK for screenshots" diff --git a/fastlane/Pluginfile b/fastlane/Pluginfile new file mode 100644 index 0000000000..00ed2e84c2 --- /dev/null +++ b/fastlane/Pluginfile @@ -0,0 +1,6 @@ +# Autogenerated by fastlane +# +# Ensure this file is checked in to source control! + +gem 'fastlane-plugin-huawei_appgallery_connect' +gem 'fastlane-plugin-huawei_appgallery_connect' |