From 7455a035a3951ecdf72508d017283057f369c7b5 Mon Sep 17 00:00:00 2001 From: Alexey Lysenko Date: Wed, 31 Aug 2022 17:03:02 +0300 Subject: [PATCH] first step for spm support --- .gitignore | 1 + Package.swift | 41 +++++++++++++++++++ library/Source/include/NSError+VKError.h | 1 + library/Source/include/NSString+MD5.h | 1 + library/Source/include/OrderedDictionary.h | 1 + library/Source/include/VKAccessToken.h | 1 + library/Source/include/VKActivity.h | 1 + library/Source/include/VKApi.h | 1 + library/Source/include/VKApiBase.h | 1 + library/Source/include/VKApiCaptcha.h | 1 + library/Source/include/VKApiConst.h | 1 + library/Source/include/VKApiDocs.h | 1 + library/Source/include/VKApiFriends.h | 1 + library/Source/include/VKApiGroups.h | 1 + library/Source/include/VKApiModels.h | 1 + library/Source/include/VKApiObject.h | 1 + library/Source/include/VKApiObjectArray.h | 1 + library/Source/include/VKApiPhotos.h | 1 + library/Source/include/VKApiUsers.h | 1 + library/Source/include/VKApiWall.h | 1 + .../Source/include/VKAuthorizationResult.h | 1 + .../Source/include/VKAuthorizeController.h | 1 + library/Source/include/VKBatchRequest.h | 1 + library/Source/include/VKBundle.h | 1 + library/Source/include/VKCaptchaView.h | 1 + .../Source/include/VKCaptchaViewController.h | 1 + library/Source/include/VKCounters.h | 1 + library/Source/include/VKDocs.h | 1 + library/Source/include/VKError.h | 1 + library/Source/include/VKGroup.h | 1 + library/Source/include/VKHTTPClient.h | 1 + library/Source/include/VKHTTPOperation.h | 1 + library/Source/include/VKImageParameters.h | 1 + library/Source/include/VKJSONOperation.h | 1 + library/Source/include/VKLikes.h | 1 + library/Source/include/VKObject.h | 1 + library/Source/include/VKOperation.h | 1 + library/Source/include/VKPermissions.h | 1 + library/Source/include/VKPhoto.h | 1 + library/Source/include/VKPhotoSize.h | 1 + library/Source/include/VKRelative.h | 1 + library/Source/include/VKRequest.h | 1 + library/Source/include/VKRequestsScheduler.h | 1 + library/Source/include/VKResponse.h | 1 + library/Source/include/VKSchool.h | 1 + library/Source/include/VKSdk.h | 1 + library/Source/include/VKSdkVersion.h | 1 + .../Source/include/VKShareDialogController.h | 1 + .../include/VKSharedTransitioningObject.h | 1 + library/Source/include/VKUniversity.h | 1 + library/Source/include/VKUploadImage.h | 1 + .../include/VKUploadMessagesPhotoRequest.h | 1 + library/Source/include/VKUploadPhotoBase.h | 1 + library/Source/include/VKUploadPhotoRequest.h | 1 + .../Source/include/VKUploadWallPhotoRequest.h | 1 + library/Source/include/VKUser.h | 1 + library/Source/include/VKUtil.h | 1 + 57 files changed, 97 insertions(+) create mode 100644 Package.swift create mode 120000 library/Source/include/NSError+VKError.h create mode 120000 library/Source/include/NSString+MD5.h create mode 120000 library/Source/include/OrderedDictionary.h create mode 120000 library/Source/include/VKAccessToken.h create mode 120000 library/Source/include/VKActivity.h create mode 120000 library/Source/include/VKApi.h create mode 120000 library/Source/include/VKApiBase.h create mode 120000 library/Source/include/VKApiCaptcha.h create mode 120000 library/Source/include/VKApiConst.h create mode 120000 library/Source/include/VKApiDocs.h create mode 120000 library/Source/include/VKApiFriends.h create mode 120000 library/Source/include/VKApiGroups.h create mode 120000 library/Source/include/VKApiModels.h create mode 120000 library/Source/include/VKApiObject.h create mode 120000 library/Source/include/VKApiObjectArray.h create mode 120000 library/Source/include/VKApiPhotos.h create mode 120000 library/Source/include/VKApiUsers.h create mode 120000 library/Source/include/VKApiWall.h create mode 120000 library/Source/include/VKAuthorizationResult.h create mode 120000 library/Source/include/VKAuthorizeController.h create mode 120000 library/Source/include/VKBatchRequest.h create mode 120000 library/Source/include/VKBundle.h create mode 120000 library/Source/include/VKCaptchaView.h create mode 120000 library/Source/include/VKCaptchaViewController.h create mode 120000 library/Source/include/VKCounters.h create mode 120000 library/Source/include/VKDocs.h create mode 120000 library/Source/include/VKError.h create mode 120000 library/Source/include/VKGroup.h create mode 120000 library/Source/include/VKHTTPClient.h create mode 120000 library/Source/include/VKHTTPOperation.h create mode 120000 library/Source/include/VKImageParameters.h create mode 120000 library/Source/include/VKJSONOperation.h create mode 120000 library/Source/include/VKLikes.h create mode 120000 library/Source/include/VKObject.h create mode 120000 library/Source/include/VKOperation.h create mode 120000 library/Source/include/VKPermissions.h create mode 120000 library/Source/include/VKPhoto.h create mode 120000 library/Source/include/VKPhotoSize.h create mode 120000 library/Source/include/VKRelative.h create mode 120000 library/Source/include/VKRequest.h create mode 120000 library/Source/include/VKRequestsScheduler.h create mode 120000 library/Source/include/VKResponse.h create mode 120000 library/Source/include/VKSchool.h create mode 120000 library/Source/include/VKSdk.h create mode 120000 library/Source/include/VKSdkVersion.h create mode 120000 library/Source/include/VKShareDialogController.h create mode 120000 library/Source/include/VKSharedTransitioningObject.h create mode 120000 library/Source/include/VKUniversity.h create mode 120000 library/Source/include/VKUploadImage.h create mode 120000 library/Source/include/VKUploadMessagesPhotoRequest.h create mode 120000 library/Source/include/VKUploadPhotoBase.h create mode 120000 library/Source/include/VKUploadPhotoRequest.h create mode 120000 library/Source/include/VKUploadWallPhotoRequest.h create mode 120000 library/Source/include/VKUser.h create mode 120000 library/Source/include/VKUtil.h diff --git a/.gitignore b/.gitignore index d03269dd..a8713d06 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ Pods .idea/* SDKBuildSteps.info +.swiftpm diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..7b4e7f95 --- /dev/null +++ b/Package.swift @@ -0,0 +1,41 @@ +// swift-tools-version:5.3 +// The swift-tools-version declares the minimum version of Swift required to build this package. +import PackageDescription + +let package = Package( + name: "vk-ios-sdk", + platforms: [.iOS(.v8)], + products: [ + .library( + name: "vk-ios-sdk", + targets: ["vk-ios-sdk"] + ) + ], + targets: [ + .target( + name: "vk-ios-sdk", + path: "library/Source", + resources: [ + .copy("../Resources"), + ], + publicHeadersPath: "include", + cxxSettings: [ + .headerSearchPath("../DynamicFramework"), + .headerSearchPath("."), + .headerSearchPath("API"), + .headerSearchPath("API/methods"), + .headerSearchPath("API/models"), + .headerSearchPath("API/upload"), + .headerSearchPath("Core"), + .headerSearchPath("Image"), + .headerSearchPath("Utils"), + .headerSearchPath("Views"), + ] + ), + .testTarget( + name: "vk-ios-sdk-tests", + dependencies: ["vk-ios-sdk"], + path: "VKSdkTests" + ) + ] +) diff --git a/library/Source/include/NSError+VKError.h b/library/Source/include/NSError+VKError.h new file mode 120000 index 00000000..99fcd241 --- /dev/null +++ b/library/Source/include/NSError+VKError.h @@ -0,0 +1 @@ +../Core/NSError+VKError.h \ No newline at end of file diff --git a/library/Source/include/NSString+MD5.h b/library/Source/include/NSString+MD5.h new file mode 120000 index 00000000..7e9adebf --- /dev/null +++ b/library/Source/include/NSString+MD5.h @@ -0,0 +1 @@ +../Utils/NSString+MD5.h \ No newline at end of file diff --git a/library/Source/include/OrderedDictionary.h b/library/Source/include/OrderedDictionary.h new file mode 120000 index 00000000..85114d9f --- /dev/null +++ b/library/Source/include/OrderedDictionary.h @@ -0,0 +1 @@ +../Utils/OrderedDictionary.h \ No newline at end of file diff --git a/library/Source/include/VKAccessToken.h b/library/Source/include/VKAccessToken.h new file mode 120000 index 00000000..3e7f184a --- /dev/null +++ b/library/Source/include/VKAccessToken.h @@ -0,0 +1 @@ +../VKAccessToken.h \ No newline at end of file diff --git a/library/Source/include/VKActivity.h b/library/Source/include/VKActivity.h new file mode 120000 index 00000000..d2a8172f --- /dev/null +++ b/library/Source/include/VKActivity.h @@ -0,0 +1 @@ +../Views/VKActivity.h \ No newline at end of file diff --git a/library/Source/include/VKApi.h b/library/Source/include/VKApi.h new file mode 120000 index 00000000..b80b3742 --- /dev/null +++ b/library/Source/include/VKApi.h @@ -0,0 +1 @@ +../API/VKApi.h \ No newline at end of file diff --git a/library/Source/include/VKApiBase.h b/library/Source/include/VKApiBase.h new file mode 120000 index 00000000..c6bd3a32 --- /dev/null +++ b/library/Source/include/VKApiBase.h @@ -0,0 +1 @@ +../API/methods/VKApiBase.h \ No newline at end of file diff --git a/library/Source/include/VKApiCaptcha.h b/library/Source/include/VKApiCaptcha.h new file mode 120000 index 00000000..d3b924f6 --- /dev/null +++ b/library/Source/include/VKApiCaptcha.h @@ -0,0 +1 @@ +../API/methods/VKApiCaptcha.h \ No newline at end of file diff --git a/library/Source/include/VKApiConst.h b/library/Source/include/VKApiConst.h new file mode 120000 index 00000000..aa12b18a --- /dev/null +++ b/library/Source/include/VKApiConst.h @@ -0,0 +1 @@ +../API/methods/VKApiConst.h \ No newline at end of file diff --git a/library/Source/include/VKApiDocs.h b/library/Source/include/VKApiDocs.h new file mode 120000 index 00000000..495e385e --- /dev/null +++ b/library/Source/include/VKApiDocs.h @@ -0,0 +1 @@ +../API/methods/VKApiDocs.h \ No newline at end of file diff --git a/library/Source/include/VKApiFriends.h b/library/Source/include/VKApiFriends.h new file mode 120000 index 00000000..ce99862c --- /dev/null +++ b/library/Source/include/VKApiFriends.h @@ -0,0 +1 @@ +../API/methods/VKApiFriends.h \ No newline at end of file diff --git a/library/Source/include/VKApiGroups.h b/library/Source/include/VKApiGroups.h new file mode 120000 index 00000000..1be9125c --- /dev/null +++ b/library/Source/include/VKApiGroups.h @@ -0,0 +1 @@ +../API/methods/VKApiGroups.h \ No newline at end of file diff --git a/library/Source/include/VKApiModels.h b/library/Source/include/VKApiModels.h new file mode 120000 index 00000000..c8ce56b8 --- /dev/null +++ b/library/Source/include/VKApiModels.h @@ -0,0 +1 @@ +../API/methods/VKApiModels.h \ No newline at end of file diff --git a/library/Source/include/VKApiObject.h b/library/Source/include/VKApiObject.h new file mode 120000 index 00000000..c7af5a78 --- /dev/null +++ b/library/Source/include/VKApiObject.h @@ -0,0 +1 @@ +../API/models/VKApiObject.h \ No newline at end of file diff --git a/library/Source/include/VKApiObjectArray.h b/library/Source/include/VKApiObjectArray.h new file mode 120000 index 00000000..7ca37f22 --- /dev/null +++ b/library/Source/include/VKApiObjectArray.h @@ -0,0 +1 @@ +../API/models/VKApiObjectArray.h \ No newline at end of file diff --git a/library/Source/include/VKApiPhotos.h b/library/Source/include/VKApiPhotos.h new file mode 120000 index 00000000..7ce6159f --- /dev/null +++ b/library/Source/include/VKApiPhotos.h @@ -0,0 +1 @@ +../API/methods/VKApiPhotos.h \ No newline at end of file diff --git a/library/Source/include/VKApiUsers.h b/library/Source/include/VKApiUsers.h new file mode 120000 index 00000000..bbba599b --- /dev/null +++ b/library/Source/include/VKApiUsers.h @@ -0,0 +1 @@ +../API/methods/VKApiUsers.h \ No newline at end of file diff --git a/library/Source/include/VKApiWall.h b/library/Source/include/VKApiWall.h new file mode 120000 index 00000000..b81a7ab6 --- /dev/null +++ b/library/Source/include/VKApiWall.h @@ -0,0 +1 @@ +../API/methods/VKApiWall.h \ No newline at end of file diff --git a/library/Source/include/VKAuthorizationResult.h b/library/Source/include/VKAuthorizationResult.h new file mode 120000 index 00000000..91f5f972 --- /dev/null +++ b/library/Source/include/VKAuthorizationResult.h @@ -0,0 +1 @@ +../VKAuthorizationResult.h \ No newline at end of file diff --git a/library/Source/include/VKAuthorizeController.h b/library/Source/include/VKAuthorizeController.h new file mode 120000 index 00000000..8c844386 --- /dev/null +++ b/library/Source/include/VKAuthorizeController.h @@ -0,0 +1 @@ +../Views/VKAuthorizeController.h \ No newline at end of file diff --git a/library/Source/include/VKBatchRequest.h b/library/Source/include/VKBatchRequest.h new file mode 120000 index 00000000..7b86d4ff --- /dev/null +++ b/library/Source/include/VKBatchRequest.h @@ -0,0 +1 @@ +../VKBatchRequest.h \ No newline at end of file diff --git a/library/Source/include/VKBundle.h b/library/Source/include/VKBundle.h new file mode 120000 index 00000000..99a526c7 --- /dev/null +++ b/library/Source/include/VKBundle.h @@ -0,0 +1 @@ +../VKBundle.h \ No newline at end of file diff --git a/library/Source/include/VKCaptchaView.h b/library/Source/include/VKCaptchaView.h new file mode 120000 index 00000000..e0bfe974 --- /dev/null +++ b/library/Source/include/VKCaptchaView.h @@ -0,0 +1 @@ +../Views/VKCaptchaView.h \ No newline at end of file diff --git a/library/Source/include/VKCaptchaViewController.h b/library/Source/include/VKCaptchaViewController.h new file mode 120000 index 00000000..28281523 --- /dev/null +++ b/library/Source/include/VKCaptchaViewController.h @@ -0,0 +1 @@ +../Views/VKCaptchaViewController.h \ No newline at end of file diff --git a/library/Source/include/VKCounters.h b/library/Source/include/VKCounters.h new file mode 120000 index 00000000..9950ab2c --- /dev/null +++ b/library/Source/include/VKCounters.h @@ -0,0 +1 @@ +../API/models/VKCounters.h \ No newline at end of file diff --git a/library/Source/include/VKDocs.h b/library/Source/include/VKDocs.h new file mode 120000 index 00000000..2a424398 --- /dev/null +++ b/library/Source/include/VKDocs.h @@ -0,0 +1 @@ +../API/models/VKDocs.h \ No newline at end of file diff --git a/library/Source/include/VKError.h b/library/Source/include/VKError.h new file mode 120000 index 00000000..f6c9add1 --- /dev/null +++ b/library/Source/include/VKError.h @@ -0,0 +1 @@ +../Core/VKError.h \ No newline at end of file diff --git a/library/Source/include/VKGroup.h b/library/Source/include/VKGroup.h new file mode 120000 index 00000000..1f541184 --- /dev/null +++ b/library/Source/include/VKGroup.h @@ -0,0 +1 @@ +../API/models/VKGroup.h \ No newline at end of file diff --git a/library/Source/include/VKHTTPClient.h b/library/Source/include/VKHTTPClient.h new file mode 120000 index 00000000..f414a903 --- /dev/null +++ b/library/Source/include/VKHTTPClient.h @@ -0,0 +1 @@ +../Core/VKHTTPClient.h \ No newline at end of file diff --git a/library/Source/include/VKHTTPOperation.h b/library/Source/include/VKHTTPOperation.h new file mode 120000 index 00000000..6e95c003 --- /dev/null +++ b/library/Source/include/VKHTTPOperation.h @@ -0,0 +1 @@ +../Core/VKHTTPOperation.h \ No newline at end of file diff --git a/library/Source/include/VKImageParameters.h b/library/Source/include/VKImageParameters.h new file mode 120000 index 00000000..5c680332 --- /dev/null +++ b/library/Source/include/VKImageParameters.h @@ -0,0 +1 @@ +../Image/VKImageParameters.h \ No newline at end of file diff --git a/library/Source/include/VKJSONOperation.h b/library/Source/include/VKJSONOperation.h new file mode 120000 index 00000000..07886adb --- /dev/null +++ b/library/Source/include/VKJSONOperation.h @@ -0,0 +1 @@ +../Core/VKJSONOperation.h \ No newline at end of file diff --git a/library/Source/include/VKLikes.h b/library/Source/include/VKLikes.h new file mode 120000 index 00000000..1e986194 --- /dev/null +++ b/library/Source/include/VKLikes.h @@ -0,0 +1 @@ +../API/models/VKLikes.h \ No newline at end of file diff --git a/library/Source/include/VKObject.h b/library/Source/include/VKObject.h new file mode 120000 index 00000000..4c3148ec --- /dev/null +++ b/library/Source/include/VKObject.h @@ -0,0 +1 @@ +../Core/VKObject.h \ No newline at end of file diff --git a/library/Source/include/VKOperation.h b/library/Source/include/VKOperation.h new file mode 120000 index 00000000..094b4804 --- /dev/null +++ b/library/Source/include/VKOperation.h @@ -0,0 +1 @@ +../Core/VKOperation.h \ No newline at end of file diff --git a/library/Source/include/VKPermissions.h b/library/Source/include/VKPermissions.h new file mode 120000 index 00000000..0eaa1bdd --- /dev/null +++ b/library/Source/include/VKPermissions.h @@ -0,0 +1 @@ +../VKPermissions.h \ No newline at end of file diff --git a/library/Source/include/VKPhoto.h b/library/Source/include/VKPhoto.h new file mode 120000 index 00000000..b7aa45cb --- /dev/null +++ b/library/Source/include/VKPhoto.h @@ -0,0 +1 @@ +../API/models/VKPhoto.h \ No newline at end of file diff --git a/library/Source/include/VKPhotoSize.h b/library/Source/include/VKPhotoSize.h new file mode 120000 index 00000000..256e482a --- /dev/null +++ b/library/Source/include/VKPhotoSize.h @@ -0,0 +1 @@ +../API/models/VKPhotoSize.h \ No newline at end of file diff --git a/library/Source/include/VKRelative.h b/library/Source/include/VKRelative.h new file mode 120000 index 00000000..ab0bcf5f --- /dev/null +++ b/library/Source/include/VKRelative.h @@ -0,0 +1 @@ +../API/models/VKRelative.h \ No newline at end of file diff --git a/library/Source/include/VKRequest.h b/library/Source/include/VKRequest.h new file mode 120000 index 00000000..8b697159 --- /dev/null +++ b/library/Source/include/VKRequest.h @@ -0,0 +1 @@ +../Core/VKRequest.h \ No newline at end of file diff --git a/library/Source/include/VKRequestsScheduler.h b/library/Source/include/VKRequestsScheduler.h new file mode 120000 index 00000000..1c17fbd2 --- /dev/null +++ b/library/Source/include/VKRequestsScheduler.h @@ -0,0 +1 @@ +../Core/VKRequestsScheduler.h \ No newline at end of file diff --git a/library/Source/include/VKResponse.h b/library/Source/include/VKResponse.h new file mode 120000 index 00000000..35e6c012 --- /dev/null +++ b/library/Source/include/VKResponse.h @@ -0,0 +1 @@ +../Core/VKResponse.h \ No newline at end of file diff --git a/library/Source/include/VKSchool.h b/library/Source/include/VKSchool.h new file mode 120000 index 00000000..be11bcb5 --- /dev/null +++ b/library/Source/include/VKSchool.h @@ -0,0 +1 @@ +../API/models/VKSchool.h \ No newline at end of file diff --git a/library/Source/include/VKSdk.h b/library/Source/include/VKSdk.h new file mode 120000 index 00000000..9c43d839 --- /dev/null +++ b/library/Source/include/VKSdk.h @@ -0,0 +1 @@ +../VKSdk.h \ No newline at end of file diff --git a/library/Source/include/VKSdkVersion.h b/library/Source/include/VKSdkVersion.h new file mode 120000 index 00000000..b4de82ad --- /dev/null +++ b/library/Source/include/VKSdkVersion.h @@ -0,0 +1 @@ +../VKSdkVersion.h \ No newline at end of file diff --git a/library/Source/include/VKShareDialogController.h b/library/Source/include/VKShareDialogController.h new file mode 120000 index 00000000..76c5877b --- /dev/null +++ b/library/Source/include/VKShareDialogController.h @@ -0,0 +1 @@ +../Views/VKShareDialogController.h \ No newline at end of file diff --git a/library/Source/include/VKSharedTransitioningObject.h b/library/Source/include/VKSharedTransitioningObject.h new file mode 120000 index 00000000..1548ec7c --- /dev/null +++ b/library/Source/include/VKSharedTransitioningObject.h @@ -0,0 +1 @@ +../Views/VKSharedTransitioningObject.h \ No newline at end of file diff --git a/library/Source/include/VKUniversity.h b/library/Source/include/VKUniversity.h new file mode 120000 index 00000000..8a99a9fe --- /dev/null +++ b/library/Source/include/VKUniversity.h @@ -0,0 +1 @@ +../API/models/VKUniversity.h \ No newline at end of file diff --git a/library/Source/include/VKUploadImage.h b/library/Source/include/VKUploadImage.h new file mode 120000 index 00000000..ac66b9b7 --- /dev/null +++ b/library/Source/include/VKUploadImage.h @@ -0,0 +1 @@ +../Image/VKUploadImage.h \ No newline at end of file diff --git a/library/Source/include/VKUploadMessagesPhotoRequest.h b/library/Source/include/VKUploadMessagesPhotoRequest.h new file mode 120000 index 00000000..6b3d9e25 --- /dev/null +++ b/library/Source/include/VKUploadMessagesPhotoRequest.h @@ -0,0 +1 @@ +../API/upload/VKUploadMessagesPhotoRequest.h \ No newline at end of file diff --git a/library/Source/include/VKUploadPhotoBase.h b/library/Source/include/VKUploadPhotoBase.h new file mode 120000 index 00000000..ca8243ab --- /dev/null +++ b/library/Source/include/VKUploadPhotoBase.h @@ -0,0 +1 @@ +../API/upload/VKUploadPhotoBase.h \ No newline at end of file diff --git a/library/Source/include/VKUploadPhotoRequest.h b/library/Source/include/VKUploadPhotoRequest.h new file mode 120000 index 00000000..1be0e55d --- /dev/null +++ b/library/Source/include/VKUploadPhotoRequest.h @@ -0,0 +1 @@ +../API/upload/VKUploadPhotoRequest.h \ No newline at end of file diff --git a/library/Source/include/VKUploadWallPhotoRequest.h b/library/Source/include/VKUploadWallPhotoRequest.h new file mode 120000 index 00000000..7c393ffc --- /dev/null +++ b/library/Source/include/VKUploadWallPhotoRequest.h @@ -0,0 +1 @@ +../API/upload/VKUploadWallPhotoRequest.h \ No newline at end of file diff --git a/library/Source/include/VKUser.h b/library/Source/include/VKUser.h new file mode 120000 index 00000000..7b9740d4 --- /dev/null +++ b/library/Source/include/VKUser.h @@ -0,0 +1 @@ +../API/models/VKUser.h \ No newline at end of file diff --git a/library/Source/include/VKUtil.h b/library/Source/include/VKUtil.h new file mode 120000 index 00000000..35b0bd49 --- /dev/null +++ b/library/Source/include/VKUtil.h @@ -0,0 +1 @@ +../Utils/VKUtil.h \ No newline at end of file