@@ -6,45 +6,51 @@ plugins {
6
6
7
7
def libraryGroupId = ' com.shz.imagepicker'
8
8
def libraryArtifactId = ' imagepicker'
9
- def libraryVersion = ' 2.0.1 '
9
+ def libraryVersion = ' 2.0.3 '
10
10
11
11
12
12
android {
13
13
compileSdkVersion 33
14
-
15
14
defaultConfig {
16
15
minSdkVersion 16
17
16
targetSdkVersion 33
18
17
19
18
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
20
19
consumerProguardFiles " consumer-rules.pro"
21
20
}
22
-
21
+ publishing {
22
+ singleVariant(" release" ) {
23
+ withSourcesJar()
24
+ withJavadocJar()
25
+ }
26
+ }
23
27
buildTypes {
24
28
release {
25
29
minifyEnabled false
26
30
}
27
31
}
28
32
compileOptions {
29
- sourceCompatibility JavaVersion . VERSION_1_8
30
- targetCompatibility JavaVersion . VERSION_1_8
33
+ sourceCompatibility JavaVersion . VERSION_17
34
+ targetCompatibility JavaVersion . VERSION_17
31
35
}
36
+ namespace ' com.shz.imagepicker.imagepicker'
32
37
}
33
38
34
39
dependencies {
35
- implementation " androidx.appcompat:appcompat:1.5 .1"
36
- implementation " androidx.recyclerview:recyclerview:1.2 .1"
37
- implementation " androidx.exifinterface:exifinterface:1.3.5 "
40
+ implementation " androidx.appcompat:appcompat:1.6 .1"
41
+ implementation " androidx.recyclerview:recyclerview:1.3 .1"
42
+ implementation " androidx.exifinterface:exifinterface:1.3.6 "
38
43
}
39
44
40
- publishing {
41
- publications {
42
- aar(MavenPublication ) {
43
- groupId libraryGroupId
44
- version libraryVersion
45
- artifactId libraryArtifactId
46
-
47
- artifact(" $buildDir /outputs/aar/${ artifactId} -release.aar" )
45
+ afterEvaluate {
46
+ publishing {
47
+ publications {
48
+ release(MavenPublication ) {
49
+ from components. release
50
+ groupId libraryGroupId
51
+ version libraryVersion
52
+ artifactId libraryArtifactId
53
+ }
48
54
}
49
55
}
50
- }
56
+ }
0 commit comments