Skip to content

Commit

Permalink
Updating Unity plugins for version 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
radixdev committed May 14, 2021
1 parent a5f26dc commit d450b90
Show file tree
Hide file tree
Showing 25 changed files with 1,388 additions and 1,465 deletions.
Binary file modified Assets/Plugins/Android/appboy-ui.aar
Binary file not shown.
Binary file modified Assets/Plugins/Android/appboy-unity.aar
Binary file not shown.
Binary file modified Assets/Plugins/Android/appboy.aar
Binary file not shown.
1,200 changes: 305 additions & 895 deletions Assets/Plugins/Appboy/AppboyBinding.cs

Large diffs are not rendered by default.

479 changes: 479 additions & 0 deletions Assets/Plugins/Appboy/BrazeAndroidPlatform.cs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions Assets/Plugins/Appboy/BrazeAndroidPlatform.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

119 changes: 119 additions & 0 deletions Assets/Plugins/Appboy/BrazePlatform.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
using Appboy.Internal;
using Appboy.Models;
using Appboy.Utilities;
using Appboy;
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using UnityEngine;

public interface BrazePlatform {
void LogCustomEvent(string eventName);
void LogCustomEvent(string eventName, Dictionary<string, object> properties);
void LogPurchase(string productId,
string currencyCode,
decimal price,
int quantity
);
void LogPurchase(
string productId,
string currencyCode,
decimal price,
int quantity,
Dictionary<string, object> properties
);

void ChangeUser(string userId);

void SetUserFirstName(string firstName);
void SetUserLastName(string lastName);
void SetUserEmail(string email);
void SetUserGender(Gender gender);
void SetUserDateOfBirth(int year, int month, int day);
void SetUserCountry(string country);
void SetUserHomeCity(string city);
void SetUserEmailNotificationSubscriptionType(AppboyNotificationSubscriptionType emailNotificationSubscriptionType);
void SetUserPushNotificationSubscriptionType(AppboyNotificationSubscriptionType pushNotificationSubscriptionType);
void SetUserPhoneNumber(string phoneNumber);
void SetUserAvatarImageURL(string imageURL);

void SetCustomUserAttribute(string key, bool value);
void SetCustomUserAttribute(string key, int value);
void SetCustomUserAttribute(string key, float value);
void SetCustomUserAttribute(string key, string value);
void SetCustomUserAttributeToNow(string key);
void SetCustomUserAttributeToSecondsFromEpoch(string key, long secondsFromEpoch);
void UnsetCustomUserAttribute(string key);
void IncrementCustomUserAttribute(string key, int incrementValue);
void SetCustomUserAttributeArray(string key, List<string> array, int size);
void AddToCustomUserAttributeArray(string key, string value);
void RemoveFromCustomUserAttributeArray(string key, string value);

void setUserFacebookData(
string facebookId,
string firstName,
string lastName,
string email,
string bio,
string cityName,
Gender? gender,
int? numberOfFriends,
string birthday
);

void setUserTwitterData(
int? twitterUserId,
string twitterHandle,
string name,
string description,
int? followerCount,
int? followingCount,
int? tweetCount,
string profileImageUrl
);

#if UNITY_ANDROID
void RegisterAppboyPushMessages(string registrationId);
#elif UNITY_IOS
void RegisterAppboyPushMessages(byte[] registrationDeviceToken);
#endif
void PromptUserForPushPermissions(bool provisional, PushPromptResponseReceived reponseDelegate = null);
void SetPushTokenReceivedFromSystemDelegate(PushTokenReceivedFromSystem tokenDelegate);

void LogInAppMessageClicked(string inAppMessageJSONString);
void LogInAppMessageImpression(string inAppMessageJSONString);
void LogInAppMessageButtonClicked(string inAppMessageJSONString, int buttonID);

void RequestFeedRefresh();
void RequestFeedRefreshFromCache();
void LogFeedDisplayed();

#if UNITY_ANDROID
void LogCardImpression(string cardId);
void LogCardClicked(string cardId);
#elif UNITY_IOS
void LogCardImpression(string cardJSONString);
void LogCardClicked(string cardJSONString);
#endif
void RequestContentCardsRefresh();
void RequestContentCardsRefreshFromCache();
void LogContentCardsDisplayed();
void LogContentCardClicked(string contentCardString);
void LogContentCardImpression(string contentCardString);
void LogContentCardDismissed(string contentCardString);

void WipeData();
void EnableSDK();
void DisableSDK();

string GetInstallTrackingId();
void SetAttributionData(string network, string campaign, string adgroup, string creative);

void RequestLocationInitialization();
void RequestGeofences(decimal latitude, decimal longitude);

void RequestImmediateDataFlush();
void AddAlias(string alias, string label);
void ConfigureListener(BrazeUnityMessageType messageType, string gameobject, string method);
}
11 changes: 11 additions & 0 deletions Assets/Plugins/Appboy/BrazePlatform.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d450b90

Please sign in to comment.