Git Product home page Git Product logo

puppet-android's Introduction

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, 18 , 19 , 20, 21, 22 and 23 version is also available:

include android::19

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.

puppet-android's People

Contributors

aafwu00 avatar blackjid avatar mtakezawa avatar ocxo avatar rafaelfranca avatar tarebyte avatar wikyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

puppet-android's Issues

allow setting the ndk version

I have an app that requires ndk r10, but currently this module sets $android::config::ndk_version to r9c-boxen1.

I'm a bit of a puppet noob so I'm not sure I can help out much with the pull request. But I'll give it a shot if you can point me in direction of an example I can follow.

Extras with numbers in the name always downloaded again

The detection of already installed extras doesn't work if the extra has a number in the name. For example extra-android-m2repository will install in extra/android/m2repository, but the regex ($subfix = regsubst($version, '^extra-(\D+)-(\D+)$', '\2')) will fail to match this, so it will look for extra/extra-android-m2repository/extra-android-m2repository.

So the regex should be a bit smarter, but I don't know what formats we can expect (I'm just a poor lonesome ops guy, not an Android dev, trying to get Jenkins under control). '^extra-(.+)-(.+)$' seems to work for me.

build-tools location

@aafwu00 @tarebyte @fromonesrc I updated the brew formula to use the latest sdk. I was really looking to fix a problem where the build-tool zipalign was not found by the /opt/boxen/homebre/bin/zipalign script

That bin is in fact a symlink to /opt/boxen/homebrew/Cellar/android-sdk/24-boxen1/bin/zipalign and it contents is

#!/bin/bash
TOOL="/opt/boxen/homebrew/Cellar/android-sdk/24-boxen1/build-tools/21.1.2/zipalign"
exec "$TOOL" "$@"

The problem is that in the formula, the build-tools version is hardcoded (was to 17.0.0 and now is to 21.1.2) https://github.com/boxen/puppet-android/blob/master/files/brews/android-sdk.rb#L25-L27
In order to work you need to install that exact version with the build-tools class this puppet module provides

android::build_tools { '21.1.2': }

Maybe the the formula install bits that create those files should be triggered somehow when the android::build_tools class is used...

Or maybe the brew formula should explain after intalling that you need to install that version of build-tools ??

Can you think of a better solution or approach to fix this issue?

Incompatible with latest Java

If your own Puppetfile has:

  • github "java", "1.5.0"

On install of puppet-android you get a conflict as the latest is installed, but this seems to be requiring 1.1.2 any way to loosen this constraint?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.