Skip to content

Commit

Permalink
Update jar in demo app and amend build.gradle file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Carballo committed Feb 17, 2014
1 parent aa3a682 commit 2dec5e8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Binary file not shown.
18 changes: 14 additions & 4 deletions easyadapter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,29 @@ dependencies {
android.libraryVariants.all { variant ->

task("generate${variant.name}Javadoc", type: Javadoc) {
title = "$name $version API"
def versionName = android.defaultConfig.versionName
title = "EasyAdapter $versionName API"
description "Generates Javadoc for $variant.name."
source = variant.javaCompile.source
ext.androidJar = "${android.plugin.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
options.links("http://docs.oracle.com/javase/7/docs/api/");
options.links("http://d.android.com/reference/");
exclude '**/BuildConfig.java'
exclude '**/R.java'
exclude '**/BuildConfig.java', '**/R.java'

def name = variant.buildType.name
def destDocs = "docs/v$versionName"
if (!name.equals(com.android.builder.BuilderConstants.DEBUG)) {
copy {
from 'build/docs/javadoc'
into destDocs
}
}

}

}


android.libraryVariants.all { variant ->
def name = variant.buildType.name
if (name.equals(com.android.builder.BuilderConstants.DEBUG)) {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':easyadapter', ':app', ':EasyAdapterDemo', 'EasyAdapterDemoooooo'
include ':easyadapter', ':EasyAdapterDemo'

0 comments on commit 2dec5e8

Please sign in to comment.