mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-30 14:36:06 +00:00
CAKE-192 | added final int UNSTOPPABLE_DOMAIN_MIN_VERSION_SDK to MainActivity.java
This commit is contained in:
parent
4d6cc87529
commit
f324d6599d
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ import java.security.SecureRandom;
|
||||||
public class MainActivity extends FlutterFragmentActivity {
|
public class MainActivity extends FlutterFragmentActivity {
|
||||||
final String UTILS_CHANNEL = "com.cake_wallet/native_utils";
|
final String UTILS_CHANNEL = "com.cake_wallet/native_utils";
|
||||||
final String UNSTOPPABLE_DOMAIN_CHANNEL = "com.cakewallet.cake_wallet/unstoppable-domain";
|
final String UNSTOPPABLE_DOMAIN_CHANNEL = "com.cakewallet.cake_wallet/unstoppable-domain";
|
||||||
|
final int UNSTOPPABLE_DOMAIN_MIN_VERSION_SDK = 24;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
|
public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) {
|
||||||
|
@ -54,7 +55,7 @@ public class MainActivity extends FlutterFragmentActivity {
|
||||||
break;
|
break;
|
||||||
case "getUnstoppableDomainAddress":
|
case "getUnstoppableDomainAddress":
|
||||||
int version = Build.VERSION.SDK_INT;
|
int version = Build.VERSION.SDK_INT;
|
||||||
if (version >= 24) {
|
if (version >= UNSTOPPABLE_DOMAIN_MIN_VERSION_SDK) {
|
||||||
getUnstoppableDomainAddress(call, result);
|
getUnstoppableDomainAddress(call, result);
|
||||||
} else {
|
} else {
|
||||||
handler.post(() -> result.success(""));
|
handler.post(() -> result.success(""));
|
||||||
|
|
Loading…
Reference in a new issue