yic_attribution_plugin 0.0.2+3 copy "yic_attribution_plugin: ^0.0.2+3" to clipboard
yic_attribution_plugin: ^0.0.2+3 copied to clipboard

内部使用归因插件

yic_attribution_plugin #

Flutter plugin for BDASignalSDK (iOS only).

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Usage #

import 'package:yic_attribution_plugin/yic_attribution_plugin.dart';

final bda = BDASignalPlugin();

await bda.registerOptionalData({});
await bda.enableIdfa(true);
await bda.enableDelayUpload();
await bda.startSendingEvents();
final clickId = await bda.getClickId();
await bda.trackPurchase(2334);

final gdt = GDTActionPlugin();
await gdt.initialize(
  actionSetId: 'yourActionSetId',
  secretKey: 'yourSecretKey',
);
await gdt.start();
await gdt.trackStartApp();
await gdt.trackEvent(name: 'CUSTOM_EVENT', params: {'k': 'v'});
await gdt.reportPurchaseAction(
  type: '皮肤',
  name: '高级皮肤',
  contentId: 'skin_001',
  number: 1,
  channel: 'wechat',
  realCurrency: 'CNY',
  amount: 68,
  isSuccess: true,
);

iOS Integration #

The iOS side is wired for pod 'BDASignalSDK' in yic_attribution_plugin/ios/yic_attribution_plugin.podspec.

GDTAction SDK is added as a static library under ios/Frameworks with headers under ios/Headers, and -ObjC is applied via user_target_xcconfig.

0
likes
0
points
63
downloads

Publisher

unverified uploader

Weekly Downloads

内部使用归因插件

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on yic_attribution_plugin

Packages that implement yic_attribution_plugin