Ageledger 0.1.0-preview.3

Prefix Reserved
This is a prerelease version of Ageledger.
dotnet add package Ageledger --version 0.1.0-preview.3
                    
NuGet\Install-Package Ageledger -Version 0.1.0-preview.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ageledger" Version="0.1.0-preview.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ageledger" Version="0.1.0-preview.3" />
                    
Directory.Packages.props
<PackageReference Include="Ageledger" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ageledger --version 0.1.0-preview.3
                    
#r "nuget: Ageledger, 0.1.0-preview.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ageledger@0.1.0-preview.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ageledger&version=0.1.0-preview.3&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Ageledger&version=0.1.0-preview.3&prerelease
                    
Install as a Cake Tool

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.Signals binding.
  • iOS: a thin Swift wrapper over Apple's DeclaredAgeRange: requestAgeRange, isEligibleForAgeFeatures, requiredRegulatoryFeatures and showSignificantUpdateAcknowledgment.
  • 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.Testing package, 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-range in an Entitlements.plist that the app's .csproj points 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 reports Unavailable / NotAvailable.
  • Android: API 23 or later with the Play Store and Play Services. A sideloaded debug build returned NotShared in the project's own run (one phone); real age ranges were not observed. AddAgeledgerActivity is required: with the service enabled and no activity registered, creating the service throws InvalidOperationException.

For tests, add Ageledger.Testing to a test project only, on the same version: dotnet add package Ageledger.Testing --prerelease.

Licensed under the Apache License, Version 2.0.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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