Skip to content

Commit d40afe2

Browse files
authored
Merge pull request #343 from Iterable/version-3.2.14
[MOB-2890] SDK version 3.2.14
2 parents e290206 + b620102 commit d40afe2

File tree

8 files changed

+161
-7
lines changed

8 files changed

+161
-7
lines changed

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ freeline/
5757
freeline_project_description.json
5858

5959
# MacOS generated files
60-
.DS_Store
60+
.DS_Store
61+
62+
# [Maven] ========================
63+
target/
64+
pom.xml.tag
65+
pom.xml.releaseBackup
66+
pom.xml.versionsBackup
67+
pom.xml.next
68+
release.properties

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1515
#### Fixed
1616
- nothing yet
1717

18+
## [3.2.14](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.2.14)
19+
#### Fixed
20+
- Non-silent inbox messages will now properly account for the read state.
21+
1822
## [3.2.13](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.2.13)
1923
#### Added
2024
- In-app message prioritization - Ordering the display of in-app messages based on a priority you select in Iterable when creating in-app campaigns

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
33
ext.kotlin_version = '1.3.72'
4+
ext.mavenPublishEnabled = true
45
repositories {
56
google()
67
jcenter()

gradle.properties

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,20 @@
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
1919
android.enableJetifier=true
20-
android.useAndroidX=true
20+
android.useAndroidX=true
21+
22+
GROUP=com.iterable
23+
24+
POM_DESCRIPTION= Iterable is a growth marketing platform that helps you to create better experiences for—and deeper relationships with—your customers. Use it to send customized email, SMS, push notification, in-app message and web push notifications to your customers. This SDK helps you integrate your Android apps with Iterable. It supports Android API versions 15+.
25+
POM_URL=https://github.com/Iterable/iterable-android-sdk.git
26+
POM_SCM_URL=https://github.com/Iterable/iterable-android-sdk.git
27+
POM_SCM_CONNECTION=[email protected]:Iterable/iterable-android-sdk.git
28+
POM_SCM_DEV_CONNECTION=scm:[email protected]:Iterable/iterable-android-sdk.git
29+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
30+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
31+
POM_LICENCE_DIST=repo
32+
POM_DEVELOPER_ID=Iterable
33+
POM_DEVELOPER_NAME=Iterable
34+
POM_PACKAGING=aar
35+
36+
org.gradle.daemon=true

iterableapi-ui/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ext {
5252
siteUrl = 'https://github.com/Iterable/iterable-android-sdk'
5353
gitUrl = 'https://github.com/Iterable/iterable-android-sdk.git'
5454

55-
libraryVersion = '3.2.13'
55+
libraryVersion = '3.2.14'
5656

5757
developerId = 'davidtruong'
5858
developerName = 'David Truong'
@@ -66,6 +66,9 @@ ext {
6666

6767
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
6868
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
69+
if(hasProperty("mavenPublishEnabled")) {
70+
apply from: '../maven-push.gradle'
71+
}
6972

7073
// A hack to import the classpath and BuildConfig into the javadoc task
7174
afterEvaluate {

iterableapi/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
minSdkVersion 15
1111
targetSdkVersion 27
1212

13-
buildConfigField "String", "ITERABLE_SDK_VERSION", "\"3.2.13\""
13+
buildConfigField "String", "ITERABLE_SDK_VERSION", "\"3.2.14\""
1414

1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1616
}
@@ -72,7 +72,7 @@ ext {
7272
siteUrl = 'https://github.com/Iterable/iterable-android-sdk'
7373
gitUrl = 'https://github.com/Iterable/iterable-android-sdk.git'
7474

75-
libraryVersion = '3.2.13'
75+
libraryVersion = '3.2.14'
7676

7777
developerId = 'davidtruong'
7878
developerName = 'David Truong'
@@ -86,6 +86,10 @@ ext {
8686

8787
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
8888
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
89+
if(hasProperty("mavenPublishEnabled")) {
90+
apply from: '../maven-push.gradle'
91+
}
92+
8993
tasks.withType(Test) {
9094
jacoco.includeNoLocationClasses = true
9195
}

maven-push.gradle

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/*
2+
* Copyright 2013 Chris Banes
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
apply plugin: 'maven'
18+
apply plugin: 'signing'
19+
20+
Properties properties = new Properties()
21+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
22+
23+
def isReleaseBuild() {
24+
return libraryVersion.contains("SNAPSHOT") == false
25+
}
26+
27+
def getReleaseRepositoryUrl() {
28+
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL
29+
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
30+
}
31+
32+
def getSnapshotRepositoryUrl() {
33+
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
34+
: "https://oss.sonatype.org/content/repositories/snapshots/"
35+
}
36+
37+
def getRepositoryUsername() {
38+
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
39+
}
40+
41+
def getRepositoryPassword() {
42+
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
43+
}
44+
45+
def keyID = properties.getProperty("signing.keyId")
46+
def password = properties.getProperty("signing.password")
47+
def keyRingLocation = properties.getProperty("signing.secretKeyRingFile")
48+
def nexus_username = properties.getProperty("NEXUS_USERNAME")
49+
def nexus_password = properties.getProperty("NEXUS_PASSWORD")
50+
51+
ext."signing.keyId" = keyID
52+
ext."signing.secretKeyRingFile" = keyRingLocation
53+
ext."signing.password" = password
54+
55+
afterEvaluate { project ->
56+
uploadArchives {
57+
repositories {
58+
mavenDeployer {
59+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
60+
61+
pom.groupId = GROUP
62+
pom.artifactId = libraryName
63+
pom.version = libraryVersion
64+
65+
repository(url: getReleaseRepositoryUrl()) {
66+
authentication(userName: nexus_username, password: nexus_password)
67+
}
68+
snapshotRepository(url: getSnapshotRepositoryUrl()) {
69+
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
70+
}
71+
72+
pom.project {
73+
name libraryName
74+
packaging POM_PACKAGING
75+
description POM_DESCRIPTION
76+
url POM_URL
77+
78+
scm {
79+
url POM_SCM_URL
80+
connection POM_SCM_CONNECTION
81+
developerConnection POM_SCM_DEV_CONNECTION
82+
}
83+
84+
licenses {
85+
license {
86+
name POM_LICENCE_NAME
87+
url POM_LICENCE_URL
88+
distribution POM_LICENCE_DIST
89+
}
90+
}
91+
92+
developers {
93+
developer {
94+
id POM_DEVELOPER_ID
95+
name POM_DEVELOPER_NAME
96+
}
97+
}
98+
}
99+
}
100+
}
101+
}
102+
103+
signing {
104+
// required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
105+
required true
106+
sign configurations.archives
107+
}
108+
109+
110+
task androidSourcesJar(type: Jar) {
111+
classifier = 'sources'
112+
from android.sourceSets.main.java.sourceFiles
113+
}
114+
115+
artifacts {
116+
archives androidSourcesJar
117+
}
118+
}

sample-apps/inbox-customization/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ dependencies {
3333
implementation 'androidx.navigation:navigation-ui-ktx:2.1.0'
3434
implementation 'com.google.android.material:material:1.1.0'
3535

36-
implementation 'com.iterable:iterableapi:3.2.13'
37-
implementation 'com.iterable:iterableapi-ui:3.2.13'
36+
implementation 'com.iterable:iterableapi:3.2.14'
37+
implementation 'com.iterable:iterableapi-ui:3.2.14'
3838
implementation 'com.squareup.okhttp3:mockwebserver:4.2.2'
3939

4040
testImplementation 'junit:junit:4.12'

0 commit comments

Comments
 (0)