Huawei module
- Enum:
AffiseModules.HUAWEI(lib/module/affise_modules.dart:16) - Native key:
"Huawei"(lib/module/affise_modules.dart:53)
Purpose
Section titled “Purpose”README 803-806, 1650 — Huawei OAID and AppGallery install referrer collection.
Platform
Section titled “Platform”Install
Section titled “Install”flutter pub add affise_attribution_libflutter pub add affise_attribution_module_huaweior add the dependency to pubspec.yaml:
dependencies: affise_attribution_lib: ^1.7.16 affise_attribution_module_huawei: ^1.7.16The package does not expose a Dart API of its own — it only pulls in the native module dependency:
- Android:
com.affise:module-huawei:1.7.16
Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.
Native setup — alternative (Android)
Section titled “Native setup — alternative (Android)”Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):
implementation "com.affise:module-huawei:$affise_version"Example — read OAID via providers map
Section titled “Example — read OAID via providers map”Affise.getProviders().then((providers) { var oaid = providers[ProviderType.OAID];});ProviderType.OAID is declared at lib/parameters/provider_type.dart:97.
Install referrer
Section titled “Install referrer”“To get Install referrer by installing from Android AppGallery include module Huawei”
README 1662
See Referrer for the full API.
ProviderType contributions
Section titled “ProviderType contributions”OAID— native key"oaid"(lib/parameters/provider_type.dart:97, native key at:318)OAID_MD5— native key"oaid_md5"(:98,:320)REFERRER_UPDATED— per CHANGELOG 1.6.52: “ProviderREFERRER_UPDATEDfor modulesHuawei,RuStore”