Skip to content

AgeGatingKit Flutter v1.0.0

Choose a tag to compare

@Sritejathuraka Sritejathuraka released this 18 Aug 19:00
· 8 commits to main since this release

AgeGatingKit Flutter v1.0.0

AgeGatingKit is a cross-platform Flutter plugin that provides a unified API for integrating platform-provided age assurance and age-gating capabilities on iOS and Android.

This is the first public release of the AgeGatingKit Flutter plugin.

The plugin provides a Flutter-friendly abstraction over Apple's age-related APIs and Android's age signals, allowing applications to make age-appropriate access decisions while keeping platform-specific implementation details behind a consistent Dart API.


✨ Features

Cross-Platform Age Gating

Use a single Flutter API to retrieve age-related signals from the underlying platform.

AgeGatingKit handles the communication between Flutter and the native iOS and Android implementations.

🍎 iOS Support

Integration with Apple's age-related APIs, including:

  • Declared Age Range
  • Age feature eligibility
  • Regulatory feature information
  • Parental consent requests
  • Significant app update / adult notification flows

The plugin exposes the platform-provided results to Flutter so applications can apply their own age-gating and access policies.

🤖 Android Support

Integration with Android age signals to retrieve available age-related information and regulatory requirements.

The Android implementation exposes the platform response through the same Flutter API used by iOS.

👨‍👩‍👧 Parental Consent

Applications can initiate the supported parental consent flow when the platform indicates that parental authorization is required.

🔔 Adult Notification / Significant Changes

Applications can trigger the supported platform flow for notifying an adult or acknowledging significant application changes when required.

🛡️ Regulatory Feature Reporting

AgeGatingKit exposes regulatory feature information returned by the underlying platform so applications can determine whether additional actions are required.


📦 Installation

Add AgeGatingKit to your Flutter project's pubspec.yaml:

dependencies:
  age_gating_kit: ^1.0.0

Then install the dependency:

flutter pub get

Import the package:

import 'package:age_gating_kit/age_gating_kit.dart';

🚀 Basic Usage

Use AgeGatingKit to request the available age-gating information from the current platform.

final result = await AgeGatingKit.checkAgeGate();

The returned result can be used by your application to determine the appropriate experience based on the age information and regulatory features provided by the operating system.

The exact information available depends on the platform, OS version, account configuration, region, and platform eligibility.


🔐 Privacy

AgeGatingKit is designed to rely on age-related signals provided by the operating system rather than requiring applications to directly collect a user's date of birth.

The library does not provide its own identity verification service and does not independently determine a user's age.

Developers are responsible for determining how platform-provided signals should be used within their application and for complying with applicable laws, platform policies, and regulatory requirements.


📱 Supported Platforms

Platform Support
iOS ✅ Supported
Android ✅ Supported
Flutter ✅ Unified API

Some functionality depends on platform APIs and may only be available on supported operating-system versions and eligible accounts/devices.


⚠️ Important

AgeGatingKit provides an abstraction over platform-provided age signals.

It does not guarantee regulatory compliance by itself.

Applications integrating the library are responsible for:

  • Defining their own age-gating policies
  • Handling unavailable or indeterminate age signals
  • Applying appropriate access restrictions
  • Handling parental consent requirements
  • Following Apple and Google platform requirements
  • Complying with applicable laws and regulations

📖 Documentation

See the repository README for installation instructions, platform configuration, API usage, and implementation examples.


📝 Release

Version: 1.0.0
Flutter tag: flutter-v1.0.0

This release introduces the initial Flutter implementation of AgeGatingKit for iOS and Android.


📄 License

AgeGatingKit is available under the MIT License.