@@ -16,47 +16,45 @@ publishing {
1616 artifact(" $buildDir /outputs/aar/android-release.aar" )
1717 artifact sourcesJar
1818 artifactId ' kissme-android'
19+ version project. libraryVersion
1920
20- // The publication doesn't know about our dependencies, so we have to manually add them to the pom
2121 pom. withXml {
2222 def dependenciesNode = asNode(). appendNode(' dependencies' )
23-
24- // Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
25- configurations. compile. allDependencies. each {
26- def dependencyNode = dependenciesNode. appendNode(' dependency' )
27- dependencyNode. appendNode(' groupId' , it. group)
28- dependencyNode. appendNode(' artifactId' , it. name)
29- dependencyNode. appendNode(' version' , it. version)
23+ // Iterate over the implementation dependencies (we don't want the test ones), adding a <dependency> node for each
24+ configurations. implementation. allDependencies. each {
25+ // Ensure dependencies such as fileTree are not included in the pom.
26+ if (it. name != ' unspecified' ) {
27+ println (it. name)
28+ def dependencyNode = dependenciesNode. appendNode(' dependency' )
29+ dependencyNode. appendNode(' groupId' , it. group)
30+ dependencyNode. appendNode(' artifactId' , it. name)
31+ dependencyNode. appendNode(' version' , it. version)
32+ }
3033 }
3134 }
3235 }
3336 }
3437}
3538
3639android {
37- compileSdkVersion androidCompileSdkVersion
40+ compileSdkVersion 28
3841 defaultConfig {
39- minSdkVersion androidMinSdkVersion
40- }
41- testOptions. unitTests. includeAndroidResources = true
42-
43- sourceSets. all {
44- it. java. srcDir " src/$it . name /kotlin"
42+ minSdkVersion 23
43+ targetSdkVersion 28
44+ versionCode 1
45+ versionName ' 1.0'
4546 }
46-
47- // TODO replace with https://issuetracker.google.com/issues/72050365 once released.
48- libraryVariants . all {
49- it . generateBuildConfig . enabled = false
47+ buildTypes {
48+ release {
49+ minifyEnabled false
50+ }
5051 }
5152}
5253
5354dependencies {
5455 expectedBy project(' :common' )
5556 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
56- // compile type binaryprefs dependency is needed to specify that
57- // it should be included in the .pom file of the kissme-android artifact
58- // TODO: find a better way to declare it
59- compile " com.github.yandextaxitech:binaryprefs:1.0.1"
57+ implementation " com.github.yandextaxitech:binaryprefs:1.0.1"
6058 testImplementation " org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version "
6159 testImplementation " org.jetbrains.kotlin:kotlin-test:$kotlin_version "
6260 testImplementation " io.mockk:mockk:1.9.3"
0 commit comments