zk 9 месяцев назад
Родитель
Сommit
9b56bdbaf9
3 измененных файлов с 22 добавлено и 2 удалено
  1. 4 0
      lib/device/platform_android_info.dart
  2. 9 0
      pubspec.lock
  3. 9 2
      pubspec.yaml

+ 4 - 0
lib/device/platform_android_info.dart

@@ -3,6 +3,7 @@ import 'dart:io';
 import 'package:device_info_plus/device_info_plus.dart';
 import 'package:electronic_assistant/device/atmob_platform_info.dart';
 import 'package:android_id/android_id.dart';
+import 'package:oaid/oaid.dart';
 
 class PlatformAndroidInfo {
   static Future<void> init() async {
@@ -14,6 +15,9 @@ class PlatformAndroidInfo {
           .setAndroidId(deviceId)
           .setBrand(androidInfo.brand)
           .setModel(androidInfo.model);
+
+      String? oaid = await Oaid.getOaid();
+      atmobPlatformInfo.setOaid(oaid);
     }
   }
 }

+ 9 - 0
pubspec.lock

@@ -1030,6 +1030,15 @@ packages:
       url: "https://pub.dev"
     source: hosted
     version: "0.5.0"
+  oaid:
+    dependency: "direct main"
+    description:
+      path: "."
+      ref: "v0.0.1"
+      resolved-ref: "3c910cfad7c17dfc0eb70b869346b645fae67339"
+      url: "http://git.atmob.com:28999/Atmob-Flutter/Oaid.git"
+    source: git
+    version: "0.0.1"
   octo_image:
     dependency: transitive
     description:

+ 9 - 2
pubspec.yaml

@@ -64,7 +64,7 @@ dependencies:
   archive: ^3.6.1
 
   #录音
-  flutter_sound: ^9.16.3
+  flutter_sound: 9.16.3
 
   #权限申请
   permission_handler: ^11.3.1
@@ -85,7 +85,7 @@ dependencies:
   flutter_widget_from_html: ^0.15.2
 
   #前台任务
-  flutter_foreground_task: ^8.8.1+1
+  flutter_foreground_task: 8.13.0
 
   #获取设备信息
   device_info_plus: ^10.1.2
@@ -156,6 +156,13 @@ dependencies:
   chewie: ^1.8.5
   video_player: ^2.9.2
 
+  #oaid
+  oaid:
+    git:
+      url: http://git.atmob.com:28999/Atmob-Flutter/Oaid.git
+      ref: v0.0.1
+
+
 dev_dependencies:
   flutter_test:
     sdk: flutter