IOS-1575 Publish PEPSync. IOS-1575
authorDirk Zimmermann <dz@pep.security>
Mon, 20 May 2019 14:46:37 +0200
branchIOS-1575
changeset 943e298e7074977
parent 942 80fc04888567
child 944 50c460c4cc9e
IOS-1575 Publish PEPSync.
pEpObjCAdapter.xcodeproj/project.pbxproj
pEpObjCAdapter/PEPSync.h
pEpObjCAdapterFramework/PEPObjCAdapterFramework.h
pEpObjCAdapterFramework/PEPSync.h
     1.1 --- a/pEpObjCAdapter.xcodeproj/project.pbxproj	Mon May 20 14:46:37 2019 +0200
     1.2 +++ b/pEpObjCAdapter.xcodeproj/project.pbxproj	Mon May 20 14:46:37 2019 +0200
     1.3 @@ -10,6 +10,7 @@
     1.4  		152A9C472010F50400F962ED /* PEPSessionTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 152A9C462010F50400F962ED /* PEPSessionTest.m */; };
     1.5  		152D58EF201B6DB200036219 /* PEPMessageUtilTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 152D58EE201B6DB200036219 /* PEPMessageUtilTest.m */; };
     1.6  		15D3D761200F61BB00A0DA20 /* PEPSessionProviderTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 15D3D760200F61BB00A0DA20 /* PEPSessionProviderTest.m */; };
     1.7 +		430CD9B12292AC4900AAC37F /* PEPSync.h in Headers */ = {isa = PBXBuildFile; fileRef = 430CD9B02292AC4900AAC37F /* PEPSync.h */; settings = {ATTRIBUTES = (Public, ); }; };
     1.8  		432EF60C1C58B77900B6782A /* 0xB623F674.asc in Resources */ = {isa = PBXBuildFile; fileRef = 432EF6091C58B77900B6782A /* 0xB623F674.asc */; };
     1.9  		432EF60E1C58B77900B6782A /* msg_to_B623F674.asc in Resources */ = {isa = PBXBuildFile; fileRef = 432EF60B1C58B77900B6782A /* msg_to_B623F674.asc */; };
    1.10  		432FA2D21C884C5F00DDF874 /* partner1_F2D281C2789DD7F6_pub.asc in Resources */ = {isa = PBXBuildFile; fileRef = 432FA2CF1C884C5F00DDF874 /* partner1_F2D281C2789DD7F6_pub.asc */; };
    1.11 @@ -132,6 +133,7 @@
    1.12  		15D3D77C2010DDC500A0DA20 /* PEPTestUtils.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PEPTestUtils.m; sourceTree = "<group>"; };
    1.13  		35FB0ABB1B57F97E00377032 /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
    1.14  		35FB0ABD1B57F99D00377032 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
    1.15 +		430CD9B02292AC4900AAC37F /* PEPSync.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PEPSync.h; path = pEpObjCAdapterFramework/PEPSync.h; sourceTree = SOURCE_ROOT; };
    1.16  		43209B261ECC2ACD007E7E2E /* NSArray+Extension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSArray+Extension.h"; sourceTree = "<group>"; };
    1.17  		43209B271ECC2ACD007E7E2E /* NSArray+Extension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSArray+Extension.m"; sourceTree = "<group>"; };
    1.18  		43209B281ECC2ACD007E7E2E /* PEPCSVScanner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PEPCSVScanner.h; sourceTree = "<group>"; };
    1.19 @@ -201,7 +203,6 @@
    1.20  		43E3986A221D7EDD008E7983 /* libiconv.2.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libiconv.2.tbd; path = usr/lib/libiconv.2.tbd; sourceTree = SDKROOT; };
    1.21  		43F73BD22165F6EC00AB4524 /* PEPLock.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPLock.h; sourceTree = "<group>"; };
    1.22  		43F73BD32165F6EC00AB4524 /* PEPLock.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPLock.m; sourceTree = "<group>"; };
    1.23 -		43F73BE82166248E00AB4524 /* PEPSync.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PEPSync.h; sourceTree = "<group>"; };
    1.24  		43F73BE92166248E00AB4524 /* PEPSync.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PEPSync.m; sourceTree = "<group>"; };
    1.25  		43FF2ECC2226AE7E000D9567 /* PEPEngineTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = PEPEngineTypes.h; path = pEpObjCAdapterFramework/PEPEngineTypes.h; sourceTree = SOURCE_ROOT; };
    1.26  		640F79211C9B517C00DBEC4E /* 5CB2C182_sec.asc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = 5CB2C182_sec.asc; sourceTree = "<group>"; };
    1.27 @@ -348,7 +349,6 @@
    1.28  				439393F7208F5B5E00EB1DBD /* NSMutableDictionary+PEP.m */,
    1.29  				43F73BD22165F6EC00AB4524 /* PEPLock.h */,
    1.30  				43F73BD32165F6EC00AB4524 /* PEPLock.m */,
    1.31 -				43F73BE82166248E00AB4524 /* PEPSync.h */,
    1.32  				43F73BE92166248E00AB4524 /* PEPSync.m */,
    1.33  				438C4393216744DA00C7425B /* PEPSendMessageDelegate.h */,
    1.34  				438C439C21676C9300C7425B /* PEPNotifyHandshakeDelegate.h */,
    1.35 @@ -368,6 +368,7 @@
    1.36  		43E3985C221D7E56008E7983 /* PEPObjCAdapterFramework */ = {
    1.37  			isa = PBXGroup;
    1.38  			children = (
    1.39 +				430CD9B02292AC4900AAC37F /* PEPSync.h */,
    1.40  				43D27DE41F5DA78700795687 /* NSDictionary+CommType.h */,
    1.41  				43209B2A1ECC2ACD007E7E2E /* PEPLanguage.h */,
    1.42  				439D91A3208479EE003F6AC2 /* PEPAttachment.h */,
    1.43 @@ -426,6 +427,7 @@
    1.44  				435C0C8C22291FFB0025C6B5 /* PEPSession.h in Headers */,
    1.45  				435C0CAC222930340025C6B5 /* PEPConstants.h in Headers */,
    1.46  				43FF2ED12226AFE9000D9567 /* PEPEngineTypes.h in Headers */,
    1.47 +				430CD9B12292AC4900AAC37F /* PEPSync.h in Headers */,
    1.48  				435F519022204A67006EB11F /* PEPSessionProtocol.h in Headers */,
    1.49  				435C0CD922296B660025C6B5 /* PEPAttachment.h in Headers */,
    1.50  				435C0CBB2229380E0025C6B5 /* NSNumber+PEPRating.h in Headers */,
    1.51 @@ -500,6 +502,7 @@
    1.52  			developmentRegion = English;
    1.53  			hasScannedForEncodings = 0;
    1.54  			knownRegions = (
    1.55 +				English,
    1.56  				en,
    1.57  			);
    1.58  			mainGroup = 352988A11AEF964100FA7E2E;
     2.1 --- a/pEpObjCAdapter/PEPSync.h	Mon May 20 14:46:37 2019 +0200
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,43 +0,0 @@
     2.4 -//
     2.5 -//  PEPSync.h
     2.6 -//  pEpObjCAdapter
     2.7 -//
     2.8 -//  Created by Dirk Zimmermann on 04.10.18.
     2.9 -//  Copyright © 2018 p≡p. All rights reserved.
    2.10 -//
    2.11 -
    2.12 -#import <Foundation/Foundation.h>
    2.13 -
    2.14 -#import "pEpEngine.h"
    2.15 -
    2.16 -#import "PEPSendMessageDelegate.h"
    2.17 -#import "PEPNotifyHandshakeDelegate.h"
    2.18 -
    2.19 -@class PEPSyncSendMessageDelegate;
    2.20 -
    2.21 -/**
    2.22 - @see libpEpAdapter: Adapter.{cc|hh}
    2.23 - @see sync_codec.h
    2.24 - */
    2.25 -@interface PEPSync : NSObject
    2.26 -
    2.27 -/**
    2.28 - Creates an engine session.
    2.29 - */
    2.30 -+ (PEP_SESSION _Nullable)createSession:(NSError * _Nullable * _Nullable)error;
    2.31 -
    2.32 -/**
    2.33 - Releases an engine session that was created by `createSession`.
    2.34 - */
    2.35 -+ (void)releaseSession:(PEP_SESSION _Nullable)session;
    2.36 -
    2.37 -- (instancetype _Nonnull)initWithSendMessageDelegate:(id <PEPSendMessageDelegate>
    2.38 -                                                      _Nonnull)sendMessageDelegate
    2.39 -                             notifyHandshakeDelegate:(id<PEPNotifyHandshakeDelegate>
    2.40 -                                                      _Nonnull)notifyHandshakeDelegate;
    2.41 -
    2.42 -- (void)startup;
    2.43 -
    2.44 -- (void)shutdown;
    2.45 -
    2.46 -@end
     3.1 --- a/pEpObjCAdapterFramework/PEPObjCAdapterFramework.h	Mon May 20 14:46:37 2019 +0200
     3.2 +++ b/pEpObjCAdapterFramework/PEPObjCAdapterFramework.h	Mon May 20 14:46:37 2019 +0200
     3.3 @@ -28,3 +28,4 @@
     3.4  #import <PEPObjCAdapterFramework/PEPAttachment.h>
     3.5  #import <PEPObjCAdapterFramework/PEPLanguage.h>
     3.6  #import <PEPObjCAdapterFramework/NSDictionary+CommType.h>
     3.7 +#import <PEPObjCAdapterFramework/PEPSync.h>
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/pEpObjCAdapterFramework/PEPSync.h	Mon May 20 14:46:37 2019 +0200
     4.3 @@ -0,0 +1,43 @@
     4.4 +//
     4.5 +//  PEPSync.h
     4.6 +//  pEpObjCAdapter
     4.7 +//
     4.8 +//  Created by Dirk Zimmermann on 04.10.18.
     4.9 +//  Copyright © 2018 p≡p. All rights reserved.
    4.10 +//
    4.11 +
    4.12 +#import <Foundation/Foundation.h>
    4.13 +
    4.14 +#import "pEpEngine.h"
    4.15 +
    4.16 +#import "PEPSendMessageDelegate.h"
    4.17 +#import "PEPNotifyHandshakeDelegate.h"
    4.18 +
    4.19 +@class PEPSyncSendMessageDelegate;
    4.20 +
    4.21 +/**
    4.22 + @see libpEpAdapter: Adapter.{cc|hh}
    4.23 + @see sync_codec.h
    4.24 + */
    4.25 +@interface PEPSync : NSObject
    4.26 +
    4.27 +/**
    4.28 + Creates an engine session.
    4.29 + */
    4.30 ++ (PEP_SESSION _Nullable)createSession:(NSError * _Nullable * _Nullable)error;
    4.31 +
    4.32 +/**
    4.33 + Releases an engine session that was created by `createSession`.
    4.34 + */
    4.35 ++ (void)releaseSession:(PEP_SESSION _Nullable)session;
    4.36 +
    4.37 +- (instancetype _Nonnull)initWithSendMessageDelegate:(id <PEPSendMessageDelegate>
    4.38 +                                                      _Nonnull)sendMessageDelegate
    4.39 +                             notifyHandshakeDelegate:(id<PEPNotifyHandshakeDelegate>
    4.40 +                                                      _Nonnull)notifyHandshakeDelegate;
    4.41 +
    4.42 +- (void)startup;
    4.43 +
    4.44 +- (void)shutdown;
    4.45 +
    4.46 +@end