Explorar el Código

变更获取utdid的方式

tags/0.0.13
“yanghuaxuan” hace 3 años
padre
commit
ef688691e1
Se han modificado 3 ficheros con 13 adiciones y 3 borrados
  1. +3
    -2
      android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java
  2. +9
    -0
      android/src/main/java/com/wxwx/flutter_alibc/Params.java
  3. +1
    -1
      example/.flutter-plugins-dependencies

+ 3
- 2
android/src/main/java/com/wxwx/flutter_alibc/FlutterAlibcHandle.java Ver fichero

@@ -19,6 +19,7 @@ import java.util.HashMap;

import android.app.AlertDialog;

import static com.ali.auth.third.core.context.KernelContext.getApplicationContext;
import static com.wxwx.flutter_alibc.PluginConstants.*;
import static com.wxwx.flutter_alibc.PluginUtil.*;

@@ -490,8 +491,8 @@ public class FlutterAlibcHandle {
// AlibcTradeSDK.setShouldUseAlipay(call.argument("isNeed"));
}

public void getUdid(MethodCall call,Result result1) {
String udid = UTDevice.getUtdid(register.activity().getApplicationContext());
public void getUdid(MethodCall call, Result result1) {
String udid = UTDevice.getUtdid(getApplicationContext());
Map<String, String> resMap = new HashMap();
resMap.put("udid", udid);
result1.success(resMap);


+ 9
- 0
android/src/main/java/com/wxwx/flutter_alibc/Params.java Ver fichero

@@ -0,0 +1,9 @@
package com.wxwx.flutter_alibc;

import com.ut.device.UTDevice;

import static com.ali.auth.third.core.context.KernelContext.getApplicationContext;

public class Params {
static String udid = UTDevice.getUtdid(getApplicationContext());
}

+ 1
- 1
example/.flutter-plugins-dependencies Ver fichero

@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_alibc","path":"D:\\\\zy_project\\\\zhiying_flutter_alibc\\\\","dependencies":[]}],"android":[{"name":"flutter_alibc","path":"D:\\\\zy_project\\\\zhiying_flutter_alibc\\\\","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_alibc","dependencies":[]}],"date_created":"2021-04-09 09:35:59.437953","version":"1.22.1"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"flutter_alibc","path":"/Users/fnuser02/Documents/fnuoProject/yeying/zhiying_flutter_alibc/","dependencies":[]}],"android":[{"name":"flutter_alibc","path":"/Users/fnuser02/Documents/fnuoProject/yeying/zhiying_flutter_alibc/","dependencies":[]}],"macos":[],"linux":[],"windows":[],"web":[]},"dependencyGraph":[{"name":"flutter_alibc","dependencies":[]}],"date_created":"2021-04-12 09:20:15.514784","version":"1.22.1"}

Cargando…
Cancelar
Guardar