File tree Expand file tree Collapse file tree 5 files changed +14
-11
lines changed
src/main/kotlin/cn/yooss/mood_diary Expand file tree Collapse file tree 5 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,6 @@ flutter {
79
79
source = " ../.."
80
80
}
81
81
dependencies {
82
- implementation ' com.github.gzu-liyujiang:Android_CN_OAID:4.2.9 '
82
+ implementation ' com.github.gzu-liyujiang:Android_CN_OAID:4.2.11 '
83
83
}
84
84
Original file line number Diff line number Diff line change @@ -5,12 +5,11 @@ import io.flutter.plugin.common.MethodChannel
5
5
import java.lang.Exception
6
6
7
7
class HandleGetOAID (private var resultCallback : MethodChannel .Result ) : IGetter {
8
- override fun onOAIDGetComplete (result : String? ) {
9
- resultCallback.success(result);
8
+ override fun onOAIDGetComplete (result : String ) {
9
+ resultCallback.success(result)
10
10
}
11
11
12
12
override fun onOAIDGetError (error : Exception ? ) {
13
-
14
- resultCallback.error(" 100" , " error" , error);
13
+ resultCallback.success(null )
15
14
}
16
15
}
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ class MainActivity : FlutterFragmentActivity() {
33
33
private fun getOAID (resultCallback : MethodChannel .Result ) {
34
34
if (DeviceID .supportedOAID(application)) {
35
35
DeviceID .getOAID(application, HandleGetOAID (resultCallback));
36
+ } else {
37
+ resultCallback.success(null )
36
38
}
37
39
}
38
40
Original file line number Diff line number Diff line change @@ -71,12 +71,14 @@ void main() async {
71
71
if (details.exceptionAsString ().contains ('Render' )) {
72
72
Utils ().noticeUtil.showBug (message: '布局异常!' );
73
73
} else {
74
- Utils ().noticeUtil.showBug (message: '出错了,请联系开发者!' );
74
+ //Utils().noticeUtil.showBug(message: 'error:${details.exception.toString()}\nstack:${details.stack?.toString()}');
75
+ Utils ().noticeUtil.showBug (message: '出错了,请联系开发者处理!' );
75
76
}
76
77
};
77
78
PlatformDispatcher .instance.onError = (error, stack) {
78
79
Utils ().logUtil.printWTF ('Error' , error: error, stackTrace: stack);
79
- Utils ().noticeUtil.showBug (message: '出错了,请联系开发者!' );
80
+ Utils ().noticeUtil.showBug (message: '出错了,请联系开发者处理!' );
81
+ //Utils().noticeUtil.showBug(message: 'error:${error.toString()}\nstack:${stack.toString()}');
80
82
return true ;
81
83
};
82
84
runApp (GetMaterialApp (
Original file line number Diff line number Diff line change @@ -1566,10 +1566,10 @@ packages:
1566
1566
dependency: transitive
1567
1567
description:
1568
1568
name: package_config
1569
- sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd "
1569
+ sha256: "92d4488434b520a62570293fbd33bb556c7d49230791c1b4bbd973baf6d2dc67 "
1570
1570
url: "https://pub.flutter-io.cn"
1571
1571
source: hosted
1572
- version: "2.1.0 "
1572
+ version: "2.1.1 "
1573
1573
package_info_plus:
1574
1574
dependency: "direct main"
1575
1575
description:
@@ -1782,10 +1782,10 @@ packages:
1782
1782
dependency: transitive
1783
1783
description:
1784
1784
name: pub_semver
1785
- sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c "
1785
+ sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd "
1786
1786
url: "https://pub.flutter-io.cn"
1787
1787
source: hosted
1788
- version: "2.1.4 "
1788
+ version: "2.1.5 "
1789
1789
pubspec_parse:
1790
1790
dependency: transitive
1791
1791
description:
You can’t perform that action at this time.
0 commit comments