Limited
2
0

feat(ci): add supporter verification and auto-hide functionality
Some checks failed
Release / Verify Apple Build (push) Successful in 14s
Release / Build & Pack (push) Successful in 8h59m34s
Release / Publish (push) Failing after 16s

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.
This commit is contained in:
2026-03-04 00:35:05 -05:00
parent 7ec645b9a6
commit 66c8ec8ecf
12 changed files with 436 additions and 329 deletions

View File

@@ -0,0 +1,18 @@
namespace BuyMeCofee.Maui;
/// <summary>
/// Configuration options for the Buy Me a Coffee library.
/// </summary>
public class BmcOptions
{
/// <summary>
/// Your Buy Me a Coffee API access token (from https://developers.buymeacoffee.com).
/// Required for supporter verification. This is the creator's token.
/// </summary>
public string? AccessToken { get; set; }
/// <summary>
/// How long to cache the supporter list before re-fetching. Default: 1 hour.
/// </summary>
public TimeSpan CacheDuration { get; set; } = TimeSpan.FromHours(1);
}