Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
500d415
commit 2225aca
Showing
13 changed files
with
49 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,76 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.github.dcendents.android-maven' // ADD THIS | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
group='com.github.jitpack' | ||
repositories { | ||
mavenCentral() | ||
google() | ||
jcenter() | ||
maven { url "https://jitpack.io" } | ||
} | ||
|
||
group = 'com.github.jitpack' | ||
version = '1.0' | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion "23.0.2" | ||
compileSdkVersion 28 | ||
buildToolsVersion "28.0.2" | ||
|
||
defaultConfig { | ||
minSdkVersion 21 | ||
targetSdkVersion 23 | ||
minSdkVersion 16 | ||
targetSdkVersion 28 | ||
versionCode 1 | ||
versionName "1.0" | ||
consumerProguardFiles 'proguard-rules.pro' | ||
versionName version | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
lintOptions { | ||
abortOnError false | ||
} | ||
sourceSets { | ||
main.java.srcDirs += 'src/main/kotlin' | ||
androidTest.java.srcDirs += 'src/androidTest/kotlin' | ||
androidTest.resources.srcDirs += 'src/androidTest/res' | ||
} | ||
} | ||
|
||
dependencies { | ||
// add dependencies here | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.2' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | ||
|
||
implementation 'com.android.support:appcompat-v7:28.0.0-rc01' | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | ||
} | ||
|
||
// build a jar with source files | ||
task sourcesJar(type: Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.sourceFiles | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
failOnError false | ||
source = android.sourceSets.main.java.sourceFiles | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
classpath += configurations.compile | ||
} | ||
|
||
// build a jar with javadoc | ||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
task classesJar(type: Jar) { | ||
from "$buildDir/intermediates/classes/release" | ||
} | ||
|
||
artifacts { | ||
archives sourcesJar | ||
archives classesJar | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
// 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); | ||
//} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
library/src/androidTest/java/io/jitpack/example/examplelib/ApplicationTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<manifest package="io.jitpack.example.examplelib"> | ||
<manifest package="io.jitpack.api"> | ||
|
||
<application /> | ||
|
||
</manifest> |
This file was deleted.
Oops, something went wrong.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.