-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing Xamarin Bindings version 1.5.1
- Loading branch information
Showing
96 changed files
with
607 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-38 KB
(98%)
appboy-component/lib/android/AppboyPlatform.AndroidBinding.dll
Binary file not shown.
Binary file modified
BIN
-12 KB
(95%)
appboy-component/lib/android/AppboyPlatform.AndroidBinding.pdb
Binary file not shown.
Binary file modified
BIN
+844 KB
(110%)
appboy-component/lib/ios-unified/AppboyPlatformXamariniOSBinding.dll
Binary file not shown.
Binary file modified
BIN
-288 Bytes
(100%)
appboy-component/lib/ios-unified/AppboyPlatformXamariniOSBinding.pdb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appboy-component/samples/android/TestApp.XamarinAndroid/Properties/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,66 +26,99 @@ public override void ViewDidLoad() | |
UserPropertyButton.TouchUpInside += UserPropertyButtonHandler; | ||
EventsAndPurchasesButton.TouchUpInside += EventsAndPurchasesButtonHandler; | ||
AddSlideupButton.TouchUpInside += AddSlideupButtonHandler; | ||
ChangeUserLabel.Text = "Current User: " + Appboy.SharedInstance.User.UserID; | ||
ChangeUserLabel.Text = "Current User: " + Appboy.SharedInstance?.User?.UserID; | ||
} | ||
|
||
private void ChangeUserButtonHandler(object sender, EventArgs e) | ||
{ | ||
String userId = "myUserId" + new Random().Next(1, 10000); | ||
Appboy.SharedInstance.ChangeUser(userId); | ||
ChangeUserLabel.Text = "Current User: " + userId; | ||
if (Appboy.SharedInstance != null) | ||
{ | ||
String userId = "myUserId" + new Random().Next(1, 10000); | ||
Appboy.SharedInstance.ChangeUser(userId); | ||
ChangeUserLabel.Text = "Current User: " + userId; | ||
} | ||
} | ||
|
||
private void UserPropertyButtonHandler(object sender, EventArgs e) | ||
{ | ||
Appboy.SharedInstance.User.Country = "USA"; | ||
Appboy.SharedInstance.User.DateOfBirth = NSDate.Now; | ||
Appboy.SharedInstance.User.Email = "[email protected]"; | ||
Appboy.SharedInstance.User.FirstName = "Brian"; | ||
Appboy.SharedInstance.User.HomeCity = "Belmar"; | ||
Appboy.SharedInstance.User.LastName = "Tester"; | ||
Appboy.SharedInstance.User.Phone = "5555555555"; | ||
Appboy.SharedInstance.User.SetCustomAttributeWithKey("customAttributeKey", true); | ||
Appboy.SharedInstance.User.SetEmailNotificationSubscriptionType(ABKNotificationSubscriptionType.ABKOptedIn); | ||
Appboy.SharedInstance.User.SetGender(ABKUserGenderType.Male); | ||
Appboy.SharedInstance.User.AttributionData = new ABKAttributionData("n1", "c1", "a1", "cr1"); | ||
if (Appboy.SharedInstance != null) | ||
{ | ||
Appboy.SharedInstance.User.Country = "USA"; | ||
Appboy.SharedInstance.User.DateOfBirth = NSDate.Now; | ||
Appboy.SharedInstance.User.Email = "[email protected]"; | ||
Appboy.SharedInstance.User.FirstName = "Brian"; | ||
Appboy.SharedInstance.User.HomeCity = "Belmar"; | ||
Appboy.SharedInstance.User.LastName = "Tester"; | ||
Appboy.SharedInstance.User.Phone = "5555555555"; | ||
Appboy.SharedInstance.User.SetCustomAttributeWithKey("customAttributeKey", true); | ||
Appboy.SharedInstance.User.SetEmailNotificationSubscriptionType(ABKNotificationSubscriptionType.ABKOptedIn); | ||
Appboy.SharedInstance.User.SetGender(ABKUserGenderType.Male); | ||
Appboy.SharedInstance.User.AttributionData = new ABKAttributionData("n1", "c1", "a1", "cr1"); | ||
} | ||
} | ||
|
||
private void EventsAndPurchasesButtonHandler(object sender, EventArgs e) | ||
{ | ||
Appboy.SharedInstance.LogCustomEvent("myCustomEvent"); | ||
Appboy.SharedInstance.LogPurchase("myProduct", "USD", new NSDecimalNumber("10")); | ||
Appboy.SharedInstance?.LogCustomEvent("myCustomEvent"); | ||
Appboy.SharedInstance?.LogPurchase("myProduct", "USD", new NSDecimalNumber("10")); | ||
} | ||
|
||
private void AddSlideupButtonHandler(object sender, EventArgs e) | ||
{ | ||
Appboy.SharedInstance.InAppMessageController.Delegate = new ABKInAppMessageControllerDelegate(); | ||
ABKInAppMessageSlideup slideup = new ABKInAppMessageSlideup() { | ||
Message = "This is a slideup", | ||
Duration = 10 | ||
}; | ||
Appboy.SharedInstance.InAppMessageController.AddInAppMessage(slideup); | ||
if (Appboy.SharedInstance != null) | ||
{ | ||
Appboy.SharedInstance.InAppMessageController.Delegate = new ABKInAppMessageControllerDelegate(); | ||
ABKInAppMessageSlideup slideup = new ABKInAppMessageSlideup() | ||
{ | ||
Message = "This is a slideup", | ||
Duration = 10 | ||
}; | ||
Appboy.SharedInstance.InAppMessageController.AddInAppMessage(slideup); | ||
} | ||
} | ||
|
||
partial void AddModalButton_TouchUpInside(UIButton sender) | ||
{ | ||
Appboy.SharedInstance.InAppMessageController.Delegate = new ABKInAppMessageControllerDelegate(); | ||
ABKInAppMessageModal modal = new ABKInAppMessageModal() { | ||
Message = "This is a modal", | ||
Duration = 10 | ||
}; | ||
Appboy.SharedInstance.InAppMessageController.AddInAppMessage(modal); | ||
if (Appboy.SharedInstance != null) | ||
{ | ||
Appboy.SharedInstance.InAppMessageController.Delegate = new ABKInAppMessageControllerDelegate(); | ||
ABKInAppMessageModal modal = new ABKInAppMessageModal() | ||
{ | ||
Message = "This is a modal", | ||
Duration = 10 | ||
}; | ||
Appboy.SharedInstance.InAppMessageController.AddInAppMessage(modal); | ||
} | ||
} | ||
|
||
partial void AddFullButton_TouchUpInside(UIButton sender) | ||
{ | ||
Appboy.SharedInstance.InAppMessageController.Delegate = new ABKInAppMessageControllerDelegate(); | ||
ABKInAppMessageFull full = new ABKInAppMessageFull() { | ||
Message = "This is a full", | ||
Duration = 10, | ||
ImageURI = new NSUrl("https://raw.githubusercontent.com/Appboy/appboy-xamarin-bindings/master/braze-logo.png") | ||
}; | ||
Appboy.SharedInstance.InAppMessageController.AddInAppMessage(full); | ||
if (Appboy.SharedInstance != null) | ||
{ | ||
Appboy.SharedInstance.InAppMessageController.Delegate = new ABKInAppMessageControllerDelegate(); | ||
ABKInAppMessageFull full = new ABKInAppMessageFull() | ||
{ | ||
Message = "This is a full", | ||
Duration = 10, | ||
ImageURI = new NSUrl("https://raw.githubusercontent.com/Appboy/appboy-xamarin-bindings/master/braze-logo.png") | ||
}; | ||
Appboy.SharedInstance.InAppMessageController.AddInAppMessage(full); | ||
} | ||
} | ||
|
||
partial void WipeData_TouchUpInside(UIButton sender) | ||
{ | ||
Appboy.WipeDataAndDisableForAppRun(); | ||
} | ||
|
||
partial void EnableSDK_TouchUpInside(UIButton sender) | ||
{ | ||
Appboy.RequestEnableSDKOnNextAppRun(); | ||
} | ||
|
||
partial void DisableSDK_TouchUpInside(UIButton sender) | ||
{ | ||
Appboy.DisableSDK(); | ||
} | ||
} | ||
|
||
|
14 changes: 13 additions & 1 deletion
14
...y-component/samples/ios-unified/TestApp.XamariniOS/AppboySampleViewController.designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.