-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
140 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
creds.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
json_key_file("fastlane/creds.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one | ||
package_name("org.akanework.gramophone") # e.g. com.krausefx.app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# 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 | ||
# | ||
opt_out_usage | ||
default_platform(:android) | ||
|
||
platform :android do | ||
def ensure_git_ok() | ||
ensure_git_branch(branch: "beta") | ||
ensure_git_status_clean | ||
end | ||
def gradle_reproducible(task, system_properties={}) | ||
gradle(flags: "--no-configuration-cache --no-build-cache --no-daemon", | ||
system_properties: system_properties, | ||
tasks: ["clean", task]) | ||
end | ||
|
||
desc "Runs all the tests" | ||
lane :test do | ||
gradle(task: "test") | ||
end | ||
|
||
desc "Deploy a new version to the Google Play" | ||
lane :googleplay do | ||
ensure_git_ok | ||
gradle_reproducible(system_properties: {"signing2": "true"}, | ||
task: "assembleRelease") | ||
upload_to_play_store(release_status: "draft", track: "alpha") | ||
end | ||
|
||
desc "Build release" | ||
lane :buildrel do | ||
ensure_git_ok | ||
|
||
gradle_reproducible(task: "assembleRelease") | ||
end | ||
|
||
desc "Prepare release" | ||
lane :preprel do | ||
ensure_git_ok | ||
# TODO bump version number | ||
changelog = prompt(text: "Changelog") | ||
# TODO save changelog to disk | ||
# TODO git commit | ||
buildrel | ||
# TODO create draft(?) release on gh | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
fastlane documentation | ||
---- | ||
|
||
# Installation | ||
|
||
Make sure you have the latest version of the Xcode command line tools installed: | ||
|
||
```sh | ||
xcode-select --install | ||
``` | ||
|
||
For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) | ||
|
||
# Available Actions | ||
|
||
## Android | ||
|
||
### android test | ||
|
||
```sh | ||
[bundle exec] fastlane android test | ||
``` | ||
|
||
Runs all the tests | ||
|
||
### android googleplay | ||
|
||
```sh | ||
[bundle exec] fastlane android googleplay | ||
``` | ||
|
||
Deploy a new version to the Google Play | ||
|
||
### android buildrel | ||
|
||
```sh | ||
[bundle exec] fastlane android buildrel | ||
``` | ||
|
||
Build release | ||
|
||
### android preprel | ||
|
||
```sh | ||
[bundle exec] fastlane android preprel | ||
``` | ||
|
||
Prepare release | ||
|
||
---- | ||
|
||
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). |