Skip to content

Commit

Permalink
Release version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyorbin committed Jan 25, 2023
1 parent 7d8c2a1 commit 27e8a0d
Show file tree
Hide file tree
Showing 17 changed files with 3,521 additions and 1,067 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 0.6.0

##### ⚠ Breaking
- The Braze Expo Plugin now requires Expo 47.
- `google-services.json` is no longer required to be placed in the `assets` folder. The filepath is now set in `app.json` through the [`googleServicesFile`](https://docs.expo.dev/versions/latest/config/app/#googleservicesfile-1) property.

##### Added
- Added a new configuration prop `androidHandlePushDeepLinksAutomatically` that allows the Braze SDK to automatically handle push deep links on Android.

# 0.5.0

##### ⚠ Breaking
Expand Down
3 changes: 2 additions & 1 deletion example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
android/
ios/

# @generated expo-cli sync-e7dcf75f4e856f7b6f3239b3f3a7dd614ee755a8
# @generated expo-cli sync-b25d41054229aa64f1468014f243adfae8268af2
# The following patterns were generated by expo-cli

# OSX
Expand Down Expand Up @@ -36,6 +36,7 @@ build/
local.properties
*.iml
*.hprof
.cxx/

# node.js
#
Expand Down
18 changes: 15 additions & 3 deletions example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"android.permission.ACCESS_NETWORK_STATE",
"android.permission.INTERNET"
],
"package": "com.braze.expoexample"
"package": "com.braze.expoexample",
"googleServicesFile": "./assets/google-services.json"
},
"web": {
"favicon": "./assets/images/favicon.png"
Expand All @@ -40,7 +41,7 @@
[
"@braze/expo-plugin",
{
"androidApiKey": "8220f3a6-2e82-4737-a83a-aab39eb1bcef",
"androidApiKey": "c131cc0e-92ea-4c35-a1d6-7c2d1adb5907",
"iosApiKey": "e1527f34-f46d-4bf5-8aab-e7e548057057",
"baseUrl": "sondheim.braze.com",
"enableSdkAuthentication": true,
Expand All @@ -50,7 +51,18 @@
"minimumTriggerIntervalInSeconds": 0,
"enableBrazeIosPush": true,
"enableFirebaseCloudMessaging": true,
"firebaseCloudMessagingSenderId": "531790618696"
"firebaseCloudMessagingSenderId": "531790618696",
"androidHandlePushDeepLinksAutomatically": true
}
],
[
"expo-build-properties",
{
"android": {
"compileSdkVersion": 33,
"targetSdkVersion": 33,
"buildToolsVersion": "33.0.1"
}
}
]
]
Expand Down
48 changes: 0 additions & 48 deletions example/components/Braze.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export default class BrazeComponent extends Component {
this._addToCustomAttributeArrayPress = this._addToCustomAttributeArrayPress.bind(this);
this._removeFromCustomAttributeArrayPress = this._removeFromCustomAttributeArrayPress.bind(this);
this._incrementCustomAttributePress = this._incrementCustomAttributePress.bind(this);
this._setTwitterData = this._setTwitterData.bind(this);
this._setFacebookData = this._setFacebookData.bind(this);
this._requestFeedRefresh = this._requestFeedRefresh.bind(this);
this._requestImmediateDataFlush = this._requestImmediateDataFlush.bind(this);
this._wipeData = this._wipeData.bind(this);
Expand Down Expand Up @@ -266,14 +264,6 @@ export default class BrazeComponent extends Component {
onPress={this._incrementCustomAttributePress}>
<Text>Increment Custom Attribute Array</Text>
</TouchableHighlight>
<TouchableHighlight
onPress={this._setTwitterData}>
<Text>Set Twitter Data</Text>
</TouchableHighlight>
<TouchableHighlight
onPress={this._setFacebookData}>
<Text>Set Facebook Data</Text>
</TouchableHighlight>
<TouchableHighlight
onPress={this._launchNewsFeedPress}>
<Text>Launch News Feed</Text>
Expand Down Expand Up @@ -467,44 +457,6 @@ export default class BrazeComponent extends Component {
Braze.incrementCustomUserAttribute('intattr', 5);
this._showToast('Attribute incremented');
}
_setTwitterData(event) {
Braze.setTwitterData(6253282, 'billmag', 'Bill', 'Adventurer', 700, 200, 1000,
'https://si0.twimg.com/profile_images/2685532587/fa47382ad67a0135acc62d4c6b49dbdc_bigger.jpeg');
this._showToast('Twitter data set');
}
_setFacebookData(event) {
var profile = {
id: '708379',
first_name: 'Bill',
last_name: 'Mag',
location: {
name: 'new york'
},
age_range: {
min: 21, max: 31
},
email: '[email protected]',
bio: 'adventurer',
gender: 'male',
birthday: '01/01/2016'
};
// May also be a list of strings, e.g. below:
// var likes = ["Messiaen", "Durufle", "Buxtehude"];
var likes = [
{
'name': 'Hot Rabbit',
'id': '199600656843963',
'created_time': '2016-09-25T17:05:01+0000'
},
{
'name': 'This Bridge Called Our Health',
'id': '543928779075283',
'created_time': '2016-09-24T20:43:01+0000'
}
];
Braze.setFacebookData(profile, 500, likes);
this._showToast('Facebook data set');
}

_requestFeedRefresh(event) {
Braze.requestFeedRefresh();
Expand Down
45 changes: 23 additions & 22 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,36 @@
"dependencies": {
"@braze/expo-plugin": "file:../plugin",
"@expo/vector-icons": "^13.0.0",
"@react-native-picker/picker": "^2.4.1",
"@react-native-picker/picker": "2.4.8",
"@react-navigation/bottom-tabs": "^6.0.5",
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.1.0",
"expo": "~45.0.0",
"expo-asset": "~8.5.0",
"expo-constants": "~13.1.1",
"expo-font": "~10.1.0",
"expo-linking": "~3.1.0",
"expo-splash-screen": "~0.15.1",
"expo-status-bar": "~1.3.0",
"expo-system-ui": "~1.2.0",
"expo-web-browser": "~10.2.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.68.2",
"react-native-appboy-sdk": "^1.38.0",
"react-native-safe-area-context": "4.2.4",
"react-native-screens": "~3.11.1",
"react-native-web": "0.17.7"
"expo": "~47.0.12",
"expo-asset": "~8.7.0",
"expo-build-properties": "~0.4.1",
"expo-constants": "~14.0.2",
"expo-font": "~11.0.1",
"expo-linking": "~3.3.0",
"expo-splash-screen": "~0.17.5",
"expo-status-bar": "~1.4.2",
"expo-system-ui": "~2.0.1",
"expo-web-browser": "~12.0.0",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
"react-native-appboy-sdk": "^1.41.0",
"react-native-safe-area-context": "4.4.1",
"react-native-screens": "~3.18.0",
"react-native-web": "~0.18.7"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@types/react": "~17.0.21",
"@types/react-native": "~0.66.13",
"@babel/core": "^7.19.3",
"@types/react": "~18.0.24",
"@types/react-native": "~0.70.6",
"jest": "^26.6.3",
"jest-expo": "~45.0.0",
"jest-expo": "^47.0.0",
"react-test-renderer": "17.0.2",
"typescript": "~4.3.5"
"typescript": "^4.6.3"
},
"private": true
}
Loading

0 comments on commit 27e8a0d

Please sign in to comment.