feat(age-signals): add DECLARED status, ageRangeDeclaration, and SDK_VERSION_OUTDATED error#811
Open
feat(age-signals): add DECLARED status, ageRangeDeclaration, and SDK_VERSION_OUTDATED error#811
DECLARED status, ageRangeDeclaration, and SDK_VERSION_OUTDATED error#811Conversation
…`SDK_VERSION_OUTDATED` error
@capawesome/capacitor-age-signals
@capawesome-team/capacitor-android-battery-optimization
@capawesome/capacitor-android-dark-mode-support
@capawesome/capacitor-android-edge-to-edge-support
@capawesome-team/capacitor-android-foreground-service
@capawesome/capacitor-app-review
@capawesome/capacitor-app-shortcuts
@capawesome/capacitor-app-update
@capawesome/capacitor-apple-sign-in
@capawesome/capacitor-asset-manager
@capawesome/capacitor-background-task
@capawesome/capacitor-badge
@capawesome/capacitor-cloudinary
@capawesome-team/capacitor-datetime-picker
@capawesome-team/capacitor-file-opener
@capawesome/capacitor-file-picker
@capawesome/capacitor-google-sign-in
@capawesome/capacitor-libsql
@capawesome/capacitor-live-update
@capawesome/capacitor-managed-configurations
@capawesome/capacitor-photo-editor
@capawesome/capacitor-pixlive
@capawesome/capacitor-posthog
@capawesome/capacitor-realtimekit
@capawesome/capacitor-screen-orientation
@capawesome/capacitor-screenshot
@capawesome/capacitor-square-mobile-payments
@capawesome/capacitor-superwall
@capawesome/capacitor-torch
commit: |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds new age-signal surface area to the @capawesome/capacitor-age-signals plugin to support the latest Play Age Signals SDK updates on Android and expose age range declaration metadata on iOS.
Changes:
- Add
UserStatus.DECLAREDandErrorCode.SDK_VERSION_OUTDATEDto the public TypeScript API and update Android mappings/error handling accordingly. - Add
ageRangeDeclarationto iOSCheckAgeSignalsResult(plus a newAgeRangeDeclarationenum) and include it in the JS payload when available. - Bump Android Play Age Signals dependency from
0.0.2→0.0.3and document the new API surface.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/age-signals/src/definitions.ts | Extends TS API with ageRangeDeclaration, DECLARED status, and SDK_VERSION_OUTDATED error code. |
| packages/age-signals/ios/Plugin/Enums/UserStatus.swift | Adds DECLARED case to iOS-side user status enum. |
| packages/age-signals/ios/Plugin/Enums/AgeRangeDeclaration.swift | Introduces iOS-side AgeRangeDeclaration enum for JS serialization. |
| packages/age-signals/ios/Plugin/Classes/Results/CheckAgeSignalsResult.swift | Adds ageRangeDeclaration to iOS result object and JS conversion. |
| packages/age-signals/ios/Plugin/AgeSignals.swift | Maps iOS ageRangeDeclaration from DeclaredAgeRange response when available. |
| packages/age-signals/ios/Plugin.xcodeproj/project.pbxproj | Wires new Swift enum file into the Xcode project build. |
| packages/age-signals/android/.../enums/UserStatus.java | Adds DECLARED to Android enum. |
| packages/age-signals/android/.../results/CheckAgeSignalsResult.java | Replaces ordinal-based mapping with explicit integer-to-enum mapping. |
| packages/age-signals/android/.../options/SetNextAgeSignalsResultOptions.java | Maps DECLARED to the SDK’s verification status for the fake manager. |
| packages/age-signals/android/.../options/SetNextAgeSignalsExceptionOptions.java | Adds mapping for SDK_VERSION_OUTDATED error code in fake exceptions. |
| packages/age-signals/android/.../classes/CustomExceptions.java | Defines SDK_VERSION_OUTDATED custom exception. |
| packages/age-signals/android/.../AgeSignals.java | Maps status code 25010 to SDK_VERSION_OUTDATED. |
| packages/age-signals/android/build.gradle | Bumps com.google.android.play:age-signals to 0.0.3. |
| packages/age-signals/README.md | Updates dependency version docs and documents new TS API fields/enums. |
| .changeset/neat-bugs-move.md | Adds a changeset entry for the new feature. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...java/io/capawesome/capacitorjs/plugins/agesignals/classes/results/CheckAgeSignalsResult.java
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DECLAREDuser status for Android (Play Age Signals API v0.0.3)ageRangeDeclarationproperty (selfDeclared/guardianDeclared) toCheckAgeSignalsResultfor iOSSDK_VERSION_OUTDATEDerror code for AndroidandroidPlayAgeSignalsVersionfrom0.0.2to0.0.3mapUserStatuswith explicit switch statement to decouple from enum orderingTest plan
AgeRangeDeclarationenumDECLAREDstatus is correctly returned on AndroidageRangeDeclarationis correctly returned on iOS 26.2+SDK_VERSION_OUTDATEDerror code mapping on AndroidDECLAREDstatus andSDK_VERSION_OUTDATEDerror