iOS:Change DoricGravity enum name

This commit is contained in:
pengfei.zhou
2020-03-27 10:07:53 +08:00
committed by osborn
parent 0abf8533db
commit 438f729ec6
10 changed files with 55 additions and 55 deletions

View File

@@ -95,20 +95,20 @@ - (void)sendDevCommand:(NSString *)command {
}
- (void)onOpenEvent {
ShowToast(@"dev kit connected", BOTTOM);
ShowToast(@"dev kit connected", DoricBottom);
}
- (void)onEOFEvent {
ShowToast(@"dev kit eof exception", BOTTOM);
ShowToast(@"dev kit eof exception", DoricBottom);
}
- (void)onConnectExceptionEvent {
ShowToast(@"dev kit connection exception", BOTTOM);
ShowToast(@"dev kit connection exception", DoricBottom);
}
- (void)onStartDebugEvent:(NSNotification *)notification {
NSString *contextId = notification.object;
ShowToast(contextId, BOTTOM);
ShowToast(contextId, DoricBottom);
for (NSValue *value in [[DoricContextManager instance] aliveContexts]) {
DoricContext *context = value.nonretainedObjectValue;
BOOL result = [context.contextId compare:contextId] == NSOrderedSame;

View File

@@ -53,7 +53,7 @@ - (void)viewDidLoad {
NSString *result = @"127.0.0.1";
[DoricJSRemoteExecutor configIp:result];
[[DoricDev instance] connectDevKit:[NSString stringWithFormat:@"ws://%@:7777", result]];
ShowToast([NSString stringWithFormat:@"Connected to %@", result], BOTTOM);
ShowToast([NSString stringWithFormat:@"Connected to %@", result], DoricBottom);
} else {
[self.navigationController pushViewController:[QRScanViewController new] animated:NO];
}

View File

@@ -106,7 +106,7 @@ - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputMetadataObjects:
NSLog(@"Scan result is %@", result);
[[DoricDev instance] connectDevKit:[NSString stringWithFormat:@"ws://%@:7777", result]];
[DoricJSRemoteExecutor configIp:result];
ShowToast([NSString stringWithFormat:@"Connected to %@", result], BOTTOM);
ShowToast([NSString stringWithFormat:@"Connected to %@", result], DoricBottom);
[self.navigationController popViewControllerAnimated:NO];
}
}