Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anoop44 committed Feb 25, 2020
2 parents 7514254 + 023a3ce commit f97fe81
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ buildscript {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.novoda:bintray-release:0.9.2' // https://github.com/novoda/bintray-release
classpath 'com.github.ben-manes:gradle-versions-plugin:0.27.0'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:0.10.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down
22 changes: 22 additions & 0 deletions keyboardvisibilityevent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'com.novoda.bintray-release'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka'

android {
compileSdkVersion 29
Expand All @@ -24,6 +25,27 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-runtime:2.2.0"
}

task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from android.sourceSets.main.java.srcDirs
}

task dokkaJavadoc(type:org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
inputs.dir 'src/main/java'
}

// build a jar with javadoc
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
archiveClassifier.set('javadoc')
from "$buildDir/javadoc"
}

artifacts {
archives sourcesJar, javadocJar
}

publish {
artifactId = 'keyboardvisibilityevent'
desc = 'Android Library to handle soft keyboard visibility change event'
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {

dependencies {
implementation project(':keyboardvisibilityevent')
// implementation 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:2.2.0'
// implementation 'net.yslibrary.keyboardvisibilityevent:keyboardvisibilityevent:3.0.0-RC1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.61"
implementation 'androidx.appcompat:appcompat:1.1.0'
}

0 comments on commit f97fe81

Please sign in to comment.