Skip to content

Commit 4271944

Browse files
authored
Merge pull request #416 from Iterable/MOB-3851-Release-3.4.0
MOB-3851 - Prepare for 3.4.0
2 parents 873708f + b510cfa commit 4271944

File tree

4 files changed

+53
-5
lines changed

4 files changed

+53
-5
lines changed

CHANGELOG.md

+48
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,54 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1515
#### Fixed
1616
- nothing yet
1717

18+
## [3.4.0](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.4.0)
19+
#### Fixed
20+
21+
- Prevented in-app messages from executing JavaScript code included in their HTML
22+
templates.
23+
- Prevented web views from accessing local files.
24+
25+
#### Changed
26+
27+
- Changed two static methods on the `IterableApi` class, `handleAppLink` and
28+
`getAndTrackDeepLink`, to instance methods. To call these methods, grab an
29+
instance of the `IterableApi` class by calling `IterableApi.getInstance()`.
30+
For example, `IterableApi.getInstance().handleAppLink(...)`.
31+
32+
> ⚠ **WARNING**
33+
> This is a breaking change. You'll need to update your code.
34+
35+
#### Added
36+
37+
- Added the `allowedProtocols` field to the `IterableConfig` class.
38+
39+
Use this array to declare the specific URL protocols that the SDK can expect to
40+
see on incoming links (and that it should therefore handle). Doing this will
41+
prevent the SDK from opening links that use unexpected URL protocols.
42+
43+
For example, this code allows the SDK to handle `http` and `custom` links:
44+
45+
_Java_
46+
47+
```java
48+
IterableConfig.Builder configBuilder = new IterableConfig.Builder()
49+
.setAllowedProtocols(new String[]{"http", "custom"});
50+
IterableApi.initialize(context, "<YOUR_API_KEY>", config);
51+
```
52+
53+
_Kotlin_
54+
55+
```kotlin
56+
val configBuilder = IterableConfig.Builder()
57+
.setAllowedProtocols(arrayOf("http","custom"))
58+
IterableApi.initialize(context, "<YOUR_API_KEY>", configBuilder.build());
59+
```
60+
61+
Iterable's Android SDK handles `https`, `action`, `itbl`, and `iterable` links,
62+
regardless of the contents of this array. However, you must explicitly declare any
63+
other types of URL protocols you'd like the SDK to handle (otherwise, the SDK
64+
won't open them in the web browser or as deep links).
65+
1866
## [3.3.9](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.3.9)
1967

2068
#### Changed

iterableapi-ui/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ext {
4848
siteUrl = 'https://github.com/Iterable/iterable-android-sdk'
4949
gitUrl = 'https://github.com/Iterable/iterable-android-sdk.git'
5050

51-
libraryVersion = '3.3.9'
51+
libraryVersion = '3.4.0'
5252

5353
developerId = 'davidtruong'
5454
developerName = 'David Truong'

iterableapi/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
minSdkVersion 16
1212
targetSdkVersion 27
1313

14-
buildConfigField "String", "ITERABLE_SDK_VERSION", "\"3.3.9\""
14+
buildConfigField "String", "ITERABLE_SDK_VERSION", "\"3.4.0\""
1515

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

74-
libraryVersion = '3.3.9'
74+
libraryVersion = '3.4.0'
7575

7676
developerId = 'davidtruong'
7777
developerName = 'David Truong'

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

+2-2
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.3.9'
37-
implementation 'com.iterable:iterableapi-ui:3.3.9'
36+
implementation 'com.iterable:iterableapi:3.4.0'
37+
implementation 'com.iterable:iterableapi-ui:3.4.0'
3838
implementation 'com.squareup.okhttp3:mockwebserver:4.2.2'
3939

4040
testImplementation 'junit:junit:4.12'

0 commit comments

Comments
 (0)