Setup fastlane

This commit is contained in:
Matte23
2020-11-02 11:28:08 +01:00
parent 0ae74bb766
commit 022a05b217
10 changed files with 293 additions and 2 deletions

2
fastlane/Appfile Normal file
View File

@@ -0,0 +1,2 @@
json_key_file("./fastlane-service-account.json")
package_name("net.underdesk.circolapp")

42
fastlane/Fastfile Normal file
View File

@@ -0,0 +1,42 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#
# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane
default_platform(:android)
platform :android do
desc "Submit a new Nightly Build to Firebase App Distribution"
lane :nightly do
ENV["VERSION_CODE"] = number_of_commits(all: true).to_s
ENV["VERSION_NAME"] = last_git_commit[:abbreviated_commit_hash]
gradle(task: "clean assembleDebug")
changelog_from_git_commits
firebase_app_distribution(
app: "1:455942942122:android:8036e8ee6d3f24ef150fd3",
groups: "interni"
)
end
desc "Deploy a new version to the Google Play"
lane :deploy do
ENV["VERSION_CODE"] = number_of_commits(all: true).to_s
ENV["VERSION_NAME"] = last_git_commit[:abbreviated_commit_hash]
gradle(task: "clean assembleRelease")
upload_to_play_store
end
end

5
fastlane/Pluginfile Normal file
View File

@@ -0,0 +1,5 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-firebase_app_distribution'

34
fastlane/README.md Normal file
View File

@@ -0,0 +1,34 @@
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
## Android
### android nightly
```
fastlane android nightly
```
Submit a new Nightly Build to Firebase App Distribution
### android deploy
```
fastlane android deploy
```
Deploy a new version to the Google Play
----
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).