@@ -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
0 commit comments