IOS-1576 publish handshakeDelegate for easier usage in Swift IOS-1576
authorbuff <andreas@pep-project.org>
Wed, 12 Jun 2019 14:44:34 +0200
branchIOS-1576
changeset 1022f2e3e858ea9a
parent 1021 676ed73d74f5
child 1041 bb5cacde1ed3
IOS-1576 publish handshakeDelegate for easier usage in Swift
pEpObjCAdapter/PEPSync.m
pEpObjCAdapterFramework/PEPSync.h
     1.1 --- a/pEpObjCAdapter/PEPSync.m	Fri Jun 07 17:16:37 2019 +0200
     1.2 +++ b/pEpObjCAdapter/PEPSync.m	Wed Jun 12 14:44:34 2019 +0200
     1.3 @@ -32,7 +32,6 @@
     1.4  
     1.5  + (PEPSync * _Nullable)instance;
     1.6  
     1.7 -@property (nonatomic, nullable, weak) id<PEPNotifyHandshakeDelegate> notifyHandshakeDelegate;
     1.8  @property (nonatomic, nonnull) PEPQueue *queue;
     1.9  @property (nonatomic, nullable) NSThread *syncThread;
    1.10  @property (nonatomic, nullable) NSConditionLock *conditionLockForJoiningSyncThread;
    1.11 @@ -153,7 +152,7 @@
    1.12  - (instancetype)initWithSendMessageDelegate:(id<PEPSendMessageDelegate>
    1.13                                               _Nullable)sendMessageDelegate
    1.14                      notifyHandshakeDelegate:(id<PEPNotifyHandshakeDelegate>
    1.15 -                                             _Nonnull)notifyHandshakeDelegate
    1.16 +                                             _Nullable)notifyHandshakeDelegate
    1.17  {
    1.18      if (self = [super init]) {
    1.19          _logger = os_log_create("security.pEp.adapter", "PEPSync");
     2.1 --- a/pEpObjCAdapterFramework/PEPSync.h	Fri Jun 07 17:16:37 2019 +0200
     2.2 +++ b/pEpObjCAdapterFramework/PEPSync.h	Wed Jun 12 14:44:34 2019 +0200
     2.3 @@ -20,11 +20,12 @@
     2.4  @interface PEPSync : NSObject
     2.5  
     2.6  @property (nonatomic, nullable, weak) id<PEPSendMessageDelegate> sendMessageDelegate;
     2.7 +@property (nonatomic, nullable, weak) id<PEPNotifyHandshakeDelegate> notifyHandshakeDelegate;
     2.8  
     2.9  - (instancetype _Nonnull)initWithSendMessageDelegate:(id <PEPSendMessageDelegate>
    2.10                                                        _Nullable)sendMessageDelegate
    2.11                               notifyHandshakeDelegate:(id<PEPNotifyHandshakeDelegate>
    2.12 -                                                      _Nonnull)notifyHandshakeDelegate;
    2.13 +                                                      _Nullable)notifyHandshakeDelegate;
    2.14  
    2.15  - (void)startup;
    2.16