Commit 5866cb4a authored by YJ's avatar YJ
Browse files

fix: ambiguous promise inteface

parent 27492054
......@@ -49,7 +49,7 @@ public class EthkeyBridge extends ReactContextBaseJavaModule {
try {
promise.resolve(ethkeyBrainwalletBIP39Address(seed));
} catch (Exception e) {
promise.reject("invalid phrase", null, null);
promise.reject("invalid phrase", "invalid phrase", new Throwable("invalid phrase"));
}
}
......@@ -63,7 +63,7 @@ public class EthkeyBridge extends ReactContextBaseJavaModule {
try {
promise.resolve(ethkeyRlpItem(rlp, position));
} catch (Exception e) {
promise.reject("invalid rlp", null, null);
promise.reject("invalid rlp", "invalid rlp", new Throwable("invalid rlp"));
}
}
......@@ -98,7 +98,7 @@ public class EthkeyBridge extends ReactContextBaseJavaModule {
try {
promise.resolve(ethkeyDecryptData(data, password));
} catch (Exception e) {
promise.reject("invalid password", null, null);
promise.reject("invalid password", "invalid password", new Throwable("invalid password"));
}
}
......@@ -107,7 +107,7 @@ public class EthkeyBridge extends ReactContextBaseJavaModule {
try {
promise.resolve(ethkeyQrCode(data));
} catch (Exception e) {
promise.reject("failed to create QR code", null, null);
promise.reject("failed to create QR code", "failed to create QR code", new Throwable("failed to create QR code"));
}
}
......
......@@ -3,7 +3,7 @@
buildscript {
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
minSdkVersion = 26
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
......@@ -15,6 +15,7 @@ buildscript {
}
dependencies {
classpath('com.android.tools.build:gradle:3.4.2')
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
......@@ -38,7 +39,7 @@ subprojects {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex') ) {
details.useVersion "28.0.0"
details.useVersion "26.1.0"
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment