Skip to content

Commit e3ab26e

Browse files
authored
Merge branch 'master' into timlim/tag-contacts
2 parents 17531c3 + b255527 commit e3ab26e

21 files changed

+209
-92
lines changed

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/openjdk:8-jdk-stretch-node-browsers
6+
7+
working_directory: ~/intercom-java
8+
9+
steps:
10+
- checkout
11+
- run: TERM="dumb" ./gradlew dependencies
12+
- run: TERM="dumb" ./gradlew test

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#### Why?
2+
Why are you making this change?
3+
4+
#### How?
5+
Technical details on your change

.travis.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
### Changes
22

3+
#### 2.4.0
4+
- Fix for gradle release issue #192
5+
- Update related to API user archive and permanent delete option #195
6+
7+
#### 2.3.3
8+
- Fix for #185: scroll issue where requests not reaching endpoint (PR #186)
9+
310
#### 2.3.2
411
- fix for #(174) to Handle records with no avatars (#181)
512

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ and add the project declaration to your `pom.xml`:
3838
<dependency>
3939
<groupId>io.intercom</groupId>
4040
<artifactId>intercom-java</artifactId>
41-
<version>2.3.2</version>
41+
<version>2.4.0</version>
4242
</dependency>
4343
```
4444

@@ -56,7 +56,7 @@ and add the project to the `dependencies` block in your `build.gradle`:
5656

5757
```groovy
5858
dependencies {
59-
compile 'io.intercom:intercom-java:2.3.2'
59+
compile 'io.intercom:intercom-java:2.4.0'
6060
}
6161
```
6262

@@ -71,7 +71,7 @@ resolvers += "jcenter" at "http://jcenter.bintray.com"
7171
and add the project to your `libraryDependencies` in your `build.sbt`:
7272

7373
```scala
74-
libraryDependencies += "io.intercom" % "intercom-java" % "2.3.2"
74+
libraryDependencies += "io.intercom" % "intercom-java" % "2.4.0"
7575
```
7676

7777
## Resources
@@ -436,13 +436,13 @@ Conversation.create(adminMessage);
436436
// send a message from a user
437437
UserMessage userMessage = new UserMessage()
438438
.setBody("Hey! Is there, is there a reward?")
439-
.setUser(user);
439+
.setFrom(user);
440440
Conversation.create(userMessage);
441441

442442
// send a message from a contact
443443
ContactMessage contactMessage = new ContactMessage()
444444
.setBody("Hey! Is there, is there a reward?")
445-
.setUser(contact);
445+
.setFrom(contact);
446446
Conversation.create(contactMessage);
447447

448448
//list all conversations

build.gradle

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
//noinspection GroovyAssignabilityCheck
77
dependencies {
88
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6'
9-
classpath 'org.ajoberstar:gradle-git:0.10.0'
9+
classpath 'org.ajoberstar:grgit:1.9.3'
1010
}
1111
}
1212

@@ -24,7 +24,7 @@ subprojects {
2424
//noinspection GroovyAssignabilityCheck
2525
dependencies {
2626
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6'
27-
classpath 'org.ajoberstar:gradle-git:0.10.0'
27+
classpath 'org.ajoberstar:grgit:1.9.3'
2828
}
2929
}
3030

@@ -33,6 +33,11 @@ subprojects {
3333
mavenCentral()
3434
}
3535

36+
ext {
37+
jacksonVersion = '2.9.6'
38+
powermockVersion = '1.6.6'
39+
}
40+
3641
apply plugin: 'maven'
3742
apply plugin: 'maven-publish'
3843
apply plugin: 'java'
@@ -43,19 +48,18 @@ subprojects {
4348

4449
//noinspection GroovyAssignabilityCheck
4550
dependencies {
46-
compile 'com.fasterxml.jackson.core:jackson-core:2.4.2'
47-
compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.2'
48-
compile 'com.fasterxml.jackson.core:jackson-databind:2.4.2'
49-
compile 'com.google.guava:guava:17.0'
50-
compile 'org.slf4j:slf4j-api:1.7.7'
51-
compile 'commons-codec:commons-codec:1.9'
52-
testCompile 'junit:junit:4.11'
53-
testCompile 'org.powermock:powermock-module-junit4:1.6.6'
54-
testCompile 'org.powermock:powermock-api-mockito:1.6.6'
51+
compile "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
52+
compile "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
53+
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
54+
compile "com.google.guava:guava:17.0"
55+
compile "org.slf4j:slf4j-api:1.7.25"
56+
compile "commons-codec:commons-codec:1.9"
57+
testCompile "junit:junit:4.12"
58+
testCompile "org.powermock:powermock-module-junit4:$powermockVersion"
59+
testCompile "org.powermock:powermock-api-mockito:$powermockVersion"
5560
}
5661
}
5762

58-
5963
task wrapper(type: Wrapper) {
60-
gradleVersion = '2.0'
64+
gradleVersion = '4.9'
6165
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2.3.2
1+
version: 2.4.0
22

33
groupId: io.intercom
44

gradle/wrapper/gradle-wrapper.jar

3.32 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Wed Sep 24 10:57:43 IST 2014
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip

gradlew

Lines changed: 43 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)