Skip to content

Commit

Permalink
Releasing Xamarin Bindings version 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaw committed Dec 16, 2015
1 parent e316446 commit 507f4dc
Show file tree
Hide file tree
Showing 131 changed files with 926 additions and 544 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.2
- Updates the iOS binding to use Appboy SDK version 2.17.1.
- Updates the Android binding to use Appboy SDK version 1.11.0.

## 1.1
- Updates the iOS binding to use Appboy SDK version 2.12.0.
- Updates the Android binding to use Appboy SDK version 1.8.0.
Expand Down
4 changes: 2 additions & 2 deletions appboy-component/component/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ libraries:
summary: Xamarin bindings for the Appboy SDKs.
details: Details.md
getting-started: GettingStarted.md
version: "1.1"
version: "1.2"
source:
../src/AppboyBindings.sln
samples:
Android Sample: ../samples/android/Android.sln
iOS Sample: ../samples/ios-unified/iOS.sln
Forms Sample: ../samples/xamarin-forms/TestAppXamarinForms.sln
packages:
android: Xamarin.Android.Support.v4, Version=21.0.3.0
android: Xamarin.Android.Support.v4, Version=23.0.1.3
Binary file modified appboy-component/lib/android/AppboyPlatform.AndroidBinding.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public override View OnCreateView(LayoutInflater inflater, ViewGroup container,

// Change User
view.FindViewById<Button> (Resource.Id.changeUserButton).Click += delegate {
Appboy.GetInstance(Activity).ChangeUser("myUser" + (new Random().Next()));
String userId = "myUser" + (new Random().Next());
Appboy.GetInstance(Activity).ChangeUser(userId);
view.FindViewById<TextView> (Resource.Id.userId).Text = "UserId: " + userId;
};

// Set User Properties
Expand All @@ -49,13 +51,13 @@ public override View OnCreateView(LayoutInflater inflater, ViewGroup container,
Appboy.GetInstance(Activity).CurrentUser.SetCustomUserAttribute("customAttributeKey", true);
Appboy.GetInstance(Activity).CurrentUser.SetEmailNotificationSubscriptionType(NotificationSubscriptionType.OptedIn);
Appboy.GetInstance(Activity).CurrentUser.SetGender(Gender.Male);
Appboy.GetInstance(Activity).CurrentUser.SetAttributionData(new AttributionData("a", "b", "c", "d"));
};

// Events and purchases
view.FindViewById<Button> (Resource.Id.eventsAndPurchasesButton).Click += delegate {
Appboy.GetInstance(Activity).LogCustomEvent("myCustomEvent");
Appboy.GetInstance(Activity).LogPurchase("myProduct", 100);
Appboy.GetInstance(Activity).LogShare(SocialNetwork.Facebook);
};

// Feedback
Expand Down Expand Up @@ -125,8 +127,8 @@ String profileImageUrl
fragmentTransaction.Commit();
};

// Slideup
view.FindViewById<Button> (Resource.Id.addSlideupButton).Click += delegate {
// In-App Message
view.FindViewById<Button> (Resource.Id.addInAppMessageButton).Click += delegate {
InAppMessageSlideup slideup = new InAppMessageSlideup();
slideup.Message = "This is the message";
slideup.SetClickAction(ClickAction.Uri, Android.Net.Uri.Parse("http://appboy.com"));
Expand All @@ -148,10 +150,14 @@ public FeedbackFinishedListener(FragmentManager supportFragmentManager) {
mFragmentManager = supportFragmentManager;
}

public void OnFeedbackFinished () {
public void OnFeedbackFinished (Com.Appboy.UI.AppboyFeedbackFragment.FeedbackResult feedbackResult) {
Console.WriteLine ("Feedback finished");
mFragmentManager.PopBackStack ();
}

public string BeforeFeedbackSubmitted(string feedback) {
return feedback;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
android:layout_height="fill_parent"
android:minWidth="25px"
android:minHeight="25px">
<TextView
android:id="@+id/userId"
android:text="@string/userId"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:id="@+id/changeUserButton"
android:layout_width="fill_parent"
Expand Down Expand Up @@ -41,10 +46,10 @@
android:layout_height="wrap_content"
android:id="@+id/launchFeedbackButton" />
<Button
android:text="@string/addSlideup"
android:text="@string/addNewInAppMessage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/addSlideupButton" />
android:id="@+id/addInAppMessageButton" />
<Button
android:text="@string/dataFlush"
android:layout_width="match_parent"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="userId">UserId:</string>
<string name="changeUser">Change User</string>
<string name="setUserProperties">Set User Properties</string>
<string name="eventsAndPurchases">Log Events And Purchases</string>
<string name="submitFeedback">Submit Feedback</string>
<string name="trackSocialData">Track Social Data</string>
<string name="launchNewsFeed">Launch News Feed</string>
<string name="launchFeedback">Launch Feedback</string>
<string name="addSlideup">Add Slideup</string>
<string name="addNewInAppMessage">Add In-App Message</string>
<string name="dataFlush">Request Data Flush</string>
<string name="app_name">TestApp.XamarinAndroid</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<Reference Include="System.Core" />
<Reference Include="Mono.Android" />
<Reference Include="Xamarin.Android.Support.v4">
<HintPath>..\packages\Xamarin.Android.Support.v4.21.0.3.0\lib\MonoAndroid10\Xamarin.Android.Support.v4.dll</HintPath>
<HintPath>..\packages\Xamarin.Android.Support.v4.23.0.1.3\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand All @@ -66,7 +66,6 @@
<AndroidResource Include="Resources\layout\HomeFragment.axml" />
<AndroidResource Include="Resources\values\Styles.xml" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<ItemGroup>
<Folder Include="Assets\" />
</ItemGroup>
Expand All @@ -76,9 +75,10 @@
<Name>AppboyPlatform.XamarinAndroidBinding</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<ItemGroup>
<XamarinComponentReference Include="xamandroidsupportv4-18">
<Version>21.0.3.0</Version>
<Version>23.0.1.3</Version>
<Visible>False</Visible>
</XamarinComponentReference>
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Android.Support.v4" version="21.0.3.0" targetFramework="MonoAndroid50" />
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Android.Support.v4" version="23.0.1.3" targetFramework="MonoAndroid50" />
</packages>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ private void ChangeUserButtonHandler (object sender, EventArgs e)

private void UserPropertyButtonHandler (object sender, EventArgs e)
{
Appboy.SharedInstance.User.Bio = "My bio";
Appboy.SharedInstance.User.Country = "USA";
Appboy.SharedInstance.User.DateOfBirth = NSDate.Now;
Appboy.SharedInstance.User.Email = "test@appboy.com";
Expand All @@ -46,13 +45,13 @@ private void UserPropertyButtonHandler (object sender, EventArgs e)
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.LogSocialShare (ABKSocialNetwork.Facebook);
}

private void AddSlideupButtonHandler (object sender, EventArgs e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,13 @@
<BundleResource Include="Appboy.bundle\btn-app-purchase-plus-highlighted%402x.png" />
<BundleResource Include="Appboy.bundle\btn-app-purchase-plus-normal.png" />
<BundleResource Include="Appboy.bundle\btn-app-purchase-plus-normal%402x.png" />
<BundleResource Include="Appboy.bundle\btn-email-highlighted.png" />
<BundleResource Include="Appboy.bundle\btn-email-highlighted%402x.png" />
<BundleResource Include="Appboy.bundle\btn-email-normal.png" />
<BundleResource Include="Appboy.bundle\btn-email-normal%402x.png" />
<BundleResource Include="Appboy.bundle\btn-facebook-highlighted.png" />
<BundleResource Include="Appboy.bundle\btn-facebook-highlighted%402x.png" />
<BundleResource Include="Appboy.bundle\btn-facebook-normal.png" />
<BundleResource Include="Appboy.bundle\btn-facebook-normal%402x.png" />
<BundleResource Include="Appboy.bundle\checkmark-bg.png" />
<BundleResource Include="Appboy.bundle\checkmark-bg%402x.png" />
<BundleResource Include="Appboy.bundle\checkmark.png" />
<BundleResource Include="Appboy.bundle\checkmark%402x.png" />
<BundleResource Include="Appboy.bundle\com_appboy_inapp_close_icon.png" />
<BundleResource Include="Appboy.bundle\com_appboy_inapp_close_icon%402x.png" />
<BundleResource Include="Appboy.bundle\com_appboy_inapp_close_icon%403x.png" />
<BundleResource Include="Appboy.bundle\icon-facebook.png" />
<BundleResource Include="Appboy.bundle\img-background.png" />
<BundleResource Include="Appboy.bundle\img-background%402x.png" />
<BundleResource Include="Appboy.bundle\img-disclosure-arrow.png" />
Expand All @@ -158,58 +149,42 @@
<BundleResource Include="Appboy.bundle\img-star-half.png" />
<BundleResource Include="Appboy.bundle\img-star-half%402x.png" />
<BundleResource Include="Appboy.bundle\radio-tower.png" />
<BundleResource Include="Appboy.bundle\ABKBannerCardCell.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKBannerCardCell.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKBannerCardCell.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKCaptionedMessageCardCell.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKCaptionedMessageCardCell.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKCaptionedMessageCardCell.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKCrossPromotionCardCell.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKCrossPromotionCardCell.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKCrossPromotionCardCell.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedNoConnectionView.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedNoConnectionView.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedNoConnectionView.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedViewController.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedViewController.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedViewController.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackContentView.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackContentView.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackContentView.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackEmailFacebookViewPortrait.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackEmailFacebookViewPortrait.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackEmailFacebookViewPortrait.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackNavBar.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackEmailViewPortrait.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackEmailViewPortrait.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackNavBar.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKFeedbackNavBar.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageFullViewController.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageFullViewController.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageFullViewController.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageFullViewController_iPad.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageFullViewController_iPad.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageFullViewController_iPad.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageModalViewController.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageHTMLFullViewController.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageHTMLFullViewController.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageModalViewController.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageModalViewController.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageModalViewController_iPad.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageModalViewController_iPad.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageModalViewController_iPad.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageSlideupViewController.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageSlideupViewController.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageSlideupViewController.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageSlideupViewController_iPad.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageSlideupViewController_iPad.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKInAppMessageSlideupViewController_iPad.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKNewsCardCell.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKNewsCardCell.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKNewsCardCell.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKSpinnerView.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKSpinnerView.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKSpinnerView.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKTextAnnouncementCardCell.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKTextAnnouncementCardCell.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKTextAnnouncementCardCell.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ABKWebViewController.nib\objects-8.0+.nib" />
<BundleResource Include="Appboy.bundle\ABKWebViewController.nib\objects.nib" />
<BundleResource Include="Appboy.bundle\ABKWebViewController.nib\runtime.nib" />
<BundleResource Include="Appboy.bundle\ar.lproj\LocalizedAppboyUIString.strings" />
Expand Down Expand Up @@ -241,8 +216,11 @@
<BundleResource Include="Appboy.bundle\sv.lproj\LocalizedAppboyUIString.strings" />
<BundleResource Include="Appboy.bundle\th.lproj\LocalizedAppboyUIString.strings" />
<BundleResource Include="Appboy.bundle\vi.lproj\LocalizedAppboyUIString.strings" />
<BundleResource Include="Appboy.bundle\zh-HK.lproj\LocalizedAppboyUIString.strings" />
<BundleResource Include="Appboy.bundle\zh-Hans.lproj\LocalizedAppboyUIString.strings" />
<BundleResource Include="Appboy.bundle\zh-Hant.lproj\LocalizedAppboyUIString.strings" />
<BundleResource Include="Appboy.bundle\zh-TW.lproj\LocalizedAppboyUIString.strings" />
<BundleResource Include="Appboy.bundle\zh.lproj\LocalizedAppboyUIString.strings" />
</ItemGroup>
<ItemGroup>
<None Include="Info.plist" />
Expand All @@ -260,9 +238,6 @@
<InterfaceDefinition Include="MainStoryboard.storyboard" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<ItemGroup>
<Folder Include="Appboy.bundle\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\ios-unified\AppboyPlatformXamariniOSBinding.csproj">
<Project>{7D493871-0793-4E34-B983-06053111D5B0}</Project>
Expand Down
Loading

0 comments on commit 507f4dc

Please sign in to comment.