Skip to content

Commit e0743c0

Browse files
author
Conor O'Donnell
committed
Released version 3.1.1
1 parent b470858 commit e0743c0

10 files changed

+81
-42
lines changed

CHANGELOG.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
# Changelog
22

3+
## Version 3.1.1
4+
5+
20-03-2017
6+
* Add `withLanguageOverride()` method to the UserAttributes model
7+
* Display error to users before uploading files that are larger than we support
8+
* Fixed issue where the Intercom settings color was not applied to the the push icon and push title
9+
* Fixed localization issues with the composer
10+
* Fixed issue with applying a padding to in-app messages [#311](https://github.com/intercom/intercom-android/issues/311)
11+
312
## Version 3.1.0
413

514
06-03-2017
6-
* added new method to the API updateUser(UserAttributes). Docs on how to use this can be found [here](https://developers.intercom.com/docs/android-configuration#section-update-a-user)
7-
* deprecated updateUser(Map<String, ?>) and updateUser(User) methods in favour of updateUser(UserAttributes)
8-
* search and send gifs from our new message composer
9-
* dedicated image loader that allows you to preview and send images on your device
10-
* fixed a FileNotFoundException in the Intercom SoundPlayer
11-
* updated the android support library to version 25.1.1
12-
* update the android GCM and FCM libraries to version 10.2.0
15+
* Added new method to the API updateUser(UserAttributes). Docs on how to use this can be found [here](https://developers.intercom.com/docs/android-configuration#section-update-a-user)
16+
* Deprecated `updateUser(Map<String, ?>)` and `updateUser(User)` methods in favour of `updateUser(UserAttributes)`
17+
* Search and send GIFs from our new message composer
18+
* Dedicated image loader that allows you to preview and send images on your device
19+
* Fixed a FileNotFoundException in the Intercom SoundPlayer
20+
* Updated the Android Support Library to version 25.1.1
21+
* Update the Android GCM and FCM libraries to version 10.2.0
1322

1423
## Version 3.0.21
1524

README.md

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -84,49 +84,48 @@ Here is our complete dependency graph:
8484
### intercom-sdk-base
8585
```
8686
# Transitive (shared with your app)
87-
+--- com.android.support:design:25.0.1
88-
+--- com.android.support:appcompat-v7:25.0.1
89-
+--- com.android.support:animated-vector-drawable:25.0.1
90-
+--- com.android.support:support-vector-drawable:25.0.1
91-
+--- com.android.support:support-v4:25.0.1
92-
+--- com.android.support:support-annotations:25.0.1
93-
+--- com.android.support:recyclerview-v7:25.0.1
87+
+--- com.android.support:design:25.1.1
88+
+--- com.android.support:appcompat-v7:25.1.1
89+
+--- com.android.support:animated-vector-drawable:25.1.1
90+
+--- com.android.support:support-vector-drawable:25.1.1
91+
+--- com.android.support:support-v4:25.1.1
92+
+--- com.android.support:support-annotations:25.1.1
93+
+--- com.android.support:recyclerview-v7:25.1.1
9494
9595
# Repackaged (not shared with your app)
9696
+--- com.squareup:otto:1.3.8
9797
+--- com.github.bumptech.glide:glide-intercom:3.7.0 # Modified version of Glide
9898
+--- com.squareup.okio:okio:1.11.0
99-
+--- com.squareup.okhttp3:okhttp:3.4.2
100-
+--- com.squareup.okhttp3:okhttp-ws:3.4.2
101-
+--- com.squareup.retrofit2:retrofit:2.1.0
102-
+--- com.squareup.retrofit2:converter-gson:2.1.0
99+
+--- com.squareup.okhttp3:okhttp:3.6.0
100+
+--- com.squareup.retrofit2:retrofit:2.2.0
101+
+--- com.squareup.retrofit2:converter-gson:2.2.0
103102
+--- com.google.code.gson:gson:2.8.0
104103
```
105104

106105
If you use some of the repackaged libraries in your app, you may want to use a build that depends on them transitively. A guide to using this build can be found [here](https://docs.intercom.com/configure-intercom-for-your-product-or-site/configure-intercom-for-mobile/using-transitive-dependencies-with-intercom-for-android). Using this build involves more work as you need to make sure your app uses the correct version of each library.
107106

108107
### intercom-sdk-gcm
109108
```
110-
+--- com.google.android.gms:play-services-base:9.8.0
111-
| +--- com.google.android.gms:play-services-basement:9.8.0
112-
| | \--- com.android.support:support-v4:23.0.0 -> 25.0.1 (*)
113-
| \--- com.google.android.gms:play-services-tasks:9.8.0
114-
| \--- com.google.android.gms:play-services-basement:9.8.0 (*)
115-
+--- com.google.android.gms:play-services-basement:9.8.0 (*)
116-
\--- com.google.android.gms:play-services-iid:9.8.0
117-
+--- com.google.android.gms:play-services-base:9.8.0 (*)
118-
\--- com.google.android.gms:play-services-basement:9.8.0 (*)
109+
+--- com.google.android.gms:play-services-base:10.2.0
110+
| +--- com.google.android.gms:play-services-basement:10.2.0
111+
| | \--- com.android.support:support-v4:23.0.0 -> 25.1.1 (*)
112+
| \--- com.google.android.gms:play-services-tasks:10.2.0
113+
| \--- com.google.android.gms:play-services-basement:10.2.0 (*)
114+
+--- com.google.android.gms:play-services-basement:10.2.0 (*)
115+
\--- com.google.android.gms:play-services-iid:10.2.0
116+
+--- com.google.android.gms:play-services-base:10.2.0 (*)
117+
\--- com.google.android.gms:play-services-basement:10.2.0 (*)
119118
```
120119

121120
### intercom-sdk-fcm
122121
```
123-
+--- com.google.android.gms:play-services-basement:9.8.0
124-
| \--- com.android.support:support-v4:23.0.0 -> 25.0.1 (*)
125-
+--- com.google.firebase:firebase-iid:9.8.0
126-
| +--- com.google.android.gms:play-services-basement:9.8.0 (*)
127-
| \--- com.google.firebase:firebase-common:9.8.0
128-
| +--- com.google.android.gms:play-services-basement:9.8.0 (*)
129-
| \--- com.google.android.gms:play-services-tasks:9.8.0
130-
| \--- com.google.android.gms:play-services-basement:9.8.0 (*)
131-
\--- com.google.firebase:firebase-common:9.8.0 (*)
122+
+--- com.google.android.gms:play-services-basement:10.2.0
123+
| \--- com.android.support:support-v4:23.0.0 -> 25.1.1 (*)
124+
+--- com.google.firebase:firebase-iid:10.2.0
125+
| +--- com.google.android.gms:play-services-basement:10.2.0 (*)
126+
| \--- com.google.firebase:firebase-common:10.2.0
127+
| +--- com.google.android.gms:play-services-basement:10.2.0 (*)
128+
| \--- com.google.android.gms:play-services-tasks:10.2.0
129+
| \--- com.google.android.gms:play-services-basement:10.2.0 (*)
130+
\--- com.google.firebase:firebase-common:10.2.0 (*)
132131
```

aar/intercom-sdk-base-3.1.0.aar

-2.34 MB
Binary file not shown.

aar/intercom-sdk-base-3.1.1.aar

2.17 MB
Binary file not shown.

aar/intercom-sdk-fcm-3.1.0.aar

-25.2 KB
Binary file not shown.

aar/intercom-sdk-fcm-3.1.1.aar

25.1 KB
Binary file not shown.

aar/intercom-sdk-gcm-3.1.0.aar

-27.2 KB
Binary file not shown.

aar/intercom-sdk-gcm-3.1.1.aar

27.1 KB
Binary file not shown.

docs/index-all.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ <h2 class="title">W</h2>
431431
<dd>
432432
<div class="block">Set the email address for this user.</div>
433433
</dd>
434+
<dt><span class="memberNameLink"><a href="io/intercom/android/sdk/UserAttributes.Builder.html#withLanguageOverride-java.lang.String-">withLanguageOverride(String)</a></span> - Method in class io.intercom.android.sdk.<a href="io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></dt>
435+
<dd>
436+
<div class="block">Set the language override code for this user</div>
437+
</dd>
434438
<dt><span class="memberNameLink"><a href="io/intercom/android/sdk/Company.Builder.html#withMonthlySpend-java.lang.Integer-">withMonthlySpend(Integer)</a></span> - Method in class io.intercom.android.sdk.<a href="io/intercom/android/sdk/Company.Builder.html" title="class in io.intercom.android.sdk">Company.Builder</a></dt>
435439
<dd>
436440
<div class="block">Set the monthly spend of this company</div>

docs/io/intercom/android/sdk/UserAttributes.Builder.html

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
catch(err) {
1818
}
1919
//-->
20-
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10};
20+
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10};
2121
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
2222
var altColor = "altColor";
2323
var rowColor = "rowColor";
@@ -181,35 +181,41 @@ <h3>Method Summary</h3>
181181
</tr>
182182
<tr id="i5" class="rowColor">
183183
<td class="colFirst"><code><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></code></td>
184+
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html#withLanguageOverride-java.lang.String-">withLanguageOverride</a></span>(java.lang.String&nbsp;languageOverride)</code>
185+
<div class="block">Set the language override code for this user</div>
186+
</td>
187+
</tr>
188+
<tr id="i6" class="altColor">
189+
<td class="colFirst"><code><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></code></td>
184190
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html#withName-java.lang.String-">withName</a></span>(java.lang.String&nbsp;name)</code>
185191
<div class="block">Set the name of this user.</div>
186192
</td>
187193
</tr>
188-
<tr id="i6" class="altColor">
194+
<tr id="i7" class="rowColor">
189195
<td class="colFirst"><code><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></code></td>
190196
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html#withPhone-java.lang.String-">withPhone</a></span>(java.lang.String&nbsp;phone)</code>
191197
<div class="block">Set the phone number of this user.</div>
192198
</td>
193199
</tr>
194-
<tr id="i7" class="rowColor">
200+
<tr id="i8" class="altColor">
195201
<td class="colFirst"><code><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></code></td>
196202
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html#withSignedUpAt-java.util.Date-">withSignedUpAt</a></span>(java.util.Date&nbsp;signedUpAt)</code>
197203
<div class="block">Set the time when the user signed up</div>
198204
</td>
199205
</tr>
200-
<tr id="i8" class="altColor">
206+
<tr id="i9" class="rowColor">
201207
<td class="colFirst"><code><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></code></td>
202208
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html#withSignedUpAt-java.lang.Long-">withSignedUpAt</a></span>(java.lang.Long&nbsp;signedUpAt)</code>
203209
<div class="block">Set the time when the user signed up</div>
204210
</td>
205211
</tr>
206-
<tr id="i9" class="rowColor">
212+
<tr id="i10" class="altColor">
207213
<td class="colFirst"><code><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></code></td>
208214
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html#withUnsubscribedFromEmails-java.lang.Boolean-">withUnsubscribedFromEmails</a></span>(java.lang.Boolean&nbsp;unsubscribedFromEmails)</code>
209215
<div class="block">Set if the user has unsubscribed to emails</div>
210216
</td>
211217
</tr>
212-
<tr id="i10" class="altColor">
218+
<tr id="i11" class="rowColor">
213219
<td class="colFirst"><code><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a></code></td>
214220
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html#withUserId-java.lang.String-">withUserId</a></span>(java.lang.String&nbsp;userId)</code>
215221
<div class="block">Set the user ID on this user.</div>
@@ -387,6 +393,27 @@ <h4>withUnsubscribedFromEmails</h4>
387393
</dl>
388394
</li>
389395
</ul>
396+
<a name="withLanguageOverride-java.lang.String-">
397+
<!-- -->
398+
</a>
399+
<ul class="blockList">
400+
<li class="blockList">
401+
<h4>withLanguageOverride</h4>
402+
<pre>public&nbsp;<a href="../../../../io/intercom/android/sdk/UserAttributes.Builder.html" title="class in io.intercom.android.sdk">UserAttributes.Builder</a>&nbsp;withLanguageOverride(@Nullable
403+
java.lang.String&nbsp;languageOverride)</pre>
404+
<div class="block">Set the language override code for this user
405+
406+
<p>languageOverride must be a valid language code.</p>
407+
<p>For more information see [here](https://docs.intercom.com/configure-intercom-for-your-product-or-site/
408+
customize-the-intercom-messenger/localize-intercom-to-work-with-multiple-languages ).</p></div>
409+
<dl>
410+
<dt><span class="paramLabel">Parameters:</span></dt>
411+
<dd><code>languageOverride</code> - a string for the language</dd>
412+
<dt><span class="returnLabel">Returns:</span></dt>
413+
<dd>the UserAttributes.Builder object</dd>
414+
</dl>
415+
</li>
416+
</ul>
390417
<a name="withCompany-io.intercom.android.sdk.Company-">
391418
<!-- -->
392419
</a>

0 commit comments

Comments
 (0)