Skip to content

Network module

  • Enum: AffiseModules.NETWORK (lib/module/affise_modules.dart:10)
  • Native key: "Network" (lib/module/affise_modules.dart:39)

README 812-817 — collects MAC address hashes, connection type, and proxy IP for attribution on Android.

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_network

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_network: ^1.7.16

The package does not expose a Dart API of its own — it only pulls in the native module dependency:

  • Android: com.affise:module-network:1.7.16

Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.

Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):

implementation "com.affise:module-network:$affise_version"
  • MAC_SHA1 — native key "mac_sha1" (lib/parameters/provider_type.dart:114, native key at :346)
  • MAC_MD5 — native key "mac_md5" (:115, :348)
  • CONNECTION_TYPE — native key "connection_type" (:116, :350)
  • PROXY_IP_ADDRESS — native key "proxy_ip_address" (:117, :352)