Skip to content

Commit

Permalink
Release version 1.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyorbin committed Aug 19, 2021
1 parent 3b28abf commit 6c0a238
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 46 deletions.
2 changes: 1 addition & 1 deletion AppboyProject/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:icon="@mipmap/ic_launcher"
android:networkSecurityConfig="@xml/network_security_config"
android:theme="@style/AppTheme">
<service android:name="com.appboy.AppboyFirebaseMessagingService"
<service android:name="com.braze.push.BrazeFirebaseMessagingService"
android:exported="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
package com.appboyproject;

import com.appboy.Constants;
import com.appboy.models.IInAppMessage;
import com.appboy.models.MessageButton;
import com.appboy.ui.inappmessage.AppboyInAppMessageManager;
import com.appboy.ui.inappmessage.InAppMessageCloser;
import com.appboy.ui.inappmessage.InAppMessageOperation;
import com.appboy.ui.inappmessage.listeners.IInAppMessageManagerListener;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

import com.braze.models.inappmessage.IInAppMessage;
import com.braze.models.inappmessage.MessageButton;
import com.braze.support.BrazeLogger;
import com.braze.ui.inappmessage.BrazeInAppMessageManager;
import com.braze.ui.inappmessage.InAppMessageCloser;
import com.braze.ui.inappmessage.InAppMessageOperation;
import com.braze.ui.inappmessage.listeners.IInAppMessageManagerListener;
import com.facebook.react.ReactActivity;
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.bridge.WritableNativeMap;
import com.facebook.react.modules.core.DeviceEventManagerModule;
import com.facebook.react.ReactActivity;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;

import java.util.Arrays;
import java.util.List;

public class MainActivity extends ReactActivity {
private static final String TAG = String.format("%s.%s", Constants.APPBOY_LOG_TAG_PREFIX, MainActivity.class.getName());
private static final String TAG = BrazeLogger.getBrazeLogTag(MainActivity.class);

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -38,11 +32,6 @@ protected void onCreate(Bundle savedInstanceState) {
Log.i(TAG, "Deep link is " + data.toString());
}
class BrazeInAppMessageManagerListener implements IInAppMessageManagerListener {
@Override
public boolean onInAppMessageReceived(IInAppMessage inAppMessage) {
return false;
}

@Override
public InAppMessageOperation beforeInAppMessageDisplayed(IInAppMessage inAppMessage) {
WritableMap parameters = new WritableNativeMap();
Expand Down Expand Up @@ -80,7 +69,7 @@ public void beforeInAppMessageViewClosed(View inAppMessageView, IInAppMessage in
@Override
public void afterInAppMessageViewClosed(IInAppMessage inAppMessage) { }
}
AppboyInAppMessageManager.getInstance().setCustomInAppMessageManagerListener(new BrazeInAppMessageManagerListener());
BrazeInAppMessageManager.getInstance().setCustomInAppMessageManagerListener(new BrazeInAppMessageManagerListener());
}

/**
Expand Down
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.3.1):
- Appboy-iOS-SDK/UI (= 4.3.1)
- Appboy-iOS-SDK/ContentCards (4.3.1):
- Appboy-iOS-SDK (4.3.2):
- Appboy-iOS-SDK/UI (= 4.3.2)
- Appboy-iOS-SDK/ContentCards (4.3.2):
- Appboy-iOS-SDK/Core
- SDWebImage (< 6, >= 5.8.2)
- Appboy-iOS-SDK/Core (4.3.1)
- Appboy-iOS-SDK/InAppMessage (4.3.1):
- Appboy-iOS-SDK/Core (4.3.2)
- Appboy-iOS-SDK/InAppMessage (4.3.2):
- Appboy-iOS-SDK/Core
- SDWebImage (< 6, >= 5.8.2)
- Appboy-iOS-SDK/NewsFeed (4.3.1):
- Appboy-iOS-SDK/NewsFeed (4.3.2):
- Appboy-iOS-SDK/Core
- SDWebImage (< 6, >= 5.8.2)
- Appboy-iOS-SDK/UI (4.3.1):
- Appboy-iOS-SDK/UI (4.3.2):
- 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.31.0):
- Appboy-iOS-SDK (~> 4.3.1)
- react-native-appboy-sdk (1.32.0):
- Appboy-iOS-SDK (~> 4.3.2)
- 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: 33b31d5ade91a7d0718534798f4ab1146e7b0681
Appboy-iOS-SDK: 173d96a8e903e1dff8bbc200f2a95f39cac9af21
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: 211e9e77ad5e523191c3cddd0252056668b45a13
react-native-appboy-sdk: 1aa507125262dc879e8cbad2ba119ce95b5e021d
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 @@ -4808,9 +4808,9 @@ path-key@^2.0.0, path-key@^2.0.1:
integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=

path-parse@^1.0.6:
version "1.0.6"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==
version "1.0.7"
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==

path-type@^2.0.0:
version "2.0.0"
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.30.0"
version "1.32.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.32.0

##### ⚠ Breaking
- Updated the native Android bridge to [Braze Android SDK 15.0.0](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#1500).
- Updated the native iOS bridge to [Braze iOS SDK 4.3.2](https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md#432).

## 1.31.0

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

dependencies {
api 'com.appboy:android-sdk-ui:14.0.1'
api 'com.appboy:android-sdk-ui:15.0.0'
api 'com.facebook.react:react-native:+'
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@
import com.appboy.enums.Month;
import com.appboy.enums.NotificationSubscriptionType;
import com.appboy.events.BrazeSdkAuthenticationErrorEvent;
import com.appboy.events.ContentCardsUpdatedEvent;
import com.appboy.events.FeedUpdatedEvent;
import com.appboy.events.IEventSubscriber;
import com.appboy.events.SimpleValueCallback;
import com.appboy.models.IInAppMessage;
import com.appboy.models.IInAppMessageImmersive;
import com.appboy.models.MessageButton;
import com.appboy.models.cards.BannerImageCard;
import com.appboy.models.cards.CaptionedImageCard;
import com.appboy.models.cards.Card;
Expand All @@ -29,10 +25,14 @@
import com.appboy.support.AppboyLogger;
import com.appboy.ui.activities.AppboyContentCardsActivity;
import com.appboy.ui.activities.AppboyFeedActivity;
import com.appboy.ui.inappmessage.AppboyInAppMessageManager;
import com.braze.Braze;
import com.braze.BrazeUser;
import com.braze.events.ContentCardsUpdatedEvent;
import com.braze.models.inappmessage.IInAppMessage;
import com.braze.models.inappmessage.IInAppMessageImmersive;
import com.braze.models.inappmessage.MessageButton;
import com.braze.support.BrazeLogger;
import com.braze.ui.inappmessage.BrazeInAppMessageManager;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.Promise;
Expand Down Expand Up @@ -917,7 +917,7 @@ public void onSuccess(@NonNull BrazeUser brazeUser) {

@ReactMethod
public void hideCurrentInAppMessage() {
AppboyInAppMessageManager.getInstance().hideCurrentlyDisplayingInAppMessage(true);
BrazeInAppMessageManager.getInstance().hideCurrentlyDisplayingInAppMessage(true);
}

@ReactMethod
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.31.0",
"version": "1.32.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.3.1'
s.dependency 'Appboy-iOS-SDK', '~> 4.3.2'
s.dependency 'React'
end

0 comments on commit 6c0a238

Please sign in to comment.