@@ -4,8 +4,11 @@ apply plugin: 'com.hiya.jacoco-android'
4
4
apply plugin : ' checkstyle'
5
5
6
6
android {
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'
9
12
10
13
compileOptions {
11
14
sourceCompatibility 1.8
@@ -21,13 +24,20 @@ android {
21
24
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
22
25
}
23
26
27
+ publishing {
28
+ multipleVariants {
29
+ allVariants()
30
+ withJavadocJar()
31
+ }
32
+ }
33
+
24
34
buildTypes {
25
35
release {
26
36
minifyEnabled false
27
37
proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
28
38
}
29
39
debug {
30
- testCoverageEnabled true
40
+ enableAndroidTestCoverage true
31
41
multiDexEnabled true
32
42
}
33
43
}
@@ -49,14 +59,14 @@ dependencies {
49
59
api ' com.google.firebase:firebase-messaging:20.3.0'
50
60
implementation " androidx.security:security-crypto:1.1.0-alpha06"
51
61
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'
57
67
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 '
60
70
testImplementation ' org.khronos:opengl-api:gl1.1-android-2.1_r1'
61
71
testImplementation ' com.squareup.okhttp3:mockwebserver:4.2.2'
62
72
testImplementation ' org.skyscreamer:jsonassert:1.5.0'
@@ -72,28 +82,10 @@ dependencies {
72
82
}
73
83
74
84
ext {
75
- publishedGroupId = ' com.iterable'
76
85
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
-
84
86
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" ]
93
87
}
94
88
95
- apply from : ' https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
96
-
97
89
if (hasProperty(" mavenPublishEnabled" )) {
98
90
apply from : ' ../maven-push.gradle'
99
91
}
@@ -108,6 +100,7 @@ task javadoc(type: Javadoc) {
108
100
109
101
tasks. withType(Test ) {
110
102
jacoco. includeNoLocationClasses = true
103
+ jacoco. excludes = [' jdk.internal.*' ]
111
104
}
112
105
113
106
task checkstyle (type : Checkstyle ) {
0 commit comments