This project is a fastlane plugin. To get started with fastlane-plugin-android_sdk_update
, add it to your project by running:
fastlane add_plugin android_sdk_update
Install and update required Android-SDK packages:
- The Android-SDK will be installed with Homebrew/Linuxbrew.
- Updates for the specified packages will be automatically installed.
# With defined 'gradle.properties'- instructions below
android_sdk_update(
additional_packages: ["extras;google;m2repository", "extras;android;m2repository"]
)
android_sdk_update(
compile_sdk_version: "27",
build_tools_version: "27.0.2",
additional_packages: ["extras;google;m2repository", "extras;android;m2repository"]
)
In order to reference the same compileSdkVersion and buildToolsVersion as defined in your build.gradle, we are using the 'gradle.properties'.
First we set these versions in the property file
gradle.properties
compile_sdk_version=27
build_tools_version=27.0.2
Now we can reference them in our gradle project
build.gradle
android {
compileSdkVersion project.compile_sdk_version.toInteger()
buildToolsVersion project.build_tools_version
...
}
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.