42 lines
1011 B
Dart
42 lines
1011 B
Dart
/// Created by Haoyi on 2022/12/22
|
|
|
|
part of "../app_property.dart";
|
|
|
|
extension AnalyticsPropertyExtension on AppProperty {
|
|
Future setAdId(String adId) async {
|
|
if (adId.isNotEmpty) {
|
|
await setString(PropertyKeys.analyticsAdId, adId);
|
|
}
|
|
}
|
|
|
|
Future setFirebaseId(String firebaseId) async {
|
|
if (firebaseId.isNotEmpty) {
|
|
await setString(PropertyKeys.analyticsFirebaseId, firebaseId);
|
|
}
|
|
}
|
|
|
|
Future setAdjustId(String adjustId) async {
|
|
if (adjustId.isNotEmpty) {
|
|
await setString(PropertyKeys.analyticsAdjustId, adjustId);
|
|
}
|
|
}
|
|
|
|
Future setAnalyticsDeviceId(String deviceId) async {
|
|
if (deviceId.isNotEmpty) {
|
|
await setString(PropertyKeys.analyticsDeviceId, deviceId);
|
|
}
|
|
}
|
|
|
|
Future setUserId(String userId) async {
|
|
if (userId.isNotEmpty) {
|
|
await setString(PropertyKeys.analyticsUserId, userId);
|
|
}
|
|
}
|
|
|
|
Future setIdfa(String idfa) async {
|
|
if (idfa.isNotEmpty) {
|
|
await setString(PropertyKeys.analyticsIdfa, idfa);
|
|
}
|
|
}
|
|
}
|