XamarinPlayCoreUpdater icon indicating copy to clipboard operation
XamarinPlayCoreUpdater copied to clipboard

Play Core library getting split! Future of In-App Reviews

Open saamerm opened this issue 3 years ago • 3 comments

@PatGet as you might be aware, the play core library monolith is getting split into individual libraries!

The Google Play Core Java and Kotlin library have been split into multiple separate libraries, one for each feature. Please update to following new libraries to benefit from new product additions: Play Asset Delivery Library Play Feature Delivery Library Play In-App Reviews Library Play In-App Updates Library See migration guide for more information. The monolithic library will not receive future updates or bug fixes.

https://developer.android.com/reference/com/google/android/play/core/release-notes-in_app_reviews

Would you like to take the lead and create a Xamarin nuget for each? Or should I go ahead and just create the "In App Review" one? Please let me know!

saamerm avatar May 23 '22 01:05 saamerm

Hey @saamerm , while we shortly talked on Twitter Chat... Did you try the official Bindings like Xamarin.Google.Android.Play.App.Update or Xamarin.Google.Android.Play.Review ? As far as I have seen you have also not worked on or updated anything yet, right?

PatGet avatar Dec 22 '22 21:12 PatGet

@PatGet when I last looked at it, there was no new bindings anyone had, so I tried to create ones myself but I had a hard time. I will try these and let you know when I get a chance! If you have, let me know

saamerm avatar Jan 18 '23 00:01 saamerm

We recently implemented this in MAUI, the use is as simple as possible in one line, maybe it will help someone:

  • Add NuGet package to your project:
<PackageReference Include="Oscore.Maui.Android.InAppUpdates" Version="1.0.0" />
  • Add the following to your MauiProgram.cs CreateMauiApp method:
builder
    .UseMauiApp<App>()
+   .UseAndroidInAppUpdates()
    .ConfigureFonts(fonts =>
    {
        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
        fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
    });

https://github.com/oscoreio/Maui.Android.InAppUpdates

Also thank you very much for this package, it helped me in implementation along with the official documentation

HavenDV avatar Jan 03 '24 00:01 HavenDV