|
@@ -80,11 +80,11 @@ class SdkBridgeImpl(context: Context) {
|
|
if (code == 0) {
|
|
if (code == 0) {
|
|
Logger.i("谷歌框架可以访问,请求gaid")
|
|
Logger.i("谷歌框架可以访问,请求gaid")
|
|
SdkDrive.instance.setParam("device_id", GAIDUtils.getGoogleAdid())
|
|
SdkDrive.instance.setParam("device_id", GAIDUtils.getGoogleAdid())
|
|
- FirebaseCrashlytics.getInstance().setCustomKey("device_id", GAIDUtils.getGoogleAdid())
|
|
|
|
|
|
+// FirebaseCrashlytics.getInstance().setCustomKey("device_id", GAIDUtils.getGoogleAdid())
|
|
} else {
|
|
} else {
|
|
Logger.e("谷歌框架不可访问,使用android id替代")
|
|
Logger.e("谷歌框架不可访问,使用android id替代")
|
|
SdkDrive.instance.setParam("device_id", DeviceInfoUtils.getAndroidDeviceId(application))
|
|
SdkDrive.instance.setParam("device_id", DeviceInfoUtils.getAndroidDeviceId(application))
|
|
- FirebaseCrashlytics.getInstance().setCustomKey("device_id", DeviceInfoUtils.getAndroidDeviceId(application))
|
|
|
|
|
|
+// FirebaseCrashlytics.getInstance().setCustomKey("device_id", DeviceInfoUtils.getAndroidDeviceId(application))
|
|
}
|
|
}
|
|
hasReadGaid = true
|
|
hasReadGaid = true
|
|
}
|
|
}
|
|
@@ -146,7 +146,7 @@ class SdkBridgeImpl(context: Context) {
|
|
hideInitLoadingDialog()
|
|
hideInitLoadingDialog()
|
|
startSdkInit(activity, callback, initCallback)
|
|
startSdkInit(activity, callback, initCallback)
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }.start()
|
|
} else {
|
|
} else {
|
|
Logger.i("加载gaid成功,开始初始化...")
|
|
Logger.i("加载gaid成功,开始初始化...")
|
|
startSdkInit(activity, callback, initCallback)
|
|
startSdkInit(activity, callback, initCallback)
|