-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi @Tkko
I just updated the version from 2.0.0 to 3.2.0 and I saw there are some code changes.
I want to be sure that I updated the code correctly.
I will glad if you can approve that for me.
Thanks
- By the way, some of the changes are not mentioned in the change logs.
Before:
final smartAuth = SmartAuth()
After:
final smartAuth = SmartAuth.instance
Before:
final res = await smartAuth.getSmsCode();
if (res.succeed && res.codeFound) {
return res.code!;
}
After:
final SmartAuthResult<SmartAuthSms> smartAuthResult =
await smartAuth.getSmsWithRetrieverApi();
if (smartAuthResult.hasData) {
return smartAuthResult.data?.code;
}
Before:
final String? res = await smartAuth.getAppSignature();
debugPrint('Signature: $res');
return res.data;
After:
final SmartAuthResult<String> res = await smartAuth.getAppSignature();
debugPrint('Signature: ${res.data}');
return res.data;
Before:
@override
Future<void> dispose() {
return smartAuth.removeSmsListener();
}
After:
@override
Future<void> dispose() {
return smartAuth.removeSmsRetrieverApiListener();
}
Metadata
Metadata
Assignees
Labels
No labels