:library:integration:gms
Purpose
Exposes installed Google Play services metadata through a main-safe repository.
Owns
GooglePlayServicesRepositoryandDefaultGooglePlayServicesRepository.googlePlayServicesModule, which binds one repository using the host context andDispatcherProvider.The package lookup for
com.google.android.gms, including version-name and version-code fallback.
Does not own
About screen rendering or assembly of host application metadata.
Firebase, advertising, consent, or other Google SDK lifecycles.
Depends on
:library:core:commonfor dispatcher and DI infrastructure. No Google SDK dependency is required.
Used by
:library:feature:aboutto assembleAboutInfo.:library:apptoolkit, which exports the module and includes its Koin binding inappToolkitFoundationModules.
Architectural decisions
The repository reads PackageManager on the injected IO dispatcher. Callers do not switch dispatchers. It retains the application PackageManager rather than an activity context.
Public contracts
suspend GooglePlayServicesRepository.getVersion(): String?: the installed version name, the decimal version code when the name is null, or null when the package is absent or not visible to the host.Unexpected platform failures propagate; cancellation is not converted into an absent package.
Standalone consumers load
googlePlayServicesModuleand supply a context andDispatcherProvider. Hosts usingappToolkitModulesalready receive the binding.
Internal implementations
Android package lookup uses the typed flags API from API 33 and the long version code from API 28.
Current risks
Package visibility can affect whether Android exposes Google Play services. A null result describes the package lookup, not a check of whether every Google API is usable.