Skip to content

Commit

Permalink
Release version 1.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyorbin committed Jun 16, 2021
1 parent b53bc9b commit ae4ee21
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 47 deletions.
6 changes: 3 additions & 3 deletions AppboyProject/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ def jscFlavor = 'org.webkit:android-jsc:+'
def enableHermes = project.ext.react.get("enableHermes", false)

dependencies {
implementation "com.google.firebase:firebase-messaging:20.3.0"
implementation "com.google.firebase:firebase-messaging:22.0.0"
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation "com.facebook.react:react-native:+" // From node_modules
if (enableHermes) {
// For RN 0.60.x
Expand All @@ -169,4 +169,4 @@ task copyDownloadableDepsToLibs(type: Copy) {
into 'libs'
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
25 changes: 11 additions & 14 deletions AppboyProject/android/app/google-services.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"project_info": {
"project_number": "354899208806",
"firebase_url": "https://appboyproject-react.firebaseio.com",
"project_id": "appboyproject-react",
"storage_bucket": "appboyproject-react.appspot.com"
"project_number": "531790618696",
"project_id": "android-react-sample-app",
"storage_bucket": "android-react-sample-app.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:354899208806:android:22e79902e0a56e7c",
"mobilesdk_app_id": "1:531790618696:android:18f24c0f9c5b8c58f9f87d",
"android_client_info": {
"package_name": "com.appboyproject"
}
},
"oauth_client": [
{
"client_id": "354899208806-9gu0k6r40sb336pbg3u5933ocvkt000l.apps.googleusercontent.com",
"client_id": "531790618696-d9deirj22dfprlbp12l8pkd405cccpm4.apps.googleusercontent.com",
"client_type": 3
}
],
Expand All @@ -25,15 +24,13 @@
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 1,
"other_platform_oauth_client": []
},
"ads_service": {
"status": 2
"other_platform_oauth_client": [
{
"client_id": "531790618696-d9deirj22dfprlbp12l8pkd405cccpm4.apps.googleusercontent.com",
"client_type": 3
}
]
}
}
}
Expand Down
7 changes: 1 addition & 6 deletions AppboyProject/android/app/src/main/res/values/braze.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@
<string translatable="false" name="com_appboy_server_target">STAGING</string>

<bool translatable="false" name="com_appboy_firebase_cloud_messaging_registration_enabled">true</bool>
<string translatable="false" name="com_appboy_firebase_cloud_messaging_sender_id">901477453852</string>

<!-- Fresco Library Usage -->
<!-- When set to false, the UI code will not use views from Fresco library. By default, this setting
is false. -->
<bool name="com_appboy_enable_fresco_library_use">true</bool>
<string translatable="false" name="com_appboy_firebase_cloud_messaging_sender_id">531790618696</string>

<bool name="com_appboy_handle_push_deep_links_automatically">true</bool>
</resources>
22 changes: 11 additions & 11 deletions AppboyProject/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PODS:
- Appboy-iOS-SDK (4.2.0):
- Appboy-iOS-SDK/UI (= 4.2.0)
- Appboy-iOS-SDK/ContentCards (4.2.0):
- Appboy-iOS-SDK (4.3.0):
- Appboy-iOS-SDK/UI (= 4.3.0)
- Appboy-iOS-SDK/ContentCards (4.3.0):
- Appboy-iOS-SDK/Core
- SDWebImage (< 6, >= 5.8.2)
- Appboy-iOS-SDK/Core (4.2.0)
- Appboy-iOS-SDK/InAppMessage (4.2.0):
- Appboy-iOS-SDK/Core (4.3.0)
- Appboy-iOS-SDK/InAppMessage (4.3.0):
- Appboy-iOS-SDK/Core
- SDWebImage (< 6, >= 5.8.2)
- Appboy-iOS-SDK/NewsFeed (4.2.0):
- Appboy-iOS-SDK/NewsFeed (4.3.0):
- Appboy-iOS-SDK/Core
- SDWebImage (< 6, >= 5.8.2)
- Appboy-iOS-SDK/UI (4.2.0):
- Appboy-iOS-SDK/UI (4.3.0):
- Appboy-iOS-SDK/ContentCards
- Appboy-iOS-SDK/Core
- Appboy-iOS-SDK/InAppMessage
Expand Down Expand Up @@ -199,8 +199,8 @@ PODS:
- React-cxxreact (= 0.61.5)
- React-jsi (= 0.61.5)
- React-jsinspector (0.61.5)
- react-native-appboy-sdk (1.29.1):
- Appboy-iOS-SDK (~> 4.2.0)
- react-native-appboy-sdk (1.30.0):
- Appboy-iOS-SDK (~> 4.3.0)
- React
- React-RCTActionSheet (0.61.5):
- React-Core/RCTActionSheetHeaders (= 0.61.5)
Expand Down Expand Up @@ -334,7 +334,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
Appboy-iOS-SDK: 3c3e75a932427d5f443062c130f8799885a85313
Appboy-iOS-SDK: dade18b2f6dc5c058669367c558ed87f389e4eea
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2
FBLazyVector: aaeaf388755e4f29cd74acbc9e3b8da6d807c37f
Expand All @@ -350,7 +350,7 @@ SPEC CHECKSUMS:
React-jsi: cb2cd74d7ccf4cffb071a46833613edc79cdf8f7
React-jsiexecutor: d5525f9ed5f782fdbacb64b9b01a43a9323d2386
React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0
react-native-appboy-sdk: 56dca097c248e752a878a9f0f88aaa946510dd66
react-native-appboy-sdk: dd0f7fb390666c6cfea7e177dcf22c3391e9cc39
React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
React-RCTAnimation: 791a87558389c80908ed06cc5dfc5e7920dfa360
React-RCTBlob: d89293cc0236d9cb0933d85e430b0bbe81ad1d72
Expand Down
8 changes: 4 additions & 4 deletions AppboyProject/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2787,9 +2787,9 @@ getpass@^0.1.1:
assert-plus "^1.0.0"

glob-parent@^5.0.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2"
integrity sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==
version "5.1.2"
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
dependencies:
is-glob "^4.0.1"

Expand Down Expand Up @@ -5001,7 +5001,7 @@ react-is@^16.8.1, react-is@^16.8.4, react-is@^16.9.0:
integrity sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==

"react-native-appboy-sdk@file:..":
version "1.29.1"
version "1.30.0"

react-native@^0.61.5:
version "0.61.5"
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.30.0

##### ⚠ Breaking
- Updated the native iOS bridge to [Braze iOS SDK 4.3.0](https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md#430), which fixes a crashing issue with Content Cards when using the default UI.
- Updated the native Android bridge to [Braze Android SDK 14.0.1](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#1401).

## 1.29.1

##### ⚠️ Known Issues
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ android {
}

dependencies {
api 'com.appboy:android-sdk-ui:14.0.0'
api 'com.appboy:android-sdk-ui:14.0.1'
api 'com.facebook.react:react-native:+'
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
import com.facebook.react.bridge.ReadableType;
import com.facebook.react.bridge.WritableArray;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.bridge.WritableNativeMap;
import com.facebook.react.modules.core.DeviceEventManagerModule;

import org.json.JSONObject;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -720,11 +720,14 @@ private void subscribeToSdkAuthenticationErrorEvents() {
mSdkAuthErrorSubscriber = new IEventSubscriber<BrazeSdkAuthenticationErrorEvent>() {
@Override
public void trigger(BrazeSdkAuthenticationErrorEvent errorEvent) {
final Map<String, Object> data = new HashMap<>();
data.put("error_code", errorEvent.getErrorCode());
data.put("user_id", errorEvent.getUserId());
data.put("original_signature", errorEvent.getSignature());
data.put("error_reason", errorEvent.getErrorReason());
if (!getReactApplicationContext().hasActiveCatalystInstance()) {
return;
}
final WritableNativeMap data = new WritableNativeMap();
data.putInt("error_code", errorEvent.getErrorCode());
data.putString("user_id", errorEvent.getUserId());
data.putString("original_signature", errorEvent.getSignature());
data.putString("error_reason", errorEvent.getErrorReason());

getReactApplicationContext()
.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-appboy-sdk",
"version": "1.29.1",
"version": "1.30.0",
"description": "Braze SDK for React Native.",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion react-native-appboy-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ Pod::Spec.new do |s|
s.preserve_paths = 'LICENSE.md', 'README.md', 'package.json', 'index.js'
s.source_files = 'iOS/**/*.{h,m}'

s.dependency 'Appboy-iOS-SDK', '~> 4.2.0'
s.dependency 'Appboy-iOS-SDK', '~> 4.3.0'
s.dependency 'React'
end

0 comments on commit ae4ee21

Please sign in to comment.