Update fastlane to copy the release file with name

This commit is contained in:
J-Jamet
2022-04-19 18:04:12 +02:00
parent c80343b6d4
commit 088c556b00
6 changed files with 258 additions and 1 deletions

View File

@@ -12,6 +12,14 @@
default_platform(:android)
platform :android do
desc "Clean repo"
lane :clean do
gradle(
task: 'clean'
)
end
desc "Runs all the tests"
lane :tests do
gradle(task: "test")
@@ -31,6 +39,9 @@ platform :android do
"android.injected.signing.key.password" => options[:keypass],
}
)
sh("mkdir", "-p", "../releases")
@releaseFile = "../releases/KeePassDX-" + android_get_version_name + ".apk"
sh("cp", "../app/build/outputs/apk/free/release/app-free-release.apk", @releaseFile)
end
desc "Deploy a new Free Beta version to the Google Play"
@@ -46,7 +57,7 @@ platform :android do
gradle(
task: 'clean'
)
sh("git", "checkout", ".")
reset_git_repo
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-versioning_android'

View File

@@ -15,6 +15,14 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do
## Android
### android clean
```sh
[bundle exec] fastlane android clean
```
Clean repo
### android tests
```sh