Skip to content

Commit 567fe70

Browse files
authored
Merge pull request #623 from Iterable/MOB-10588-release-2-0-0-beta
[MOB-10588] release-2-0-0-beta
2 parents 66a5d10 + 324aa31 commit 567fe70

File tree

4 files changed

+41
-16
lines changed

4 files changed

+41
-16
lines changed

CHANGELOG.md

+34-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## 2.0.0-beta
2+
**NOTE**: This is a beta release of the SDK. Please contact Iterable support if
3+
you have any questions or issues.
4+
## Fixes
5+
- Updated React Native to
6+
[7.3.1](https://reactnative.dev/docs/0.73/getting-started). See the version
7+
[CHANGELOG](https://github.com/facebook/react-native/releases/tag/v0.73.1) for
8+
further details.
9+
- Updated dependencies, including:
10+
- [@react-navigation](https://reactnavigation.org/docs/elements/)
11+
- [react-native-safe-area-context](https://github.com/AppAndFlow/react-native-safe-area-context)
12+
- [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons)
13+
- [react-native-webview](https://github.com/react-native-webview/react-native-webview)
14+
- Update exports to include components which previously were obtained via direct
15+
path. EG: Instead of `import IterableInbox from
16+
'@iterable/react-native-sdk/js/IterableInbox'`, you can now import it by doing
17+
`import {IterableInbox} from '@iterable/react-native-sdk'`.
18+
- **NOTE**: This is a breaking change. All nested imports will need to be updated.
19+
- Replaced non-working sample application with a new example app
20+
- Changed scaffolding to use [react-native-builder-bob](https://callstack.github.io/react-native-builder-bob/create)
21+
- Fixed linting issues and made lint rules stricter
22+
- Fixed unit tests
23+
- Removed broken integration tests
24+
- Changed folder structure to prepare for it to be divided into multiple packages
25+
- Removed duplicate code
26+
- Made lint rules stricter
27+
128
## 1.3.21
229
## Fixes
330
- Fixes an issue where react native components that use safe-area-context or react-navigation throw an error because the sdk's components try and use its own local node_modules instead of the consumer's project.
@@ -67,7 +94,7 @@ Iterable.initialize('<YOUR_API_KEY>', config);
6794

6895
This release deprecates `androidSdkUseInMemoryStorageForInApps`, which was introduced in version 1.3.7, and replaces it with `useInMemoryStorageForInApps`. However, for now:
6996

70-
- Android apps store in-app messages in memory if `useInMemoryStorageForInApps` is `true`, `androidSdkUseInMemoryStorageForInApps` is `true`, or if both are `true`.
97+
- Android apps store in-app messages in memory if `useInMemoryStorageForInApps` is `true`, `androidSdkUseInMemoryStorageForInApps` is `true`, or if both are `true`.
7198

7299
- iOS apps store in-app messages in memory if `useInMemoryStorageForInApps` is `true`. `androidSdkUseInMemoryStorageForInApps` does not affect iOS apps.
73100

@@ -93,7 +120,7 @@ storing them at rest:
93120
messages at rest—before or after this update.)
94121

95122
When a user upgrades to a version of your app that uses this version of the SDK
96-
(or higher), the fields shown above are encrypted. No data that's already stored
123+
(or higher), the fields shown above are encrypted. No data that's already stored
97124
is lost.
98125

99126
For more information about this encryption in iOS, examine the source code for
@@ -118,16 +145,16 @@ them at rest:
118145
(Note that, in Android apps, Iterable's React Native SDK does not store the last
119146
push payload at rest—before or after this update.)
120147

121-
For more information about this encryption in Android, examine the source code
148+
For more information about this encryption in Android, examine the source code
122149
for Iterable's Android SDK (upon which the React Native SDK relies):
123150
[`IterableKeychain`](https://github.com/Iterable/iterable-android-sdk/blob/master/iterableapi/src/main/java/com/iterable/iterableapi/IterableKeychain.kt).
124151

125152
##### Storing in-app messages in memory
126-
This release also allows you to have your Android apps (regardless of `minSdkVersion`)
153+
This release also allows you to have your Android apps (regardless of `minSdkVersion`)
127154
store in-app messages in memory, rather than in an unencrypted local file.
128155
However, an unencrypted local file is still the default option.
129156

130-
To store in-app messages in memory, on `IterableConfig`, set
157+
To store in-app messages in memory, on `IterableConfig`, set
131158
`androidSdkUseInMemoryStorageForInApps` to `true` (defaults to `false`):
132159

133160
```javascript
@@ -138,7 +165,7 @@ Iterable.initialize('<YOUR_API_KEY>', config);
138165
```
139166

140167
When users upgrade to a version of your Android app that uses this version of
141-
the SDK (or higher), and you've set this configuration option to `true`, the
168+
the SDK (or higher), and you've set this configuration option to `true`, the
142169
local file used for in-app message storage (if it already exists) is deleted
143170
However, no data is lost.
144171

@@ -158,7 +185,7 @@ encrypt data):
158185
### Objective-C compatibility headers for React Native 0.68+
159186
To help solve build errors that can arise when using Iterable's SDK with React
160187
Native 0.68+, which uses Objective-C++, we've created some Objective-C
161-
compatibility headers that you can import into your project. For details, read
188+
compatibility headers that you can import into your project. For details, read
162189
[Installing Iterable's React Native SDK — Step 3.3: Import the SDK](https://support.iterable.com/hc/articles/360045714132#step-3-3-import-the-sdk).
163190

164191
## 1.1.0

README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,14 @@ Iterable. It supports JavaScript and TypeScript.
1515
Iterable's React Native SDK relies on:
1616

1717
- **React Native**
18-
- [React Native 0.75.3+](https://github.com/facebook/react-native)
19-
- [@react-navigation/native 6.1.18+](https://www.npmjs.com/package/@react-navigation/native)
20-
- [react-native-safe-area-context 4.11.1+](https://www.npmjs.com/package/react-native-safe-area-context)
21-
- [react-native-vector-icons 10.2.0+](https://www.npmjs.com/package/react-native-vector-icons)
22-
- [react-native-webview 13.12.3+](https://www.npmjs.com/package/react-native-webview)
18+
- [React Native 0.75+](https://github.com/facebook/react-native)
19+
- [React 18.1+](https://github.com/facebook/react)
2320

2421
_UI Components require additional peer dependencies_
2522
- [React Navigation 6+](https://github.com/react-navigation/react-navigation)
2623
- [React Native Safe Area Context 4+](https://github.com/th3rdwave/react-native-safe-area-context)
27-
- [React Native Vector Icons 9+](https://github.com/oblador/react-native-vector-icons)
28-
- [React Native WebView 11+](https://github.com/react-native-webview/react-native-webview)
24+
- [React Native Vector Icons 10+](https://github.com/oblador/react-native-vector-icons)
25+
- [React Native WebView 13+](https://github.com/react-native-webview/react-native-webview)
2926

3027
- **iOS**
3128
- Xcode 12+
@@ -66,6 +63,7 @@ For quick reference, the following table lists the versions of the [Android SDK]
6663

6764
| RN SDK Version | Android SDK Version | iOS SDK Version |
6865
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | --------------- |
66+
| [2.0.0-beta](https://www.npmjs.com/package/@iterable/react-native-sdk/v/2.0.0-beta) | [3.5.2](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.5.2) | [6.5.4](https://github.com/Iterable/swift-sdk/releases/tag/6.5.4)
6967
| [1.3.21](https://www.npmjs.com/package/@iterable/react-native-sdk/v/1.3.20) | [3.5.2](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.5.2) | [6.5.4](https://github.com/Iterable/swift-sdk/releases/tag/6.5.4)
7068
| [1.3.20](https://www.npmjs.com/package/@iterable/react-native-sdk/v/1.3.20) | [3.5.2](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.5.2) | [6.5.4](https://github.com/Iterable/swift-sdk/releases/tag/6.5.4)
7169
| [1.3.19](https://www.npmjs.com/package/@iterable/react-native-sdk/v/1.3.19) | [3.5.2](https://github.com/Iterable/iterable-android-sdk/releases/tag/3.5.2) | [6.5.3](https://github.com/Iterable/swift-sdk/releases/tag/6.5.3)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iterable/react-native-sdk",
3-
"version": "2.0.0-alpha",
3+
"version": "2.0.0-beta",
44
"description": "Iterable SDK for React Native.",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",

src/itblBuildInfo.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
* It contains the version of the package
44
*/
55
export const buildInfo = {
6-
version: '2.0.0-alpha',
6+
version: '2.0.0-beta',
77
};

0 commit comments

Comments
 (0)