Coder Social home page Coder Social logo

buildtool's Introduction

buildtool

Multi channels and flavors build script for android Screenshot

###Introduction Since Google announced the new Android build tools Gradle, most Android developers have changed to use AndroidStudio. Though still in alpha version, I found it's really cool to work with especially when you need to develop a project with multi-release-version.

We can use the flavor build for each release version and ship them on the Google Play Store, however it can be tasteless when we need more apks on each flavor with some mirro changes, such as some meta-data for different markets outside Google Play Store. That's why I made this simple project with some usefull shell script to handle this situation.

###Usage This tool has been updated, with gradle task written in groovy instead of bash shell scripts. Currently we have three different version, each one requires little different.

#downoad script and config file
git clone https://github.com/avenwu/buildtool.git

copy ship.sh and channels.properties into your project directory, open terminal:

./ship.sh

####v2 To use the new buildtool your need make few configuration.

#downoad script and config file
buildtool-v2.0(https://github.com/avenwu/buildtool/releases/tag/buildtool-v2.0)
  1. Copy the custom.gradle into your project root directory, the same level with build.gradle.
  2. Apply the gradle script into build.gradle,add apply from: 'custom.gradle' on top of build.gradle
  3. Update the gradle.properties(create it if you dont have one), market_channels stands for all your channels;

####v1 Deprecated
So how to integrate this to your own project? Just copy the buildtool and tools into your own project directory, or you can make changes on the script as you like. The default release command is ./gradlew clean assembleRelease/assembleDebug, so if you have custom defined release/debug name just change it to yours.

#downoad script and config file
buildtool-v1.0(https://github.com/avenwu/buildtool/releases/tag/buildtool-v1.0)

Here are some usefull options:

#release all flavors
./buildtool release

#relase all debug flavors
./buildtool debug

#clean the temp files generated by script
./buildtool -c|clean

#show help infomation
./buildtool -h|--help

###Roadmap

###Contributions Any improvemet on this project will be appreaciated, so you can fork it and make changes freely and pull requests.

###LICENCES This project is under Apache License 2.0

buildtool's People

Contributors

avenwu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

veicn

buildtool's Issues

关于gradle原生打包

请问下,你的这个打包方式是重新编译么?那与gradle自带的productFlavors有什么区别呢?看到你写的脚本,很好很强大

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.