项目作者: NovatecConsulting

项目描述 :
🚀 Fastlane plugin to install and update required Android-SDK packages
高级语言: Ruby
项目地址: git://github.com/NovatecConsulting/fastlane-plugin-android_sdk_update.git
创建时间: 2017-04-24T12:19:15Z
项目社区:https://github.com/NovatecConsulting/fastlane-plugin-android_sdk_update

开源协议:MIT License

下载


android_sdk_update plugin

fastlane Plugin Badge

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-android_sdk_update, add it to your project by running:

  1. fastlane add_plugin android_sdk_update

About 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.

Example

  1. # With defined 'gradle.properties'- instructions below
  2. android_sdk_update(
  3. additional_packages: ["extras;google;m2repository", "extras;android;m2repository"]
  4. )
  5. android_sdk_update(
  6. compile_sdk_version: "27",
  7. build_tools_version: "27.0.2",
  8. additional_packages: ["extras;google;m2repository", "extras;android;m2repository"]
  9. )

Instructions for compile_sdk_version and build_tools_version

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

  1. compile_sdk_version=27
  2. build_tools_version=27.0.2

Now we can reference them in our gradle project

build.gradle

  1. android {
  2. compileSdkVersion project.compile_sdk_version.toInteger()
  3. buildToolsVersion project.build_tools_version
  4. ...
  5. }

Run tests for this plugin

To run both the tests, and code style validation, run

  1. rake

To automatically fix many of the styling issues, use

  1. rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.