Skip to content

Commit

Permalink
Release version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jerielng committed Feb 2, 2024
1 parent f6ce4eb commit 5c3b328
Show file tree
Hide file tree
Showing 8 changed files with 1,221 additions and 896 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
# 2.0.0

##### Breaking
- Bumps the iOS minimum platform version to `13.4`, per the [Expo SDK 50 requirements](https://expo.dev/changelog/2024/01-18-sdk-50).
- This version requires version [8.3.0+](https://github.com/braze-inc/braze-react-native-sdk/releases/tag/8.3.0) of the Braze React Native SDK to fully support Expo SDK 50.

##### Fixed
- Fixes Android compatibility with [Expo SDK 50](https://expo.dev/changelog/2024/01-18-sdk-50).
- This release removes strict dependencies on Java 11 from the `build.gradle` file.
- This fix adds namespacing and `buildFeatures.buildConfig` for compatibility with Android Gradle Plugin 8+.

# 1.2.0

##### Added
- Updates the `enableBrazeIosPush` configuration to use the [automatic push handling](https://braze-inc.github.io/braze-swift-sdk/tutorials/braze/b1-standard-push-notifications#Option-1-Automatic-push-notification-handling) features from the Braze Swift SDK.
- Starting in version [8.2.0](https://github.com/braze-inc/braze-react-native-sdk/releases/tag/8.2.0) of the Braze React Native SDK, this change allows the Braze Expo plugin to be compatible with incoming iOS notifications from Expo Notifications.
- This release requires version [8.2.0+](https://github.com/braze-inc/braze-react-native-sdk/releases/tag/8.2.0) of the Braze React Native SDK, this change allows the Braze Expo plugin to be compatible with incoming iOS notifications from Expo Notifications.
- Adds the `iosRequestPushPermissionsAutomatically` configuration to control whether iOS push permissions should be requested automatically on app launch.

# 1.1.2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This Expo Config plugin auto configures the [`Braze React Native SDK`](https://w

| Braze Expo Plugin | Braze React Native SDK |
| ----------------- | ---------------------- |
| >=2.0.0 | >= 8.3.0 |
| >=1.1.0 | >= 2.1.0 |
| 1.0.0 - 1.0.1 | >= 2.0.2 |
| <= 0.6.0 | 1.38.0 - 1.41.0 |
30 changes: 15 additions & 15 deletions example/components/Braze.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,21 +160,21 @@ export const BrazeComponent = (): ReactElement => {
}
});

Braze.subscribeToInAppMessage(true, (event: { inAppMessage: string }) => {
const inAppMessage = new Braze.BrazeInAppMessage(event.inAppMessage);

if (automaticallyInteract) {
console.log(
'Automatically logging IAM click, button click `0`, and impression.',
);
Braze.logInAppMessageClicked(inAppMessage);
Braze.logInAppMessageImpression(inAppMessage);
Braze.logInAppMessageButtonClicked(inAppMessage, 0);
}

showToast('inAppMessage received in the React layer');
console.log(inAppMessage);
});
Braze.subscribeToInAppMessage(
true,
(event) => {
if (automaticallyInteract) {
console.log(
'Automatically logging IAM click, button click `0`, and impression.',
);
Braze.logInAppMessageClicked(event.inAppMessage);
Braze.logInAppMessageImpression(event.inAppMessage);
Braze.logInAppMessageButtonClicked(event.inAppMessage, 0);
}
showToast('inAppMessage received in the React layer');
console.log(event.inAppMessage);
},
);

const inAppMessageSubscription = Braze.addListener(
Braze.Events.IN_APP_MESSAGE_RECEIVED,
Expand Down
25 changes: 13 additions & 12 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,29 @@
},
"dependencies": {
"@braze/expo-plugin": "file:../plugin",
"@braze/react-native-sdk": "^8.2.0",
"@braze/react-native-sdk": "^8.3.0",
"@expo/metro-runtime": "^3.1.1",
"@expo/vector-icons": "^13.0.0",
"@react-navigation/bottom-tabs": "^6.0.5",
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.1.0",
"expo": "^49.0.0",
"expo": "^50.0.0",
"expo-asset": "~8.10.1",
"expo-build-properties": "~0.8.3",
"expo-constants": "~14.4.2",
"expo-font": "~11.4.0",
"expo-linking": "~5.0.2",
"expo-notifications": "~0.20.1",
"expo-splash-screen": "~0.20.4",
"expo-constants": "~15.4.5",
"expo-font": "~11.10.2",
"expo-linking": "~6.2.2",
"expo-notifications": "~0.27.4",
"expo-splash-screen": "~0.26.3",
"expo-status-bar": "~1.6.0",
"expo-system-ui": "~2.4.0",
"expo-web-browser": "~12.3.2",
"expo-system-ui": "~2.9.3",
"expo-web-browser": "~12.8.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.72.1",
"react-native": "0.73.2",
"react-native-radio-buttons-group": "^3.0.1",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-safe-area-context": "4.8.2",
"react-native-screens": "~3.29.0",
"react-native-web": "~0.19.6"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 5c3b328

Please sign in to comment.