Skip to content

sunilsolanki-alight/MauiStoreInfo

 
 

Repository files navigation

Store Info for Xamarin.Forms & .NET MAUI PayPal donate button

Store Info for Xamarin Forms and .NET MAUI has a mechanism to extract the current information of your app in store (playstore/appstore) using the package name/bundle id. Install this in your PCL and platform specific projects.

CI Build Security Scan Code Quality NuGet

Nuget: https://www.nuget.org/packages/Plugin.StoreInfo/

Sample: https://github.com/mecvillarina/StoreInfo/tree/master/sample

Usage:

You have the option to use your DI/IOC container

containerRegistry.RegisterInstance<IStoreInfo>(CrossStoreInfo.Current);

Get installed version number

Gets the version number of the current app's installed version.

string versionNumber = await CrossStoreInfo.Current.InstalledVersionNumber;

Get latest app information

Gets the information of the current app's latest version available in the public store.

var appStoreInfo = await CrossStoreInfo.Current.GetAppInfo();

Gets the information of an app's latest version available in the public store.

var appStoreInfo = await CrossStoreInfo.Current.GetAppInfo(appName);
  • appName should be the app's bundle identifier (CFBundleIdentifier) on iOS and the app's package name on Android.

Get latest version number

Get the version number of the current running app's latest version available in the public store:

string latestVersionNumber = await CrossStoreInfo.Current.GetLatestVersionNumber();

Get the version number of any app's latest version available in the public store:

string latestVersionNumber = await CrossStoreInfo.Current.GetLatestVersionNumber("appName");
  • appName should be the app's bundle identifier (CFBundleIdentifier) on iOS and the app's package name on Android.

Open app in public store

Open the current running app in the public store:

await CrossStoreInfo.Current.OpenAppInStore();

Open any app in the public store:

await CrossStoreInfo.Current.OpenAppInStore("appName");
  • appName should be the app's bundle identifier (CFBundleIdentifier) on iOS and the app's package name on Android.

CI/CD Pipeline

This project uses a comprehensive CI/CD pipeline powered by GitHub Actions for automated building, testing, and deployment.

Workflows

  • CI Build: Automated builds for Android, iOS, Windows, and Xamarin platforms
  • PR Validation: Quick validation checks for pull requests
  • Release & Publish: Automated NuGet package creation and publishing
  • Security Scan: Regular security vulnerability scanning
  • Code Quality: Code formatting and linting checks

For Developers

Before committing code, ensure:

# Format code
dotnet format src/StoreInfoPlugin.sln

# Build and verify
dotnet build src/StoreInfoPlugin.sln -c Release

Documentation

License

The Apache License 2.0 see License file

About

Store Info Plugin for Xamarin Forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%