Code Monkey home page Code Monkey logo

onemobilesdk-tools-android's Introduction

OneMobileSDK-tools-android

Build scripts

This repo contains common use build scripts for android library development that will be useful for CI and CD setup with Travis/Bintray stack.

Content

  • git-consts.gradle helpful git values
  • travis-consts.gradle ci values
  • android.gradle android library script
  • github-maven.gradle mavens artifacts upload script to github
  • bintray.gradle bintray upload script
  • javadoc.gradle javadoc artifact generation
  • sources.gradle sources artifact generation

Usage

Considering that this repo is attach to project as git submodule as tools folder, project build script should look like this:

repositories {
    jcenter()
}

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        // Mandatory section
        // Android library plugin
        classpath 'com.android.tools.build:gradle:2.3.0'
        // Local maven deployment plugin
        classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
        // Bintray upload plugin
        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
    }
}

// Order is important
apply from: 'tools/travis-consts.gradle'
apply from: 'tools/git-consts.gradle'

ext {
    // Android library config
    BUILD_TOOLS_VERSION = "25.0.2"
    MIN_API_VERSION = 16
    TARGET_API_VERSION = 25
    LIBRARY_VERSION = GIT_BASED_VERSION
    // These values will be added to BuildConfig.java
    BUILD_CONFIG_CONSTS = [
            'MY_BUILD_CONFIG_VALUE': 'some://url.for/further/use'
    ]

    // Javadoc configuration
    JAVADOC_TITLE = "Javadoc for lib"

    // Bintray publish config
    BINTRAY_KEY = System.getenv('BINTRAY_KEY')   
    BINTRAY_USER = System.getenv('BINTRAY_USER')
    GROUP_ID = 'com.example.groupid'
    REPO_NAME = 'bintray-repo-name'
    ARTIFACT_ID = 'artifact'
}

// Order is important
apply from: 'tools/android.gradle'
apply from: 'tools/javadoc.gradle'
// This can be excluded if sources are not needed
apply from: 'tools/sources.gradle'
apply from: 'tools/bintray.gradle'
// Or/and
apply from: 'tools/github-maven.gradle'

dependencies {
    // Your dependencies
}

onemobilesdk-tools-android's People

Contributors

aleksanderlevadniy avatar yaroslavkryvko avatar olegkozhemiakin avatar ottosander avatar

Watchers

Adeola Awoyemi avatar Sean Levin avatar Morgan Jones avatar Oleksii Demedetskyi avatar George Fletcher avatar James Cloos avatar Robert Cabacungan avatar Mikul avatar  avatar Yi-Chin Sun avatar  avatar Brandon avatar Jack Hand avatar Jue avatar Alexander Skalozubov avatar Marianna Tishchenko avatar  avatar  avatar Mark Gerl avatar Bohdan Bilonoh avatar Andrey Moskvin avatar  avatar Vladyslav Anokhin avatar  avatar

Forkers

ottosander

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.