fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.129.0.beta.20190811200106 vs fastlane/lib/fastlane/actions/gradle.rb in fastlane-2.129.0.beta.20190813200016
- old
+ new
@@ -100,11 +100,11 @@
def self.available_options
[
FastlaneCore::ConfigItem.new(key: :task,
env_name: 'FL_GRADLE_TASK',
- description: 'The gradle task you want to execute, e.g. `assemble` or `test`. For tasks such as `assembleMyFlavorRelease` you should use gradle(task: \'assemble\', flavor: \'Myflavor\', build_type: \'Release\')',
+ description: 'The gradle task you want to execute, e.g. `assemble`, `bundle` or `test`. For tasks such as `assembleMyFlavorRelease` you should use gradle(task: \'assemble\', flavor: \'Myflavor\', build_type: \'Release\')',
optional: false,
is_string: true),
FastlaneCore::ConfigItem.new(key: :flavor,
env_name: 'FL_GRADLE_FLAVOR',
description: 'The flavor that you want the task for, e.g. `MyFlavor`. If you are running the `assemble` task in a multi-flavor project, and you rely on Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH] then you must specify a flavor here or else this value will be undefined',
@@ -185,12 +185,25 @@
[
'gradle(
task: "assemble",
flavor: "WorldDomination",
build_type: "Release"
- )',
- 'gradle(
+ )
+ ```
+
+ To build an AAB use:
+ ```ruby
+ gradle(
+ task: "bundle",
+ flavor: "WorldDomination",
+ build_type: "Release"
+ )
+ ```
+
+ You can pass properties to gradle:
+ ```ruby
+ gradle(
# ...
properties: {
"versionCode" => 100,
"versionName" => "1.0.0",
@@ -209,12 +222,15 @@
"android.injected.signing.store.file" => "keystore.jks",
"android.injected.signing.store.password" => "store_password",
"android.injected.signing.key.alias" => "key_alias",
"android.injected.signing.key.password" => "key_password",
}
- )',
- '# If you need to pass sensitive information through the `gradle` action, and don\'t want the generated command to be printed before it is run, you can suppress that:
+ )
+ ```
+
+ If you need to pass sensitive information through the `gradle` action, and don\'t want the generated command to be printed before it is run, you can suppress that:
+ ```ruby
gradle(
# ...
print_command: false
)
```
@@ -231,11 +247,14 @@
```ruby
gradle(
# ...
flags: "--exitcode --xml file.xml"
- )',
- '# Delete the build directory and generated APKs
+ )
+ ```
+
+ Delete the build directory, generated APKs and AABs
+ ```ruby
gradle(
task: "clean"
)'
]
end