Skip to content

Commit

Permalink
Updating Unity plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Bucimis committed Jan 8, 2019
1 parent bb307f0 commit 9b1ba66
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
Binary file modified Assets/Plugins/Android/libs/appboy-ui.aar
Binary file not shown.
Binary file modified Assets/Plugins/Android/libs/appboy-unity.aar
Binary file not shown.
Binary file modified Assets/Plugins/Android/libs/appboy.aar
Binary file not shown.
8 changes: 2 additions & 6 deletions Assets/Plugins/Appboy/AppboyBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ public static void SetAttributionData(string network, string campaign, string ad

#elif UNITY_ANDROID
private static AndroidJavaObject appboyUnityActivity;
private static AndroidJavaObject appboy;
private static AndroidJavaObject inAppMessageUtils;

void Start() {
Expand All @@ -371,12 +370,9 @@ public static AndroidJavaObject AppboyUnityActivity {

public static AndroidJavaObject Appboy {
get {
if (appboy == null) {
using (var appboyClass = new AndroidJavaClass("com.appboy.Appboy")) {
appboy = appboyClass.CallStatic<AndroidJavaObject>("getInstance", AppboyUnityActivity);
}
using (var appboyClass = new AndroidJavaClass("com.appboy.Appboy")) {
return appboyClass.CallStatic<AndroidJavaObject>("getInstance", AppboyUnityActivity);
}
return appboy;
}
}

Expand Down
5 changes: 2 additions & 3 deletions Assets/Plugins/Appboy/models/Cards/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public Card(JSONClass json) {
}
}
}

}

public override string ToString() {
return String.Format("{0}: ID={1}, Type={2}, Viewed={3}, Created={4}, Extras={5}, Updated={6}" +
"Categories={7}",
"Categories={7}",
this.GetType().Name, ID, Type, Viewed, Created, CollectionUtils.DictionaryToString(Extras),
Updated, CategoriesToString());
}
Expand Down Expand Up @@ -96,4 +96,3 @@ public void LogClick() {
}
}
}

19 changes: 17 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 1.16.0

##### Breaking
- Updated the iOS plugin to use [Braze iOS SDK 3.11.0](https://github.com/Appboy/appboy-ios-sdk/releases/tag/3.11.0).
- Updated the Android plugin to use [Braze Android SDK 3.1.0](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#310).

##### Fixed
- Fixed an issue where the binding would cache the Appboy singleton instance.
- Fixed `Card.cs` to always return `CardCategory.NO_CATEGORY` in all cases where no valid categories are found.
- See https://github.com/Appboy/appboy-unity-sdk/pull/43. Thanks @Sencerd!

##### Changed
- Updated the Appboy configuration editor to use Braze branding.
- By default, native in-app messages on Android no longer show the status bar.

## 1.15.0

##### Breaking
Expand All @@ -10,8 +25,8 @@
## 1.14.0

##### Breaking
- Updates the iOS plugin to use Braze iOS SDK 3.7.1.
- Updates the iOS plugin to use the Braze iOS SDK framework instead of local files.
- Updated the iOS plugin to use Braze iOS SDK 3.7.1.
- Updated the iOS plugin to use the Braze iOS SDK framework instead of local files.
- As a result, imports using local file syntax (e.g. `"AppboyKit.h"`) must change to framework (e.g.`<Appboy_iOS_SDK/AppboyKit.h>`) syntax.
- Updates the Android plugin to use Braze Android SDK 2.6.0.
- Removes Android Support Library artifacts from the Braze Unity Plugin. This is to avoid duplicating the Android Support Library artifacts that are automatically included as part of the Firebase Unity SDK, our recommended push integration. Integrators not using Firebase or importing Android Support Library artifacts through another SDK must include the Android Support Library manually (v4 only).
Expand Down

0 comments on commit 9b1ba66

Please sign in to comment.