Skip to content

Commit

Permalink
Added files with version name and code
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-skrabacz committed Jul 30, 2014
1 parent a4805b0 commit 71f90a4
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
53 changes: 50 additions & 3 deletions overlayControlsLib/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,39 @@
def buildVersionName = file('./version_name').getText()
def buildVersionCode = file('./version_code').getText().toInteger()

apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.library'

buildscript
{
repositories
{
mavenCentral()
}
dependencies
{
classpath 'com.android.tools.build:gradle:0.12.+'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
}
}

allprojects {
repositories {
mavenCentral()
}
}

android {
compileSdkVersion 19
buildToolsVersion "20.0.0"

publishNonDefault true

defaultConfig {
applicationId "de.asideas.overlay.controls.mymodule.app"
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "1.0"
versionCode buildVersionCode
versionName buildVersionName
}
buildTypes {
release {
Expand All @@ -22,3 +46,26 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
}

android.libraryVariants.all { variant ->
task("genJavadoc${variant.name.capitalize()}", type: Javadoc) {

title = "${project.name.capitalize()} ${buildVersionName} API"
source = variant.javaCompile.source

description "Generates Javadoc for $variant.name."

def androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(androidJar) + files("build/intermediates/classes/${variant.name}")

options {
links("http://docs.oracle.com/javase/7/docs/api/")
linksOffline("http://d.android.com/reference", "${android.sdkDirectory}/docs/reference");
}

exclude '**/internal/**/*.java', '**/internal/*.java'
exclude '**/BuildConfig.java'
exclude '**/R.java'
}

}
1 change: 1 addition & 0 deletions overlayControlsLib/version_code
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5
1 change: 1 addition & 0 deletions overlayControlsLib/version_name
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.5.0

0 comments on commit 71f90a4

Please sign in to comment.