nickpack.android_sdk

Ansible Role: Android SDK

Build Status

This is an Ansible Role that installs the Android SDK tools, SDK packages, and required dependencies on Ubuntu and RedHat based operating systems.

Requirements

You will need a recent version of Ubuntu.

Role Variables

Here are the available variables with their default values (see defaults/main.yml):

  • android_sdk_download_location:

    • URL to download the Android SDK tools package.
    • Default: http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz
  • android_sdk_install_location:

    • Where you want to install the SDK on your system.
    • Default: /opt
  • ubuntu_dependency_packages:

    • A list of packages needed for building (Ubuntu).
    • Example: libncurses5, libstdc++6, zlib1g, etc.
  • ubuntu_precise_dependency_packages:

    • Additional packages needed for Ubuntu Precise.
    • Example: libgd2-xpm, libgphoto2-2, etc.
  • rh_dependency_packages:

    • Packages required for RedHat based systems.
    • Example: expect, libstdc++.i686, etc.
  • android_sdk_update_path:

    • Indicates if the role should update the PATH variable with the Android SDK paths.
    • Default: true
  • android_sdk_base_buildtools_version:

    • The main version of the build tools from the SDK.
    • Default: 20.0.0
  • android_sdk_tools_to_install:

    • List of Android SDK tools to install.
    • Includes tools like build-tools-20.0.0, platform-tools, etc.
  • android_sdks_to_install:

    • List of Android SDK versions to install.
    • Example: android-21, android-20, etc.

Example Playbook

Here's an example of how to use the role:

- hosts: appbuild
  vars_files:
    - vars/main.yml
  roles:
    - { role: nickpack.android_sdk }

License

This role is licensed under BSD.

Author Information

This role was created by Nick Pack in 2015.

Contributors

  • @timdaman - Fixed issue with loading variables
  • @ojechev-broadsoft - Added support for OSX
  • @rodrigdav - Fixed variables for compatibility with version 2.2
  • @halkeye - Separated SDK tools and improved 64-bit support
  • @edunham - Added support for 32-bit systems
  • @peterjanes - Added support for RedHat family
  • @conorsch - Updated for support beyond Ubuntu 14.04
Informazioni sul progetto

Installs the Android SDK tools, SDKs themselves and applicable application build dependencies

Installa
ansible-galaxy install nickpack.android_sdk
Licenza
other
Download
5.9k
Proprietario
Director @Hakosuka-Technology, Open source and car enthusiast.