Skip to content

Commit

Permalink
Jar not like android xml. Return to aar
Browse files Browse the repository at this point in the history
  • Loading branch information
whalemare committed Jun 15, 2017
1 parent 84ba084 commit cf98f33
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile project(path: ':sheetmenu')
// compile 'com.github.whalemare:sheetmenu:1.3.1@aar'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
}
repositories {
mavenCentral()
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.1.2-4'
ext.app_version = "1.3.1"
ext.kotlin_version = '1.1.2-5'
ext.app_version = "1.3.2"
repositories {
jcenter()
}
Expand Down
9 changes: 0 additions & 9 deletions sheetmenu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,3 @@ artifacts {
archives sourcesJar
archives javadocJar
}

// uncomment to build a jar file in addition to the default aar file
android.libraryVariants.all { variant ->
def name = variant.buildType.name
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task);
}

0 comments on commit cf98f33

Please sign in to comment.