This is an automated email from the ASF dual-hosted git repository. mssun pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
commit 50db5ec1992ad795928f34a16fa88b1f9b8de042 Author: Mingshen Sun <[email protected]> AuthorDate: Tue Feb 16 17:03:29 2021 -0800 Create podspec for TeacalveClientSDK --- .../External/teaclave_client_sdk.h | 1 + .../TeaclaveClientSDK/TeaclaveClientSDK.podspec | 17 ++++++ .../TeaclaveClientSDK.xcodeproj/project.pbxproj | 6 +- .../xcschemes/TeaclaveClientSDK.xcscheme | 67 ++++++++++++++++++++++ .../xcschemes/TeaclaveClientSDKTests.xcscheme | 52 +++++++++++++++++ .../TeaclaveClientSDKTests.swift | 12 ++-- 6 files changed, 148 insertions(+), 7 deletions(-) diff --git a/sdk/swift/TeaclaveClientSDK/External/teaclave_client_sdk.h b/sdk/swift/TeaclaveClientSDK/External/teaclave_client_sdk.h new file mode 120000 index 0000000..28c4821 --- /dev/null +++ b/sdk/swift/TeaclaveClientSDK/External/teaclave_client_sdk.h @@ -0,0 +1 @@ +../../../c/teaclave_client_sdk.h \ No newline at end of file diff --git a/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.podspec b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.podspec new file mode 100644 index 0000000..a7295b7 --- /dev/null +++ b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.podspec @@ -0,0 +1,17 @@ +Pod::Spec.new do |s| + s.name = "TeaclaveClientSDK" + s.version = "0.1.0" + s.summary = "Teaclave Client SDK." + s.homepage = "https://teaclave.apache.org" + s.license = "Apache-2.0" + s.author = { "Teaclave Contributors" => "[email protected]" } + s.ios.deployment_target = '13.0' + s.source = { :git => "https://github.com/apache/incubator-teaclave.git", :tag => "v0.1.0" } + s.source_files = "TeaclaveClietnSDK", "TeaclaveClientSDK/**/*.{h,swift}", "External" + s.module_map = 'TeaclaveClientSDK/TeaclaveClientSDK.modulemap' + s.vendored_libraries= 'External/libteaclave_client_sdk.a' + s.requires_arc = true + s.static_framework = true + s.dependency 'OpenSSL-Universal', '~> 1.0.0' + s.library = 'c++' +end diff --git a/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/project.pbxproj b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/project.pbxproj index 7a9f736..296e6da 100644 --- a/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/project.pbxproj +++ b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/project.pbxproj @@ -167,7 +167,7 @@ isa = PBXProject; attributes = { LastSwiftUpdateCheck = 1230; - LastUpgradeCheck = 1230; + LastUpgradeCheck = 1240; TargetAttributes = { 9AA3BE5E25C9D33B00A2BA83 = { CreatedOnToolsVersion = 12.3; @@ -383,6 +383,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = TeaclaveClientSDK/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -397,6 +398,7 @@ MODULEMAP_FILE = "$(SRCROOT)/TeaclaveClientSDK/TeaclaveClientSDK.modulemap"; PRODUCT_BUNDLE_IDENTIFIER = org.apache.teaclave.TeaclaveClientSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SUPPORTS_MACCATALYST = NO; SWIFT_INCLUDE_PATHS = ""; @@ -420,6 +422,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = TeaclaveClientSDK/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; + IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -434,6 +437,7 @@ MODULEMAP_FILE = "$(SRCROOT)/TeaclaveClientSDK/TeaclaveClientSDK.modulemap"; PRODUCT_BUNDLE_IDENTIFIER = org.apache.teaclave.TeaclaveClientSDK; PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SKIP_INSTALL = YES; SUPPORTS_MACCATALYST = NO; SWIFT_INCLUDE_PATHS = ""; diff --git a/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/xcshareddata/xcschemes/TeaclaveClientSDK.xcscheme b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/xcshareddata/xcschemes/TeaclaveClientSDK.xcscheme new file mode 100644 index 0000000..35306c2 --- /dev/null +++ b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/xcshareddata/xcschemes/TeaclaveClientSDK.xcscheme @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Scheme + LastUpgradeVersion = "1240" + version = "1.3"> + <BuildAction + parallelizeBuildables = "YES" + buildImplicitDependencies = "YES"> + <BuildActionEntries> + <BuildActionEntry + buildForTesting = "YES" + buildForRunning = "YES" + buildForProfiling = "YES" + buildForArchiving = "YES" + buildForAnalyzing = "YES"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "9AA3BE5E25C9D33B00A2BA83" + BuildableName = "TeaclaveClientSDK.framework" + BlueprintName = "TeaclaveClientSDK" + ReferencedContainer = "container:TeaclaveClientSDK.xcodeproj"> + </BuildableReference> + </BuildActionEntry> + </BuildActionEntries> + </BuildAction> + <TestAction + buildConfiguration = "Debug" + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + shouldUseLaunchSchemeArgsEnv = "YES"> + <Testables> + </Testables> + </TestAction> + <LaunchAction + buildConfiguration = "Debug" + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + launchStyle = "0" + useCustomWorkingDirectory = "NO" + ignoresPersistentStateOnLaunch = "NO" + debugDocumentVersioning = "YES" + debugServiceExtension = "internal" + allowLocationSimulation = "YES"> + </LaunchAction> + <ProfileAction + buildConfiguration = "Release" + shouldUseLaunchSchemeArgsEnv = "YES" + savedToolIdentifier = "" + useCustomWorkingDirectory = "NO" + debugDocumentVersioning = "YES"> + <MacroExpansion> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "9AA3BE5E25C9D33B00A2BA83" + BuildableName = "TeaclaveClientSDK.framework" + BlueprintName = "TeaclaveClientSDK" + ReferencedContainer = "container:TeaclaveClientSDK.xcodeproj"> + </BuildableReference> + </MacroExpansion> + </ProfileAction> + <AnalyzeAction + buildConfiguration = "Debug"> + </AnalyzeAction> + <ArchiveAction + buildConfiguration = "Release" + revealArchiveInOrganizer = "YES"> + </ArchiveAction> +</Scheme> diff --git a/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/xcshareddata/xcschemes/TeaclaveClientSDKTests.xcscheme b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/xcshareddata/xcschemes/TeaclaveClientSDKTests.xcscheme new file mode 100644 index 0000000..e818a54 --- /dev/null +++ b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDK.xcodeproj/xcshareddata/xcschemes/TeaclaveClientSDKTests.xcscheme @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Scheme + LastUpgradeVersion = "1240" + version = "1.3"> + <BuildAction + parallelizeBuildables = "YES" + buildImplicitDependencies = "YES"> + </BuildAction> + <TestAction + buildConfiguration = "Debug" + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + shouldUseLaunchSchemeArgsEnv = "YES"> + <Testables> + <TestableReference + skipped = "NO"> + <BuildableReference + BuildableIdentifier = "primary" + BlueprintIdentifier = "9AA3BE6725C9D33B00A2BA83" + BuildableName = "TeaclaveClientSDKTests.xctest" + BlueprintName = "TeaclaveClientSDKTests" + ReferencedContainer = "container:TeaclaveClientSDK.xcodeproj"> + </BuildableReference> + </TestableReference> + </Testables> + </TestAction> + <LaunchAction + buildConfiguration = "Debug" + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" + launchStyle = "0" + useCustomWorkingDirectory = "NO" + ignoresPersistentStateOnLaunch = "NO" + debugDocumentVersioning = "YES" + debugServiceExtension = "internal" + allowLocationSimulation = "YES"> + </LaunchAction> + <ProfileAction + buildConfiguration = "Release" + shouldUseLaunchSchemeArgsEnv = "YES" + savedToolIdentifier = "" + useCustomWorkingDirectory = "NO" + debugDocumentVersioning = "YES"> + </ProfileAction> + <AnalyzeAction + buildConfiguration = "Debug"> + </AnalyzeAction> + <ArchiveAction + buildConfiguration = "Release" + revealArchiveInOrganizer = "YES"> + </ArchiveAction> +</Scheme> diff --git a/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDKTests/TeaclaveClientSDKTests.swift b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDKTests/TeaclaveClientSDKTests.swift index 574e3db..bd10eff 100644 --- a/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDKTests/TeaclaveClientSDKTests.swift +++ b/sdk/swift/TeaclaveClientSDK/TeaclaveClientSDKTests/TeaclaveClientSDKTests.swift @@ -34,7 +34,7 @@ class TeaclaveClientSDKTests: XCTestCase { address: authentication_service_address, enclave_info_path: enclave_info_path, as_root_ca_cert_path: as_root_ca_cert_path - ) + )! let _ = client.register(id: "test_id", password: "test_password") let token = try client.login(id: "test_id", password: "test_password").get() @@ -52,7 +52,7 @@ class TeaclaveClientSDKTests: XCTestCase { address: frontend_service_address, enclave_info_path: enclave_info_path, as_root_ca_cert_path: as_root_ca_cert_path - ) + )! try frontend_client.set_credential(id: "test_id", token: token).get() let response = try frontend_client.register_function(with: register_function_request).get() let function_id = response.function_id @@ -77,7 +77,7 @@ class TeaclaveClientSDKTests: XCTestCase { address: authentication_service_address, enclave_info_path: enclave_info_path, as_root_ca_cert_path: as_root_ca_cert_path - ) + )! let _ = user0_client.register(id: "user0", password: "password") let user0_token = try user0_client.login(id: "user0", password: "password").get() @@ -85,7 +85,7 @@ class TeaclaveClientSDKTests: XCTestCase { address: frontend_service_address, enclave_info_path: enclave_info_path, as_root_ca_cert_path: as_root_ca_cert_path - ) + )! try user0_frontend_client.set_credential(id: "user0", token: user0_token).get() let register_function_request = RegisterFunctionRequest( @@ -136,7 +136,7 @@ class TeaclaveClientSDKTests: XCTestCase { address: authentication_service_address, enclave_info_path: enclave_info_path, as_root_ca_cert_path: as_root_ca_cert_path - ) + )! let _ = user1_client.register(id: "user1", password: "password") let user1_token = try user1_client.login(id: "user1", password: "password").get() @@ -144,7 +144,7 @@ class TeaclaveClientSDKTests: XCTestCase { address: frontend_service_address, enclave_info_path: enclave_info_path, as_root_ca_cert_path: as_root_ca_cert_path - ) + )! try user1_frontend_client.set_credential(id: "user1", token: user1_token).get() let user1_register_input_file_request = RegisterInputFileRequest( --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
