@@ -4,8 +4,11 @@ apply plugin: 'com.hiya.jacoco-android'
44apply plugin : ' checkstyle'
55
66android {
7- compileSdkVersion 29
8- buildToolsVersion ' 29.0.3'
7+ compileSdkVersion 33
8+ buildToolsVersion ' 33.0.2'
9+
10+ namespace ' com.iterable.iterableapi'
11+ testNamespace ' iterable.com.iterableapi'
912
1013 compileOptions {
1114 sourceCompatibility 1.8
@@ -21,13 +24,20 @@ android {
2124 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
2225 }
2326
27+ publishing {
28+ multipleVariants {
29+ allVariants()
30+ withJavadocJar()
31+ }
32+ }
33+
2434 buildTypes {
2535 release {
2636 minifyEnabled false
2737 proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
2838 }
2939 debug {
30- testCoverageEnabled true
40+ enableAndroidTestCoverage true
3141 multiDexEnabled true
3242 }
3343 }
@@ -49,14 +59,14 @@ dependencies {
4959 api ' com.google.firebase:firebase-messaging:20.3.0'
5060 implementation " androidx.security:security-crypto:1.1.0-alpha06"
5161
52- testImplementation ' junit:junit:4.12 '
53- testImplementation ' androidx.test:runner:1.3.0 '
54- testImplementation ' androidx.test.espresso:espresso-core:3.3.0 '
55- testImplementation ' androidx.test.ext:junit:1.1.2 '
56- testImplementation ' androidx.test:rules:1.3 .0'
62+ testImplementation ' junit:junit:4.13.2 '
63+ testImplementation ' androidx.test:runner:1.5.2 '
64+ testImplementation ' androidx.test.espresso:espresso-core:3.5.1 '
65+ testImplementation ' androidx.test.ext:junit:1.1.5 '
66+ testImplementation ' androidx.test:rules:1.5 .0'
5767 testImplementation ' org.mockito:mockito-core:3.3.3'
58- testImplementation ' org.robolectric:robolectric:4.4 '
59- testImplementation ' org.robolectric:shadows-playservices:4.4 '
68+ testImplementation ' org.robolectric:robolectric:4.9.2 '
69+ testImplementation ' org.robolectric:shadows-playservices:4.9.2 '
6070 testImplementation ' org.khronos:opengl-api:gl1.1-android-2.1_r1'
6171 testImplementation ' com.squareup.okhttp3:mockwebserver:4.2.2'
6272 testImplementation ' org.skyscreamer:jsonassert:1.5.0'
@@ -72,28 +82,10 @@ dependencies {
7282}
7383
7484ext {
75- publishedGroupId = ' com.iterable'
7685 libraryName = ' iterableapi'
77- artifact = ' iterableapi'
78-
79- libraryDescription = ' Iterable Android SDK'
80-
81- siteUrl = ' https://github.com/Iterable/iterable-android-sdk'
82- gitUrl = ' https://github.com/Iterable/iterable-android-sdk.git'
83-
8486 libraryVersion = ' 3.4.17'
85-
86- developerId = ' davidtruong'
87- developerName = ' David Truong'
88- developerEmail
= ' [email protected] ' 89-
90- licenseName = ' The Apache Software License, Version 2.0'
91- licenseUrl = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
92- allLicenses = [" Apache-2.0" ]
9387}
9488
95- apply from : ' https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
96-
9789if (hasProperty(" mavenPublishEnabled" )) {
9890 apply from : ' ../maven-push.gradle'
9991}
@@ -108,6 +100,7 @@ task javadoc(type: Javadoc) {
108100
109101tasks. withType(Test ) {
110102 jacoco. includeNoLocationClasses = true
103+ jacoco. excludes = [' jdk.internal.*' ]
111104}
112105
113106task checkstyle (type : Checkstyle ) {
0 commit comments