mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-04-17 13:41:54 +00:00
[skip ci] fix always scan setting, swift updates
This commit is contained in:
parent
91f8f8fef5
commit
d8accfb38b
2 changed files with 24 additions and 12 deletions
|
@ -189,6 +189,7 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
initialRegularAddressIndex: snp?.regularAddressIndex,
|
||||
initialChangeAddressIndex: snp?.changeAddressIndex,
|
||||
addressPageType: snp?.addressPageType,
|
||||
alwaysScan: alwaysScan,
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -818,4 +819,15 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
stopSync();
|
||||
startSync();
|
||||
}
|
||||
|
||||
Future<RpcClient> getStub() async {
|
||||
_stub = await CwMweb.stub();
|
||||
return _stub;
|
||||
}
|
||||
|
||||
Future<StatusResponse> getStatusRequest() async {
|
||||
await getStub();
|
||||
final resp = await _stub.status(StatusRequest());
|
||||
return resp;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,18 +15,18 @@ public class CwMwebPlugin: NSObject, FlutterPlugin {
|
|||
|
||||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
switch call.method {
|
||||
case "getPlatformVersion":
|
||||
result("iOS " + UIDevice.current.systemVersion)
|
||||
case "start":
|
||||
let args = call.arguments as? [String: String]
|
||||
let dataDir = args?["dataDir"]
|
||||
CwMwebPlugin.dataDir = dataDir
|
||||
startServer(result: result)
|
||||
case "stop":
|
||||
stopServer()
|
||||
result(nil)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
case "getPlatformVersion":
|
||||
result("iOS " + UIDevice.current.systemVersion)
|
||||
case "start":
|
||||
let args = call.arguments as? [String: String]
|
||||
let dataDir = args?["dataDir"]
|
||||
CwMwebPlugin.dataDir = dataDir
|
||||
startServer(result: result)
|
||||
case "stop":
|
||||
stopServer()
|
||||
result(nil)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue