11apply plugin : ' com.android.library'
22apply plugin : ' kotlin-android'
3- apply plugin : ' com.novoda.bintray-release '
3+ apply plugin : ' maven-publish '
44
55android {
66 compileSdkVersion 29
@@ -11,16 +11,31 @@ android {
1111 versionCode 1
1212 versionName " 1.0"
1313 }
14- }
1514
16- publish {
17- userOrg = ' troy379'
18- groupId = ' com.github.stfalcon'
19- artifactId = ' stfalcon-imageviewer'
20- publishVersion = ' 1.0.1'
21- desc = ' A customizable full-screen image viewer with shared image transition support, "pinch to zoom" and "swipe to dismiss" gestures.'
22- uploadName= ' StfalconImageViewer'
23- website = ' https://github.com/stfalcon-studio/StfalconImageViewer'
15+ buildTypes {
16+ release {
17+ minifyEnabled false
18+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
19+ }
20+ }
21+
22+ afterEvaluate {
23+ publishing {
24+ publications {
25+ // Creates a Maven publication called "release".
26+ release(MavenPublication ) {
27+ // Applies the component for the release build variant.
28+ from components. release
29+
30+ // You can then customize attributes of the publication as shown below.
31+ groupId = ' com.github.stfalcon'
32+ artifactId = ' stfalcon-imageviewer'
33+ version = ' 1.0.1'
34+ }
35+ }
36+ }
37+ }
38+
2439}
2540
2641dependencies {
@@ -32,6 +47,8 @@ dependencies {
3247
3348repositories {
3449 maven { url " https://jitpack.io" }
50+ mavenCentral()
51+ google()
3552}
3653
3754// Avoid Kotlin docs error
@@ -43,4 +60,4 @@ tasks.withType(Javadoc) {
4360task javadoc (type : Javadoc ) {
4461 source = android. sourceSets. main. java. srcDirs
4562 classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
46- }
63+ }
0 commit comments