Upgrade fastlane

This commit is contained in:
J-Jamet
2018-04-21 07:14:34 +02:00
parent b7328875f1
commit 268f716104
2 changed files with 54 additions and 12 deletions

View File

@@ -17,11 +17,11 @@ platform :android do
gradle(task: "test")
end
desc "Build a new Beta version"
lane :build_beta_google_free do |options|
desc "Build a new Free Beta version"
lane :build_beta_free do |options|
gradle(
task: "assemble",
flavor: "free_google",
flavor: "free",
build_type: "Release",
print_command: false,
properties: {
@@ -33,18 +33,49 @@ platform :android do
)
end
desc "Deploy a new Beta version to the Google Play"
desc "Build a new Pro Beta version"
lane :build_beta_pro do |options|
gradle(
task: "assemble",
flavor: "pro",
build_type: "Release",
print_command: false,
properties: {
"android.injected.signing.store.file" => options[:storefile],
"android.injected.signing.store.password" => options[:storepass],
"android.injected.signing.key.alias" => options[:keyalias],
"android.injected.signing.key.password" => options[:keypass],
}
)
end
desc "Deploy a new Free Beta version to the Google Play"
lane :deploy_beta_google_free do
upload_to_play_store(
track: "beta",
skip_upload_metadata: "false",
skip_upload_images: "true",
skip_upload_screenshots: "false",
apk: "./app/build/outputs/apk/free_google/release/app-free_google-release.apk",
apk: "./app/build/outputs/apk/free_google/release/app-free-release.apk",
validate_only: "false",
)
gradle(
task: 'clean'
)
end
end
desc "Deploy a new Pro Beta version to the Google Play"
lane :deploy_beta_google_pro do
upload_to_play_store(
track: "beta",
skip_upload_metadata: "true",
skip_upload_images: "true",
skip_upload_screenshots: "true",
apk: "./app/build/outputs/apk/free_google/release/app-pro-release.apk",
validate_only: "false",
)
gradle(
task: 'clean'
)
end
end

View File

@@ -11,18 +11,29 @@ or alternatively using `brew cask install fastlane`
# Available Actions
## Android
```
fastlane tests
fastlane android tests
```
Runs all the tests
### android build_beta_free
```
fastlane build_beta_google_free storefile:"" storepass:"" keyalias:"" keypass:""
fastlane android build_beta_free
```
Build a new Beta version
Build a new Free Beta version
### android build_beta_pro
```
fastlane deploy_beta_google_free
fastlane android build_beta_pro
```
Deploy a new Beta version to the Google Play
Build a new Pro Beta version
### android deploy_beta_google_free
```
fastlane android deploy_beta_google_free
```
Deploy a new Free Beta version to the Google Play
### android deploy_beta_google_pro
```
fastlane android deploy_beta_google_pro
```
Deploy a new Pro Beta version to the Google Play
----