diff --git a/AppsFlyerXamarinBindingAndroid.dll b/AppsFlyerXamarinBindingAndroid.dll deleted file mode 100644 index 3b5b735..0000000 Binary files a/AppsFlyerXamarinBindingAndroid.dll and /dev/null differ diff --git a/AppsFlyerXamarinBindingAndroid/AppsFlyerXamarinBindingAndroid.csproj b/AppsFlyerXamarinBindingAndroid/AppsFlyerXamarinBindingAndroid.csproj index 29eb1a1..51a95f3 100644 --- a/AppsFlyerXamarinBindingAndroid/AppsFlyerXamarinBindingAndroid.csproj +++ b/AppsFlyerXamarinBindingAndroid/AppsFlyerXamarinBindingAndroid.csproj @@ -18,13 +18,13 @@ XAJavaInterop1 PackageReference AppsFlyerXamarinBindingAndroid - 6.2.0.0 + 6.3.1.0 AppsFlyer Xamaring binding for AppsFlyer Android SDK https://www.appsflyer.com/terms-of-use/ AppsFlyer https://github.com/AppsFlyerSDK/XamarinAndroidBinding - Android SDK 6.2.0 + Android SDK 6.3.1 AppsFlyerXamarinBindingAndroid true @@ -61,6 +61,9 @@ + + + 0.2.2 @@ -68,9 +71,6 @@ all - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + false + + public + + public + + public \ No newline at end of file diff --git a/README.md b/README.md index 2a23d25..e57bec8 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Xamarin Binding integration guide For Android -AppsFlyer Xamarin Binding version `v6.2.0.0` -Built with AppsFlyer Android SDK `v6.2.0` +AppsFlyer Xamarin Binding version `v6.3.1.0` +Built with AppsFlyer Android SDK `v6.3.1` ## ❗ v6 Breaking Changes @@ -79,7 +79,7 @@ https://www.nuget.org/packages/AppsFlyerXamarinBindingAndroid/ 1. Go to Project > Add NuGet Packages... 2. Select the `AppsFlyerXamarinBindingAndroid` - 3. Select under version - `6.2.0.0` + 3. Select under version - `6.3.1` 4. Click `Add Package` diff --git a/XamarinSample/AppsFlyerConversionDelegate.cs b/XamarinSample/AppsFlyerConversionDelegate.cs index b702040..81b89d3 100644 --- a/XamarinSample/AppsFlyerConversionDelegate.cs +++ b/XamarinSample/AppsFlyerConversionDelegate.cs @@ -1,22 +1,16 @@ using System; using Com.Appsflyer; using System.Collections.Generic; -using Android.Support.V7.App; namespace XamarinSample { - public class AppsFlyerConversionDelegate : Java.Lang.Object, IAppsFlyerConversionListener + public class ConversionListener : Java.Lang.Object, IAppsFlyerConversionListener { - AppCompatActivity activity; - Android.Support.V7.Widget.AppCompatTextView oaoaTextView; - Android.Support.V7.Widget.AppCompatTextView gcdTextView; + MainActivity activity; - public AppsFlyerConversionDelegate(MainActivity activity) + public ConversionListener(MainActivity activity) { - this.oaoaTextView = activity.oaoaTextView; - this.gcdTextView = activity.gcdTextView; this.activity = activity; - Console.WriteLine("AppsFlyerConversionDelegate called"); } public void OnAppOpenAttribution(IDictionary p0) @@ -29,7 +23,7 @@ public void OnAppOpenAttribution(IDictionary p0) Console.WriteLine(message); activity.RunOnUiThread(() => { - oaoaTextView.Text = message; + activity.udlTextView.Text = message; }); } @@ -39,7 +33,7 @@ public void OnAttributionFailure(string p0) Console.WriteLine(message); activity.RunOnUiThread(() => { - oaoaTextView.Text = message; + activity.udlTextView.Text = message; }); } @@ -49,7 +43,7 @@ public void OnConversionDataFail(string p0) Console.WriteLine(message); activity.RunOnUiThread(() => { - gcdTextView.Text = message; + activity.gcdTextView.Text = message; }); } @@ -64,10 +58,10 @@ public void OnConversionDataSuccess(IDictionary p0) } } message = message + "Timestamp:" + DateTime.Now; - Console.WriteLine(message); activity.RunOnUiThread(() => { - gcdTextView.Text = message; + Console.WriteLine(message); + activity.gcdTextView.Text = message; }); } } diff --git a/XamarinSample/DeepLinkListener.cs b/XamarinSample/DeepLinkListener.cs new file mode 100644 index 0000000..67a38d2 --- /dev/null +++ b/XamarinSample/DeepLinkListener.cs @@ -0,0 +1,27 @@ +using System; +using Com.Appsflyer.Deeplink; + +namespace XamarinSample +{ + public class DeepLinkListener : Java.Lang.Object, IDeepLinkListener + { + private MainActivity activity; + + public DeepLinkListener(MainActivity activity) + { + this.activity = activity; + } + + public void OnDeepLinking(DeepLinkResult deepLinkResult) + { + string message = "OnDeepLinking:\n"; + message += deepLinkResult.ToString(); + message = message + "\nTimestamp: " + DateTime.Now; + Console.WriteLine(message); + activity.RunOnUiThread(() => + { + activity.udlTextView.Text = message; + }); + } + } +} diff --git a/XamarinSample/MainActivity.cs b/XamarinSample/MainActivity.cs index 62534ee..456fc44 100644 --- a/XamarinSample/MainActivity.cs +++ b/XamarinSample/MainActivity.cs @@ -8,7 +8,6 @@ using Android.Support.V7.Widget; using Android.Views; using Com.Appsflyer; -using Com.Appsflyer.Deeplink; namespace XamarinSample { @@ -24,7 +23,7 @@ namespace XamarinSample public class MainActivity : AppCompatActivity { public AppCompatTextView gcdTextView; - public AppCompatTextView oaoaTextView; + public AppCompatTextView udlTextView; public FloatingActionButton purchaseButton; FloatingActionButton fab; @@ -32,24 +31,20 @@ protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); - SetContentView(Resource.Layout.activity_main); - Toolbar toolbar = FindViewById(Resource.Id.toolbar); SetSupportActionBar(toolbar); - fab = FindViewById(Resource.Id.fab); fab.Click += FabOnClick; - purchaseButton = FindViewById(Resource.Id.purchase_button); purchaseButton.Click += PurchaseButtonClick; - gcdTextView = FindViewById(Resource.Id.gcd_text_view); - oaoaTextView = FindViewById(Resource.Id.oaoa_text_view); - + udlTextView = FindViewById(Resource.Id.udl_text_view); + ConversionListener cl = new ConversionListener(this); + DeepLinkListener dl = new DeepLinkListener(this); AppsFlyerLib.Instance.AddPushNotificationDeepLinkPath(new string[] { "key1", "key2" }); AppsFlyerLib.Instance.SetLogLevel(AFLogger.LogLevel.Verbose); // Enable verbose logs for debugging - AppsFlyerLib.Instance.Init("4UGrDF4vFvPLbHq5bXtCza", new AppsFlyerConversionDelegate(this), Application); + AppsFlyerLib.Instance.Init("4UGrDF4vFvPLbHq5bXtCza", cl, Application); AppsFlyerLib.Instance.SetAppInviteOneLink("E2bM"); // Replace with OneLink ID from your AppsFlyer account AppsFlyerLib.Instance.SetSharingFilter(new string[]{"test", "partner_int"}); Dictionary partnerData = @@ -57,18 +52,24 @@ protected override void OnCreate(Bundle savedInstanceState) partnerData.Add("id", "test_id"); partnerData.Add("value", "test_value"); AppsFlyerLib.Instance.SetPartnerData("test_partner", partnerData); - AppsFlyerLib.Instance.SubscribeForDeepLink(new MyDeepLinkListener()); + AppsFlyerLib.Instance.RegisterConversionListener(this, cl); + AppsFlyerLib.Instance.SubscribeForDeepLink(dl); AppsFlyerLib.Instance.Start(this, "4UGrDF4vFvPLbHq5bXtCza"); // Replace with your app DevKey } - private class MyDeepLinkListener : Java.Lang.Object, IDeepLinkListener + protected override void OnStop() { - public void OnDeepLinking(DeepLinkResult deepLinkResult) - { - Console.WriteLine(deepLinkResult.ToString()); - } + base.OnStop(); + gcdTextView.Text = "Conversion Data"; + udlTextView.Text = "onDeepLinking"; } + protected override void OnResume() + { + base.OnResume(); + Console.WriteLine(gcdTextView.Text); + Console.WriteLine(udlTextView.Text); + } private void PurchaseButtonClick(object sender, EventArgs eventArgs) { @@ -101,7 +102,7 @@ public override void OnRequestPermissionsResult(int requestCode, string[] permis class OneLinkResponseListener : Java.Lang.Object, CreateOneLinkHttpTask.IResponseListener - { + { View view; public OneLinkResponseListener(View view) diff --git a/XamarinSample/Properties/AndroidManifest.xml b/XamarinSample/Properties/AndroidManifest.xml index 87d9394..d1d3d69 100644 --- a/XamarinSample/Properties/AndroidManifest.xml +++ b/XamarinSample/Properties/AndroidManifest.xml @@ -1,6 +1,6 @@  - + diff --git a/XamarinSample/Resources/Resource.designer.cs b/XamarinSample/Resources/Resource.designer.cs index 673484c..5e3b1ad 100644 --- a/XamarinSample/Resources/Resource.designer.cs +++ b/XamarinSample/Resources/Resource.designer.cs @@ -3901,265 +3901,265 @@ public partial class Id public const int notification_main_column_container = 2131230870; // aapt resource value: 0x7F080097 - public const int oaoa_text_view = 2131230871; + public const int off = 2131230871; // aapt resource value: 0x7F080098 - public const int off = 2131230872; + public const int on = 2131230872; // aapt resource value: 0x7F080099 - public const int on = 2131230873; + public const int outline = 2131230873; // aapt resource value: 0x7F08009A - public const int outline = 2131230874; + public const int parallax = 2131230874; // aapt resource value: 0x7F08009B - public const int parallax = 2131230875; + public const int parentPanel = 2131230875; // aapt resource value: 0x7F08009C - public const int parentPanel = 2131230876; + public const int parent_matrix = 2131230876; // aapt resource value: 0x7F08009D - public const int parent_matrix = 2131230877; + public const int pin = 2131230877; // aapt resource value: 0x7F08009E - public const int pin = 2131230878; + public const int progress_circular = 2131230878; // aapt resource value: 0x7F08009F - public const int progress_circular = 2131230879; + public const int progress_horizontal = 2131230879; // aapt resource value: 0x7F0800A0 - public const int progress_horizontal = 2131230880; + public const int purchase_button = 2131230880; // aapt resource value: 0x7F0800A1 - public const int purchase_button = 2131230881; + public const int radio = 2131230881; // aapt resource value: 0x7F0800A2 - public const int radio = 2131230882; + public const int right = 2131230882; // aapt resource value: 0x7F0800A3 - public const int right = 2131230883; + public const int right_icon = 2131230883; // aapt resource value: 0x7F0800A4 - public const int right_icon = 2131230884; + public const int right_side = 2131230884; // aapt resource value: 0x7F0800A5 - public const int right_side = 2131230885; + public const int save_non_transition_alpha = 2131230885; // aapt resource value: 0x7F0800A6 - public const int save_non_transition_alpha = 2131230886; + public const int save_overlay_view = 2131230886; // aapt resource value: 0x7F0800A7 - public const int save_overlay_view = 2131230887; + public const int screen = 2131230887; // aapt resource value: 0x7F0800A8 - public const int screen = 2131230888; + public const int scroll = 2131230888; - // aapt resource value: 0x7F0800A9 - public const int scroll = 2131230889; + // aapt resource value: 0x7F0800AC + public const int scrollable = 2131230892; - // aapt resource value: 0x7F0800AD - public const int scrollable = 2131230893; + // aapt resource value: 0x7F0800A9 + public const int scrollIndicatorDown = 2131230889; // aapt resource value: 0x7F0800AA - public const int scrollIndicatorDown = 2131230890; + public const int scrollIndicatorUp = 2131230890; // aapt resource value: 0x7F0800AB - public const int scrollIndicatorUp = 2131230891; + public const int scrollView = 2131230891; - // aapt resource value: 0x7F0800AC - public const int scrollView = 2131230892; + // aapt resource value: 0x7F0800AD + public const int search_badge = 2131230893; // aapt resource value: 0x7F0800AE - public const int search_badge = 2131230894; + public const int search_bar = 2131230894; // aapt resource value: 0x7F0800AF - public const int search_bar = 2131230895; + public const int search_button = 2131230895; // aapt resource value: 0x7F0800B0 - public const int search_button = 2131230896; + public const int search_close_btn = 2131230896; // aapt resource value: 0x7F0800B1 - public const int search_close_btn = 2131230897; + public const int search_edit_frame = 2131230897; // aapt resource value: 0x7F0800B2 - public const int search_edit_frame = 2131230898; + public const int search_go_btn = 2131230898; // aapt resource value: 0x7F0800B3 - public const int search_go_btn = 2131230899; + public const int search_mag_icon = 2131230899; // aapt resource value: 0x7F0800B4 - public const int search_mag_icon = 2131230900; + public const int search_plate = 2131230900; // aapt resource value: 0x7F0800B5 - public const int search_plate = 2131230901; + public const int search_src_text = 2131230901; // aapt resource value: 0x7F0800B6 - public const int search_src_text = 2131230902; - - // aapt resource value: 0x7F0800B7 - public const int search_voice_btn = 2131230903; - - // aapt resource value: 0x7F0800B9 - public const int selected = 2131230905; + public const int search_voice_btn = 2131230902; // aapt resource value: 0x7F0800B8 - public const int select_dialog_listview = 2131230904; + public const int selected = 2131230904; + + // aapt resource value: 0x7F0800B7 + public const int select_dialog_listview = 2131230903; // aapt resource value: 0x7F080004 public const int SHIFT = 2131230724; + // aapt resource value: 0x7F0800B9 + public const int shortcut = 2131230905; + // aapt resource value: 0x7F0800BA - public const int shortcut = 2131230906; + public const int showCustom = 2131230906; // aapt resource value: 0x7F0800BB - public const int showCustom = 2131230907; + public const int showHome = 2131230907; // aapt resource value: 0x7F0800BC - public const int showHome = 2131230908; + public const int showTitle = 2131230908; // aapt resource value: 0x7F0800BD - public const int showTitle = 2131230909; + public const int smallLabel = 2131230909; // aapt resource value: 0x7F0800BE - public const int smallLabel = 2131230910; + public const int snackbar_action = 2131230910; // aapt resource value: 0x7F0800BF - public const int snackbar_action = 2131230911; + public const int snackbar_text = 2131230911; // aapt resource value: 0x7F0800C0 - public const int snackbar_text = 2131230912; + public const int snap = 2131230912; // aapt resource value: 0x7F0800C1 - public const int snap = 2131230913; + public const int snapMargins = 2131230913; // aapt resource value: 0x7F0800C2 - public const int snapMargins = 2131230914; + public const int spacer = 2131230914; // aapt resource value: 0x7F0800C3 - public const int spacer = 2131230915; + public const int split_action_bar = 2131230915; // aapt resource value: 0x7F0800C4 - public const int split_action_bar = 2131230916; + public const int src_atop = 2131230916; // aapt resource value: 0x7F0800C5 - public const int src_atop = 2131230917; + public const int src_in = 2131230917; // aapt resource value: 0x7F0800C6 - public const int src_in = 2131230918; + public const int src_over = 2131230918; // aapt resource value: 0x7F0800C7 - public const int src_over = 2131230919; + public const int standard = 2131230919; // aapt resource value: 0x7F0800C8 - public const int standard = 2131230920; + public const int start = 2131230920; // aapt resource value: 0x7F0800C9 - public const int start = 2131230921; + public const int stretch = 2131230921; // aapt resource value: 0x7F0800CA - public const int stretch = 2131230922; + public const int submenuarrow = 2131230922; // aapt resource value: 0x7F0800CB - public const int submenuarrow = 2131230923; - - // aapt resource value: 0x7F0800CC - public const int submit_area = 2131230924; + public const int submit_area = 2131230923; // aapt resource value: 0x7F080005 public const int SYM = 2131230725; + // aapt resource value: 0x7F0800CC + public const int tabMode = 2131230924; + // aapt resource value: 0x7F0800CD - public const int tabMode = 2131230925; + public const int tag_accessibility_actions = 2131230925; // aapt resource value: 0x7F0800CE - public const int tag_accessibility_actions = 2131230926; + public const int tag_accessibility_clickable_spans = 2131230926; // aapt resource value: 0x7F0800CF - public const int tag_accessibility_clickable_spans = 2131230927; + public const int tag_accessibility_heading = 2131230927; // aapt resource value: 0x7F0800D0 - public const int tag_accessibility_heading = 2131230928; + public const int tag_accessibility_pane_title = 2131230928; // aapt resource value: 0x7F0800D1 - public const int tag_accessibility_pane_title = 2131230929; + public const int tag_screen_reader_focusable = 2131230929; // aapt resource value: 0x7F0800D2 - public const int tag_screen_reader_focusable = 2131230930; + public const int tag_transition_group = 2131230930; // aapt resource value: 0x7F0800D3 - public const int tag_transition_group = 2131230931; + public const int tag_unhandled_key_event_manager = 2131230931; // aapt resource value: 0x7F0800D4 - public const int tag_unhandled_key_event_manager = 2131230932; + public const int tag_unhandled_key_listeners = 2131230932; // aapt resource value: 0x7F0800D5 - public const int tag_unhandled_key_listeners = 2131230933; + public const int text = 2131230933; // aapt resource value: 0x7F0800D6 - public const int text = 2131230934; + public const int text2 = 2131230934; - // aapt resource value: 0x7F0800D7 - public const int text2 = 2131230935; + // aapt resource value: 0x7F0800DB + public const int textinput_counter = 2131230939; // aapt resource value: 0x7F0800DC - public const int textinput_counter = 2131230940; + public const int textinput_error = 2131230940; // aapt resource value: 0x7F0800DD - public const int textinput_error = 2131230941; + public const int textinput_helper_text = 2131230941; - // aapt resource value: 0x7F0800DE - public const int textinput_helper_text = 2131230942; + // aapt resource value: 0x7F0800D7 + public const int textSpacerNoButtons = 2131230935; // aapt resource value: 0x7F0800D8 - public const int textSpacerNoButtons = 2131230936; + public const int textSpacerNoTitle = 2131230936; // aapt resource value: 0x7F0800D9 - public const int textSpacerNoTitle = 2131230937; + public const int textStart = 2131230937; // aapt resource value: 0x7F0800DA - public const int textStart = 2131230938; + public const int text_input_password_toggle = 2131230938; - // aapt resource value: 0x7F0800DB - public const int text_input_password_toggle = 2131230939; + // aapt resource value: 0x7F0800DE + public const int time = 2131230942; // aapt resource value: 0x7F0800DF - public const int time = 2131230943; + public const int title = 2131230943; // aapt resource value: 0x7F0800E0 - public const int title = 2131230944; + public const int titleDividerNoCustom = 2131230944; // aapt resource value: 0x7F0800E1 - public const int titleDividerNoCustom = 2131230945; + public const int title_template = 2131230945; // aapt resource value: 0x7F0800E2 - public const int title_template = 2131230946; + public const int toolbar = 2131230946; // aapt resource value: 0x7F0800E3 - public const int toolbar = 2131230947; + public const int top = 2131230947; // aapt resource value: 0x7F0800E4 - public const int top = 2131230948; + public const int topPanel = 2131230948; // aapt resource value: 0x7F0800E5 - public const int topPanel = 2131230949; + public const int touch_outside = 2131230949; // aapt resource value: 0x7F0800E6 - public const int touch_outside = 2131230950; + public const int transition_current_scene = 2131230950; // aapt resource value: 0x7F0800E7 - public const int transition_current_scene = 2131230951; + public const int transition_layout_save = 2131230951; // aapt resource value: 0x7F0800E8 - public const int transition_layout_save = 2131230952; + public const int transition_position = 2131230952; // aapt resource value: 0x7F0800E9 - public const int transition_position = 2131230953; + public const int transition_scene_layoutid_cache = 2131230953; // aapt resource value: 0x7F0800EA - public const int transition_scene_layoutid_cache = 2131230954; + public const int transition_transform = 2131230954; // aapt resource value: 0x7F0800EB - public const int transition_transform = 2131230955; + public const int udl_text_view = 2131230955; // aapt resource value: 0x7F0800EC public const int @unchecked = 2131230956; diff --git a/XamarinSample/Resources/layout/content_main.xml b/XamarinSample/Resources/layout/content_main.xml index 65b6d42..7639683 100644 --- a/XamarinSample/Resources/layout/content_main.xml +++ b/XamarinSample/Resources/layout/content_main.xml @@ -1,11 +1,16 @@ - + + android:text="onDeepLinking" /> \ No newline at end of file diff --git a/XamarinSample/XamarinSample.csproj b/XamarinSample/XamarinSample.csproj index e42831b..63e1264 100644 --- a/XamarinSample/XamarinSample.csproj +++ b/XamarinSample/XamarinSample.csproj @@ -17,7 +17,7 @@ Resources\Resource.designer.cs Resource Off - v9.0 + v10.0 Properties\AndroidManifest.xml Resources Assets @@ -65,6 +65,7 @@ + @@ -123,15 +124,15 @@ 1.0.0.1 - - 6.2.0 - 71.1610.4 71.1740.4 + + 6.3.1 +