Implement BmcSupporterService to verify supporters via BMC API with configurable caching. Add SupporterEmail and HideIfSupporter properties to all controls to automatically hide donation prompts for existing supporters. Replace PNG logo with SVG for crisp rendering at all scales. Add BmcOptions and BmcConfiguration for library-wide settings. Bump version to 1.1.0.
16 lines
460 B
C#
16 lines
460 B
C#
using BuyMeCofee.Maui.Services;
|
|
|
|
namespace BuyMeCofee.Maui;
|
|
|
|
/// <summary>
|
|
/// Static configuration holder for the Buy Me a Coffee library.
|
|
/// Populated by <see cref="BuyMeACoffeeExtensions.UseBuyMeACoffee"/>.
|
|
/// </summary>
|
|
public static class BmcConfiguration
|
|
{
|
|
/// <summary>
|
|
/// The supporter lookup service. Null if no AccessToken was configured.
|
|
/// </summary>
|
|
public static BmcSupporterService? SupporterService { get; internal set; }
|
|
}
|