Skip to content

0.8.0

Latest

Choose a tag to compare

@zigapovhe zigapovhe released this 29 Jul 11:47
· 7 commits to main since this release
da3b2e9

Migrates Android to Play age-signals 0.0.4, which removed the library's userStatus. Reading age signals is now two calls, and status is derived from the reported age band measured against your highest age gate rather than from the assurance tier.

Thanks to @syntaxticsugr, who did the 0.0.4 migration in #34 and reviewed the merged result in #35.

Breaking

  • status now comes from the reported age band, not the assurance tier. Pass ageGates on Android too; it uses 18 until you do.
  • AgeSignalsStatus.declared is deprecated and no longer returned; read ageRangeSource == AgeRangeSource.tierA instead.
  • Renamed mostRecentApprovalDate to significantChangeApprovalDate, matching the upstream rename. The old name still works as a deprecated alias, and fromMap accepts the old key.
  • useMockData: true now throws MockDataNotAllowedException outside debuggable builds.
  • AgeSignalsStatus and AgeDeclarationSource gained values, so exhaustive switches need new cases.

New

  • requestAgeSignalsAccess(), the first of the two calls. Returns shared, notShared or verificationRequired. On iOS it returns shared, since Apple gathers consent inside checkAgeSignals().
  • AgeSignalsResult.ageRangeSource (tierA-tierD) and significantChangeStatus.

Migrating

See Migrating to 0.8.0 for the before and after, plus notes for 0.6.x and 0.5.x.

Full changelog: 0.7.0...0.8.0