Refactoring/ios (#300)
iOS app refactoring (native part): - connection bugs fixed - improved stability - logs from network extension
This commit is contained in:
parent
3ce1e40b43
commit
ece15c7394
32 changed files with 935 additions and 3191 deletions
28
client/platforms/ios/ios_controller_wrapper.mm
Normal file
28
client/platforms/ios/ios_controller_wrapper.mm
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#import "ios_controller_wrapper.h"
|
||||
#include "ios_controller.h"
|
||||
|
||||
@implementation IosControllerWrapper
|
||||
|
||||
- (instancetype)initWithCppController:(IosController *)controller {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
cppController = controller;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)vpnStatusDidChange:(NSNotification *)notification {
|
||||
|
||||
NETunnelProviderSession *session = (NETunnelProviderSession *)notification.object;
|
||||
|
||||
if (session ) {
|
||||
cppController->vpnStatusDidChange(session);
|
||||
}
|
||||
}
|
||||
|
||||
- (void) vpnConfigurationDidChange:(NSNotification *)notification {
|
||||
cppController->vpnStatusDidChange(notification);
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
Loading…
Add table
Add a link
Reference in a new issue