Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Latest commit

 

History

History
102 lines (77 loc) · 2.36 KB

README.md

File metadata and controls

102 lines (77 loc) · 2.36 KB

Android Puppet Module for Boxen

Build Status

Usage

The sdk is available:

include android::sdk

The ndk is also available:

include android::ndk

ensure a tools is installed

include android::tools

ensure a platform-tools is installed

include android::platform_tools

ensure a build-tools is installed

android::build_tools { '18.1.1': }

The 3, 4, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17 and 18 version is also available:

include android::18

ensure a version is installed for a certain android version

# install 18 version for default(platform, add_on)
android::version { '17': }

# install 18 version for all
android::version { '18':
  options => ['platform', 'add_on', 'system_image', 'sample'] 
}

ensure a platform is installed for a certain android version

android::platform { 'android-18': }

ensure a system_image is installed for a certain android version

android::system_image { 'sysimg-18': }

ensure a add_on is installed for a certain android version

android::add_on { 'addon-google_apis-google-18': }

ensure a sample is installed for a certain android version

android::sample { 'sample-18': }

ensure a extra is installed for a certain android version

android::extra { 'extra-google-google_play_services': }

ensure a doc is installed

include android::doc

ensure a studio is installed

include android::studio

Required Puppet Modules

  • boxen
  • homebrew
  • stdlib
  • java

Environment

Once installed, you can access the following variables in your environment, projects, etc:

  • ANDROID_HOME: android sdk home directory
  • ANDROID_NDK_HOME: android ndk home directory

Development

Set GITHUB_API_TOKEN in your shell with a Github oAuth Token to raise your API rate limit. You can get some work done without it, but you're less likely to encounter errors like Unable to find module 'boxen/puppet-boxen' on https://github.com.

Then write some code. Run script/cibuild to test it. Check the script directory for other useful tools.