Ageledger 0.1.0-preview.3
Prefix Reserveddotnet add package Ageledger --version 0.1.0-preview.3
NuGet\Install-Package Ageledger -Version 0.1.0-preview.3
<PackageReference Include="Ageledger" Version="0.1.0-preview.3" />
<PackageVersion Include="Ageledger" Version="0.1.0-preview.3" />
<PackageReference Include="Ageledger" />
paket add Ageledger --version 0.1.0-preview.3
#r "nuget: Ageledger, 0.1.0-preview.3"
#:package Ageledger@0.1.0-preview.3
#addin nuget:?package=Ageledger&version=0.1.0-preview.3&prerelease
#tool nuget:?package=Ageledger&version=0.1.0-preview.3&prerelease
Ageledger
One neutral .NET API over the age signals the two mobile platforms provide, plus a minimal local log of the decisions an app made.
- Android: wraps Google Play Age Signals through the
Xamarin.Google.Android.Play.Age.Signalsbinding. - iOS: a thin Swift wrapper over Apple's DeclaredAgeRange:
requestAgeRange,isEligibleForAgeFeatures,requiredRegulatoryFeaturesandshowSignificantUpdateAcknowledgment. - Decision log: exactly five fields (
timestampUtc,ageBucket,decision,appVersion,ruleId), kept locally. No birthdates and no install, account or device identifiers. - Tests: fakes for both platforms are in the separate
Ageledger.Testingpackage, so they stay out of your app. - Off by default: nothing happens until the app sets
AgeSignalsOptions.Enabled = true.
This package supplies a platform signal and a log. It does not make an app compliant with any law and is not legal advice. The default decision policy is a placeholder; the app owner sets the real one.
Install
dotnet add package Ageledger --prerelease
Then register it in a MAUI app (Enabled is false until you set it; AddAgeledger is in the Microsoft.Extensions.DependencyInjection namespace, so it needs no extra using):
builder.Services.AddAgeledger(o =>
{
o.Enabled = true;
o.AppVersion = "1.4.2";
o.RuleId = "gate-v1";
o.RequestTimeout = TimeSpan.FromMinutes(2); // Apple's sheet and Google's consent screen can wait indefinitely
});
#if ANDROID
builder.Services.AddAgeledgerActivity(() => Microsoft.Maui.ApplicationModel.Platform.CurrentActivity);
#endif
Resolve AgeSignalsService from the container and await service.EvaluateAsync() once a page is showing. The full quick start, the options and the decision each state gives are in the README.
- iOS: the Declared Age Range capability on the App ID, a profile that grants it, and the entitlement
com.apple.developer.declared-age-rangein anEntitlements.plistthat the app's.csprojpoints to with<CodesignEntitlements>for device builds only (the README shows the property group). An app built with the iOS 27.1 SDK crashed at launch without UIScene adoption on iOS 27.0.1 (observed with the sample; see the README). The package installs on iOS 15.0 and later, but the platform signal exists from iOS 26.0; below that the service reportsUnavailable/NotAvailable. - Android: API 23 or later with the Play Store and Play Services. A sideloaded debug build returned
NotSharedin the project's own run (one phone); real age ranges were not observed.AddAgeledgerActivityis required: with the service enabled and no activity registered, creating the service throwsInvalidOperationException.
For tests, add Ageledger.Testing to a test project only, on the same version: dotnet add package Ageledger.Testing --prerelease.
Links
- Usage, API and requirements
- Decision log format
- Retention notes
- Device test results and what is unverified
- Changelog
Licensed under the Apache License, Version 2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
-
net10.0-android36.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.0)
- Xamarin.AndroidX.Lifecycle.LiveData.Core (>= 2.11.0.1)
- Xamarin.Google.Android.Play.Age.Signals (>= 0.0.4)
-
net10.0-ios26.0
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Ageledger:
| Package | Downloads |
|---|---|
|
Ageledger.Testing
Test doubles for Ageledger: fake Android and Apple backends for unit tests that run on plain .NET, with no device and no platform SDK. For tests only; do not ship it in an app. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-preview.3 | 68 | 11/14/2026 |
| 0.1.0-preview.2 | 74 | 10/30/2026 |
| 0.1.0-preview.1 | 79 | 10/27/2026 |