├── .gitignore ├── LICENSE ├── RCTVkSdkLoginManager.h ├── RCTVkSdkLoginManager.m ├── README.md ├── docs ├── add.png └── plist.png ├── index.ios.js ├── package.json └── vk-ios-sdk ├── .gitignore ├── LICENSE ├── README.md ├── VK-ios-sdk.podspec ├── VK-ios-sdk.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ ├── VK-ios-sdk.xccheckout │ │ └── VKSdk.xccheckout └── xcshareddata │ └── xcschemes │ └── Framework.xcscheme ├── VK-ios-sdk.xcworkspace ├── contents.xcworkspacedata └── xcshareddata │ └── VK-ios-sdk.xccheckout ├── VKSdk.framework ├── Headers │ ├── NSError+VKError.h │ ├── VKAccessToken.h │ ├── VKActivity.h │ ├── VKApi.h │ ├── VKApiBase.h │ ├── VKApiCaptcha.h │ ├── VKApiConst.h │ ├── VKApiFriends.h │ ├── VKApiGroups.h │ ├── VKApiModels.h │ ├── VKApiObject.h │ ├── VKApiObjectArray.h │ ├── VKApiPhotos.h │ ├── VKApiUsers.h │ ├── VKApiWall.h │ ├── VKAudio.h │ ├── VKAuthorizationResult.h │ ├── VKAuthorizeController.h │ ├── VKBatchRequest.h │ ├── VKBundle.h │ ├── VKCaptchaView.h │ ├── VKCaptchaViewController.h │ ├── VKCounters.h │ ├── VKError.h │ ├── VKGroup.h │ ├── VKImageParameters.h │ ├── VKLikes.h │ ├── VKObject.h │ ├── VKOperation.h │ ├── VKPermissions.h │ ├── VKPhoto.h │ ├── VKPhotoSize.h │ ├── VKRelative.h │ ├── VKRequest.h │ ├── VKResponse.h │ ├── VKSchool.h │ ├── VKSdk.h │ ├── VKSdkVersion.h │ ├── VKShareDialogController.h │ ├── VKUniversity.h │ ├── VKUploadImage.h │ ├── VKUploadMessagesPhotoRequest.h │ ├── VKUploadPhotoBase.h │ ├── VKUploadPhotoRequest.h │ ├── VKUploadWallPhotoRequest.h │ ├── VKUser.h │ └── VKUtil.h ├── VKSdk └── Versions │ ├── A │ ├── Headers │ │ ├── NSError+VKError.h │ │ ├── VKAccessToken.h │ │ ├── VKActivity.h │ │ ├── VKApi.h │ │ ├── VKApiBase.h │ │ ├── VKApiCaptcha.h │ │ ├── VKApiConst.h │ │ ├── VKApiFriends.h │ │ ├── VKApiGroups.h │ │ ├── VKApiModels.h │ │ ├── VKApiObject.h │ │ ├── VKApiObjectArray.h │ │ ├── VKApiPhotos.h │ │ ├── VKApiUsers.h │ │ ├── VKApiWall.h │ │ ├── VKAudio.h │ │ ├── VKAuthorizationResult.h │ │ ├── VKAuthorizeController.h │ │ ├── VKBatchRequest.h │ │ ├── VKBundle.h │ │ ├── VKCaptchaView.h │ │ ├── VKCaptchaViewController.h │ │ ├── VKCounters.h │ │ ├── VKError.h │ │ ├── VKGroup.h │ │ ├── VKImageParameters.h │ │ ├── VKLikes.h │ │ ├── VKObject.h │ │ ├── VKOperation.h │ │ ├── VKPermissions.h │ │ ├── VKPhoto.h │ │ ├── VKPhotoSize.h │ │ ├── VKRelative.h │ │ ├── VKRequest.h │ │ ├── VKResponse.h │ │ ├── VKSchool.h │ │ ├── VKSdk.h │ │ ├── VKSdkVersion.h │ │ ├── VKShareDialogController.h │ │ ├── VKUniversity.h │ │ ├── VKUploadImage.h │ │ ├── VKUploadMessagesPhotoRequest.h │ │ ├── VKUploadPhotoBase.h │ │ ├── VKUploadPhotoRequest.h │ │ ├── VKUploadWallPhotoRequest.h │ │ ├── VKUser.h │ │ └── VKUtil.h │ └── VKSdk │ └── Current │ ├── Headers │ ├── NSError+VKError.h │ ├── VKAccessToken.h │ ├── VKActivity.h │ ├── VKApi.h │ ├── VKApiBase.h │ ├── VKApiCaptcha.h │ ├── VKApiConst.h │ ├── VKApiFriends.h │ ├── VKApiGroups.h │ ├── VKApiModels.h │ ├── VKApiObject.h │ ├── VKApiObjectArray.h │ ├── VKApiPhotos.h │ ├── VKApiUsers.h │ ├── VKApiWall.h │ ├── VKAudio.h │ ├── VKAuthorizationResult.h │ ├── VKAuthorizeController.h │ ├── VKBatchRequest.h │ ├── VKBundle.h │ ├── VKCaptchaView.h │ ├── VKCaptchaViewController.h │ ├── VKCounters.h │ ├── VKError.h │ ├── VKGroup.h │ ├── VKImageParameters.h │ ├── VKLikes.h │ ├── VKObject.h │ ├── VKOperation.h │ ├── VKPermissions.h │ ├── VKPhoto.h │ ├── VKPhotoSize.h │ ├── VKRelative.h │ ├── VKRequest.h │ ├── VKResponse.h │ ├── VKSchool.h │ ├── VKSdk.h │ ├── VKSdkVersion.h │ ├── VKShareDialogController.h │ ├── VKUniversity.h │ ├── VKUploadImage.h │ ├── VKUploadMessagesPhotoRequest.h │ ├── VKUploadPhotoBase.h │ ├── VKUploadPhotoRequest.h │ ├── VKUploadWallPhotoRequest.h │ ├── VKUser.h │ └── VKUtil.h │ └── VKSdk ├── VKSdkResources.bundle ├── BlueBtn.png ├── BlueBtn@2x.png ├── BlueBtn@3x.png ├── BlueBtn_pressed.png ├── BlueBtn_pressed@2x.png ├── BlueBtn_pressed@3x.png ├── Disclosure.png ├── Disclosure@2x.png ├── Disclosure@3x.png ├── Info.plist ├── en.lproj │ ├── InfoPlist.strings │ └── Localizable.strings ├── ic_deleteattach.png ├── ic_deleteattach@2x.png ├── ic_deletephoto.png ├── ic_deletephoto@2x.png ├── ic_vk_activity_logo.png ├── ic_vk_activity_logo@2x.png ├── ic_vk_activity_logo@2x~ipad.png ├── ic_vk_activity_logo@3x.png ├── ic_vk_activity_logo~ipad.png ├── ic_vk_ios7_activity_logo.png ├── ic_vk_ios7_activity_logo@2x.png ├── ic_vk_ios7_activity_logo@2x~ipad.png ├── ic_vk_ios7_activity_logo@3x.png ├── ic_vk_ios7_activity_logo~ipad.png ├── ic_vk_logo_nb.png ├── ic_vk_logo_nb@2x.png ├── ic_vk_logo_nb@3x.png ├── img_newpostattachlink.png ├── img_newpostattachlink@2x.png ├── ru.lproj │ └── Localizable.strings ├── vk_settings.png └── vk_settings@2x.png ├── example ├── VKSDKTestApplication.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ └── VKSDKTestApplication.xccheckout └── VKSDKTestApplication │ ├── ApiCallViewController.h │ ├── ApiCallViewController.m │ ├── Images.xcassets │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json │ ├── Storyboard.storyboard │ ├── TestViewController.h │ ├── TestViewController.m │ ├── VKAppDelegate.h │ ├── VKAppDelegate.m │ ├── VKSDKTestApplication-Info.plist │ ├── VKSDKTestApplication-Prefix.pch │ ├── VKStartScreen.h │ ├── VKStartScreen.m │ ├── apple.png │ ├── en.lproj │ └── InfoPlist.strings │ ├── main.m │ └── ru.lproj │ └── InfoPlist.strings └── library ├── DynamicFramework ├── Info.plist └── VKSdkFramework.h ├── Resources ├── BlueBtn.png ├── BlueBtn@2x.png ├── BlueBtn@3x.png ├── BlueBtn_pressed.png ├── BlueBtn_pressed@2x.png ├── BlueBtn_pressed@3x.png ├── Disclosure.png ├── Disclosure@2x.png ├── Disclosure@3x.png ├── Resources-Info.plist ├── en.lproj │ ├── InfoPlist.strings │ └── Localizable.strings ├── ic_deleteattach.png ├── ic_deleteattach@2x.png ├── ic_deletephoto.png ├── ic_deletephoto@2x.png ├── ic_vk_activity_logo.png ├── ic_vk_activity_logo@2x.png ├── ic_vk_activity_logo@2x~ipad.png ├── ic_vk_activity_logo@3x.png ├── ic_vk_activity_logo~ipad.png ├── ic_vk_ios7_activity_logo.png ├── ic_vk_ios7_activity_logo@2x.png ├── ic_vk_ios7_activity_logo@2x~ipad.png ├── ic_vk_ios7_activity_logo@3x.png ├── ic_vk_ios7_activity_logo~ipad.png ├── ic_vk_logo_nb.png ├── ic_vk_logo_nb@2x.png ├── ic_vk_logo_nb@3x.png ├── img_newpostattachlink.png ├── img_newpostattachlink@2x.png ├── ru.lproj │ └── Localizable.strings ├── vk_settings.png └── vk_settings@2x.png └── Source ├── API ├── VKApi.h ├── VKApi.m ├── methods │ ├── VKApiBase.h │ ├── VKApiBase.m │ ├── VKApiCaptcha.h │ ├── VKApiCaptcha.m │ ├── VKApiConst.h │ ├── VKApiConst.m │ ├── VKApiFriends.h │ ├── VKApiFriends.m │ ├── VKApiGroups.h │ ├── VKApiGroups.m │ ├── VKApiModels.h │ ├── VKApiPhotos.h │ ├── VKApiPhotos.m │ ├── VKApiUsers.h │ ├── VKApiUsers.m │ ├── VKApiWall.h │ └── VKApiWall.m ├── models │ ├── VKApiObject.h │ ├── VKApiObject.m │ ├── VKApiObjectArray.h │ ├── VKApiObjectArray.m │ ├── VKAudio.h │ ├── VKAudio.m │ ├── VKCounters.h │ ├── VKCounters.m │ ├── VKGroup.h │ ├── VKGroup.m │ ├── VKLikes.h │ ├── VKLikes.m │ ├── VKPhoto.h │ ├── VKPhoto.m │ ├── VKPhotoSize.h │ ├── VKPhotoSize.m │ ├── VKRelative.h │ ├── VKRelative.m │ ├── VKSchool.h │ ├── VKSchool.m │ ├── VKUniversity.h │ ├── VKUniversity.m │ ├── VKUser.h │ └── VKUser.m └── upload │ ├── VKUploadMessagesPhotoRequest.h │ ├── VKUploadMessagesPhotoRequest.m │ ├── VKUploadPhotoBase.h │ ├── VKUploadPhotoBase.m │ ├── VKUploadPhotoRequest.h │ ├── VKUploadPhotoRequest.m │ ├── VKUploadWallPhotoRequest.h │ └── VKUploadWallPhotoRequest.m ├── Core ├── NSError+VKError.h ├── NSError+VKError.m ├── VKError.h ├── VKError.m ├── VKHTTPClient.h ├── VKHTTPClient.m ├── VKHTTPOperation.h ├── VKHTTPOperation.m ├── VKJSONOperation.h ├── VKJSONOperation.m ├── VKObject.h ├── VKObject.m ├── VKOperation.h ├── VKOperation.m ├── VKRequest.h ├── VKRequest.m ├── VKRequestsScheduler.h ├── VKRequestsScheduler.m ├── VKResponse.h └── VKResponse.m ├── Image ├── VKImageParameters.h ├── VKImageParameters.m ├── VKUploadImage.h └── VKUploadImage.m ├── Utils ├── NSData+MD5.h ├── NSData+MD5.m ├── NSString+MD5.h ├── NSString+MD5.m ├── OrderedDictionary.h ├── OrderedDictionary.m ├── VKUtil.h └── VKUtil.m ├── VKAccessToken.h ├── VKAccessToken.m ├── VKAuthorizationResult.h ├── VKAuthorizationResult.m ├── VKBatchRequest.h ├── VKBatchRequest.m ├── VKBundle.h ├── VKBundle.m ├── VKPermissions.h ├── VKPermissions.m ├── VKSdk.h ├── VKSdk.m ├── VKSdkVersion.h └── Views ├── VKActivity.h ├── VKActivity.m ├── VKAuthorizeController.h ├── VKAuthorizeController.m ├── VKCaptchaView.h ├── VKCaptchaView.m ├── VKCaptchaViewController.h ├── VKCaptchaViewController.m ├── VKShareDialogController.h ├── VKShareDialogController.m ├── VKSharedTransitioningObject.h └── VKSharedTransitioningObject.m /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Aleksei Androsov 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /RCTVkSdkLoginManager.h: -------------------------------------------------------------------------------- 1 | #import "RCTBridgeModule.h" 2 | #import "VKSdk/VKSdk.h" 3 | 4 | @interface RCTVkSdkLoginManager : NSObject 5 | @end 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![NPM version](https://badge.fury.io/js/react-native-vksdk.svg)](http://badge.fury.io/js/react-native-vksdk) 2 | # react-native-vk-sdk 3 | 4 | A wrapper around the [iOS VK (VKontakte) SDK](https://github.com/VKCOM/vk-ios-sdk) for React Native apps. 5 | 6 | ## Setup 7 | 8 | 1. Install package: `npm install react-native-vksdk` 9 | 1. Setup your app for [VK iOS SDK](https://github.com/VKCOM/vk-ios-sdk) 10 | 2. Add `VkAppID` key to Info.plist preview 11 | 3. Add `RCTVkSdkLoginManager.h` and `RCTVkSdkLoginManager.m` to you Libraries. preview 12 | 13 | ## Usage 14 | 15 | ```js 16 | var Vk = require('react-native-vksdk'); 17 | 18 | // authorize and get token 19 | Vk.authorize() 20 | .then((result) => { 21 | // your code here 22 | }, (error) => { 23 | // your code here 24 | }); 25 | 26 | // logout 27 | Vk.logout(); 28 | 29 | ``` 30 | -------------------------------------------------------------------------------- /docs/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/docs/add.png -------------------------------------------------------------------------------- /docs/plist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/docs/plist.png -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var VkSdkLoginManager = require('react-native').NativeModules.VkSdkLoginManager; 4 | 5 | module.exports = { 6 | 7 | /** 8 | * Starts authorization process to retrieve unlimited token. 9 | * If VKapp is available in system, it will opens and requests access from user. 10 | * Otherwise Mobile Safari will be opened for access request. 11 | * @returns {Promise} 12 | */ 13 | authorize: function() { 14 | return new Promise(function(resolve, reject) { 15 | VkSdkLoginManager.authorize(function(error, result) { 16 | if (error) { 17 | reject(error); 18 | } else { 19 | resolve(result); 20 | } 21 | }); 22 | }); 23 | }, 24 | 25 | /** 26 | * Forces logout using OAuth (with VKAuthorizeController). Removes all cookies for *.vk.com. 27 | * Has no effect for logout in VK app. 28 | */ 29 | logout: function() { 30 | VkSdkLoginManager.logout(); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-vksdk", 3 | "version": "0.0.3", 4 | "description": "A wrapper around the iOS VK (VKontakte) SDK for React Native apps", 5 | "homepage": "https://github.com/doochik/react-native-vk-sdk", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/doochik/react-native-vksdk.git" 9 | }, 10 | "main": "index.ios.js", 11 | "peerDependencies": { 12 | "react-native": ">=0.12.0" 13 | }, 14 | "scripts": { 15 | "test": "echo \"Error: no test specified\" && exit 1" 16 | }, 17 | "keywords": [ 18 | "react", 19 | "react-native", 20 | "react-component", 21 | "ios", 22 | "vk", 23 | "vkontakte" 24 | ], 25 | "author": { 26 | "name": "Aleksei Androsov", 27 | "url": "http://github.com/doochik" 28 | }, 29 | "license": "MIT", 30 | "bugs": { 31 | "url": "https://github.com/doochik/react-native-vksdk/issues" 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vk-ios-sdk/.gitignore: -------------------------------------------------------------------------------- 1 | #OS noise 2 | profile 3 | [Tt]humbs.db 4 | *.DS_Store 5 | *~ 6 | *.swp 7 | *.out 8 | *.bak* 9 | *.lock 10 | 11 | #Other CSM 12 | .hg 13 | .svn 14 | CVS 15 | 16 | #Xcode noise 17 | *.log 18 | *~.nib 19 | *.moved-aside 20 | **/*.xcuserdata/* 21 | xcuserdata 22 | 23 | #Project files 24 | [Bb]uild/ 25 | DerivedData/ 26 | 27 | #CocoaPods 28 | Pods 29 | 30 | #AppCode 31 | */.idea/* 32 | .idea/* 33 | 34 | SDKBuildSteps.info 35 | -------------------------------------------------------------------------------- /vk-ios-sdk/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 VK.com 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vk-ios-sdk/VK-ios-sdk.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "VK-ios-sdk" 3 | s.version = "1.3.1" 4 | s.summary = "Library for working with VK." 5 | s.homepage = "https://github.com/VKCOM/vk-ios-sdk" 6 | s.license = 'MIT' 7 | s.author = { "Roman Truba" => "dreddkr@gmail.com" } 8 | s.platform = :ios, '6.0' 9 | s.source = { :git => "https://github.com/VKCOM/vk-ios-sdk.git", :tag => s.version.to_s } 10 | s.source_files = 'library/source/**/*.{h,m}' 11 | s.public_header_files = 'library/source/**/*.h' 12 | s.resources = "VKSdkResources.bundle" 13 | s.frameworks = 'Foundation','UIKit' 14 | s.requires_arc = true 15 | end 16 | -------------------------------------------------------------------------------- /vk-ios-sdk/VK-ios-sdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vk-ios-sdk/VK-ios-sdk.xcodeproj/project.xcworkspace/xcshareddata/VK-ios-sdk.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | C8933561-83EC-4A85-B929-CB503A995C4D 9 | IDESourceControlProjectName 10 | VK-ios-sdk 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 14 | github.com:VKCOM/vk-ios-sdk.git 15 | 16 | IDESourceControlProjectPath 17 | library/VK-ios-sdk.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 21 | ../../.. 22 | 23 | IDESourceControlProjectURL 24 | github.com:VKCOM/vk-ios-sdk.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 36 | IDESourceControlWCCName 37 | vk-ios-sdk 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VK-ios-sdk.xcodeproj/project.xcworkspace/xcshareddata/VKSdk.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | BD9FB851-AE91-4CA6-ADE0-B5714551D043 9 | IDESourceControlProjectName 10 | VKSdk 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 14 | github.com:VKCOM/vk-ios-sdk.git 15 | 16 | IDESourceControlProjectPath 17 | VKSdk.xcodeproj 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | github.com:VKCOM/vk-ios-sdk.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 36 | IDESourceControlWCCName 37 | vk-ios-sdk-pub 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VK-ios-sdk.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /vk-ios-sdk/VK-ios-sdk.xcworkspace/xcshareddata/VK-ios-sdk.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | D2B31607-2F25-4041-8719-7694C0CEFCA7 9 | IDESourceControlProjectName 10 | VK-ios-sdk 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 14 | github.com:VKCOM/vk-ios-sdk.git 15 | 16 | IDESourceControlProjectPath 17 | VK-ios-sdk.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 21 | .. 22 | 23 | IDESourceControlProjectURL 24 | github.com:VKCOM/vk-ios-sdk.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 36 | IDESourceControlWCCName 37 | vk-ios-sdk 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKActivity.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKActivity.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | extern NSString *const VKActivityTypePost; 26 | 27 | /** 28 | * Class for sharing in VK throught UIActivityController 29 | */ 30 | @interface VKActivity : UIActivity 31 | 32 | /** 33 | * You should call this method to checks if VK app can show share extension (available from version 2.4, but flag supported in 2.5). 34 | * 35 | * @return YES, if VK Share extension available, and you don't have use VKActivity class 36 | */ 37 | + (BOOL)vkShareExtensionEnabled; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKApiCaptcha.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiCaptcha.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Methods for captcha work. Currently, it is 1 method for forcing captcha response 27 | */ 28 | @interface VKApiCaptcha : VKApiBase 29 | /** 30 | Returns error for captcha debugging 31 | @return Request to load 32 | */ 33 | - (VKRequest *)force; 34 | @end 35 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKApiFriends.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiFriends.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.users part 27 | */ 28 | @interface VKApiFriends : VKApiBase 29 | - (VKRequest *)get; 30 | 31 | - (VKRequest *)get:(NSDictionary *)params; 32 | @end 33 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKApiGroups.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiGroups.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 16.07.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiBase.h" 10 | 11 | @interface VKApiGroups : VKApiBase 12 | /** 13 | https://vk.com/dev/groups.get 14 | @param params use parameters from description with VK_API prefix, e.g. VK_API_GROUP_ID, VK_API_FIELDS 15 | @return Request for load 16 | */ 17 | - (VKRequest *)getById:(NSDictionary *)params; 18 | @end 19 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKApiModels.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiModels.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | #import "VKAudio.h" 25 | #import "VKPhoto.h" 26 | #import "VKLikes.h" 27 | #import "VKUser.h" 28 | #import "VKRelative.h" 29 | #import "VKCounters.h" 30 | #import "VKLikes.h" 31 | #import "VKSchool.h" 32 | #import "VKUniversity.h" 33 | #import "VKGroup.h" -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKApiWall.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiWall.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.wall part 27 | */ 28 | @interface VKApiWall : VKApiBase 29 | /** 30 | https://vk.com/dev/wall.post 31 | @param params Use parameters from description with VK_API prefix 32 | @return Request for execution 33 | */ 34 | - (VKRequest *)post:(NSDictionary *)params; 35 | @end 36 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKAuthorizationResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKAuthorizationResult.h 3 | // 4 | // Copyright (c) 2015 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKAccessToken.h" 24 | #import "VKError.h" 25 | 26 | @interface VKAuthorizationResult : VKObject 27 | @property(nonatomic, strong) VKAccessToken *token; 28 | @property(nonatomic, strong) VKUser *user; 29 | @property(nonatomic, strong) NSError *error; 30 | @end 31 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKCaptchaView.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKCaptchaView.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKError.h" 25 | 26 | extern CGFloat kCaptchaImageWidth; 27 | extern CGFloat kCaptchaImageHeight; 28 | extern CGFloat kCaptchaViewHeight; 29 | 30 | /** 31 | View for displaying captcha. Don't use it dirrectly. Use VKCaptchaViewController 32 | */ 33 | @interface VKCaptchaView : UIView 34 | /** 35 | Initializes view with captcha error 36 | @param frame bounds of window where view will be displayed 37 | @param captchaError error for request that causes captcha-check 38 | */ 39 | - (id)initWithFrame:(CGRect)frame andError:(VKError *)captchaError; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKCaptchaViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKCaptchaViewController.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKError.h" 25 | 26 | /** 27 | Controller fo displaying captcha. 28 | */ 29 | @interface VKCaptchaViewController : UIViewController { 30 | @private 31 | VKError *_captchaError; 32 | } 33 | /** 34 | Initializes controller with captcha url 35 | @param error error for request that causes captcha-check 36 | @returns Prepared controller. Best way to use it - use presentIn: method 37 | */ 38 | + (instancetype)captchaControllerWithError:(VKError *)error; 39 | 40 | /** 41 | Presents current view controller in another. Automatically hides when captcha was answered properly 42 | @param viewController Parent view controller 43 | */ 44 | - (void)presentIn:(UIViewController *)viewController; 45 | @end 46 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKLikes.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKLikes.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKApiObject.h" 25 | 26 | /** 27 | Likes type of VK API 28 | */ 29 | @interface VKLikes : VKApiObject 30 | #ifndef DOXYGEN_SHOULD_SKIP_THIS 31 | @property(nonatomic, strong) NSNumber *count; 32 | @property(nonatomic, strong) NSNumber *user_likes; 33 | @property(nonatomic, strong) NSNumber *can_like; 34 | @property(nonatomic, strong) NSNumber *can_publish; 35 | #endif 36 | @end 37 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKObject.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | @interface VKObject : NSObject 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKOperation.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | typedef enum { 26 | VKOperationPausedState = -1, 27 | VKOperationReadyState = 1, 28 | VKOperationExecutingState = 2, 29 | VKOperationFinishedState = 3, 30 | } VKOperationState; 31 | 32 | /** 33 | Basic class for operations 34 | */ 35 | @interface VKOperation : NSOperation 36 | /// This operation state. Value from VKOperationState enum 37 | @property(readwrite, nonatomic, assign) VKOperationState state; 38 | /// Operation working lock 39 | @property(readwrite, nonatomic, strong) NSRecursiveLock *lock; 40 | /// Sets dispatch queue for returning result 41 | @property(nonatomic, assign) dispatch_queue_t responseQueue; 42 | @end 43 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKPhotoSize.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKPhotoSize.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 11.08.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiObjectArray.h" 10 | 11 | @interface VKPhotoSize : VKApiObject 12 | @property(nonatomic, readwrite, copy) NSString *src; 13 | @property(nonatomic, readwrite, copy) NSNumber *width; 14 | @property(nonatomic, readwrite, copy) NSNumber *height; 15 | @property(nonatomic, readwrite, copy) NSString *type; 16 | @end 17 | 18 | @interface VKPhotoSizes : VKApiObjectArray 19 | - (VKPhotoSize *)photoSizeWithType:(NSString *)type; 20 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKRelative.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKRelative.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKRelative : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSString *type; 29 | 30 | @end 31 | 32 | @interface VKRelativities : VKApiObjectArray 33 | 34 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKResponse.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKObject.h" 24 | 25 | @class VKRequest; 26 | 27 | /** 28 | Class presenting answer from API 29 | */ 30 | @interface VKResponse : VKObject 31 | 32 | /// Request which caused response 33 | @property(nonatomic, weak) VKRequest *request; 34 | /// Json content of response. Can be array or object. 35 | @property(nonatomic, strong) id json; 36 | /// Model parsed from response 37 | @property(nonatomic, strong) id parsedModel; 38 | /// Original response string from server 39 | @property(nonatomic, copy) NSString *responseString; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKSchool.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSchool.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKSchool : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSNumber *country; 29 | @property(nonatomic, strong) NSNumber *city; 30 | @property(nonatomic, strong) NSString *name; 31 | @property(nonatomic, strong) NSNumber *year_from; 32 | @property(nonatomic, strong) NSNumber *year_to; 33 | @property(nonatomic, strong) NSNumber *year_graduated; 34 | @property(nonatomic, strong) NSString *Mclass; 35 | @property(nonatomic, strong) NSString *speciality; 36 | @property(nonatomic, strong) NSNumber *type; 37 | @property(nonatomic, strong) NSString *type_str; 38 | 39 | @end 40 | 41 | @interface VKSchools : VKApiObjectArray 42 | 43 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKSdkVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSdkVersion.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #define VK_SDK_VERSION @"1.3.1" 24 | #define VK_SDK_API_VERSION @"5.23" 25 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKUniversity.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUniversity.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKUniversity : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSNumber *country; 29 | @property(nonatomic, strong) NSNumber *city; 30 | @property(nonatomic, strong) NSString *name; 31 | @property(nonatomic, strong) NSNumber *faculty; 32 | @property(nonatomic, strong) NSString *faculty_name; 33 | @property(nonatomic, strong) NSNumber *chair; 34 | @property(nonatomic, strong) NSString *chair_name; 35 | @property(nonatomic, strong) NSNumber *graduation; 36 | @property(nonatomic, strong) NSString *education_form; 37 | @property(nonatomic, strong) NSString *education_status; 38 | 39 | @end 40 | 41 | @interface VKUniversities : VKApiObjectArray 42 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKUploadMessagesPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadMessagesPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | 24 | #import "VKUploadPhotoBase.h" 25 | 26 | @interface VKUploadMessagesPhotoRequest : VKUploadPhotoBase 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKUploadPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload photos to specified album 27 | */ 28 | @interface VKUploadPhotoRequest : VKUploadPhotoBase 29 | 30 | /** 31 | Initializes photo upload request with parameters 32 | @param image Image to upload 33 | @param parameters image parameters for upload 34 | @param albumId ID of album for photo 35 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 36 | @return Completed request for executing 37 | */ 38 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters albumId:(NSInteger)albumId groupId:(NSInteger)groupId; 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Headers/VKUploadWallPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadWallPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload single photo to user wall 27 | */ 28 | @interface VKUploadWallPhotoRequest : VKUploadPhotoBase 29 | /** 30 | Initializes photo upload request with parameters 31 | @param image Image to upload 32 | @param parameters image parameters for upload 33 | @param userId ID of user on which wall image should be posted (or nil) 34 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 35 | @return Completed request for executing 36 | */ 37 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters userId:(NSInteger)userId groupId:(NSInteger)groupId; 38 | @end 39 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/VKSdk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdk.framework/VKSdk -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKActivity.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKActivity.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | extern NSString *const VKActivityTypePost; 26 | 27 | /** 28 | * Class for sharing in VK throught UIActivityController 29 | */ 30 | @interface VKActivity : UIActivity 31 | 32 | /** 33 | * You should call this method to checks if VK app can show share extension (available from version 2.4, but flag supported in 2.5). 34 | * 35 | * @return YES, if VK Share extension available, and you don't have use VKActivity class 36 | */ 37 | + (BOOL)vkShareExtensionEnabled; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKApiCaptcha.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiCaptcha.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Methods for captcha work. Currently, it is 1 method for forcing captcha response 27 | */ 28 | @interface VKApiCaptcha : VKApiBase 29 | /** 30 | Returns error for captcha debugging 31 | @return Request to load 32 | */ 33 | - (VKRequest *)force; 34 | @end 35 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKApiFriends.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiFriends.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.users part 27 | */ 28 | @interface VKApiFriends : VKApiBase 29 | - (VKRequest *)get; 30 | 31 | - (VKRequest *)get:(NSDictionary *)params; 32 | @end 33 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKApiGroups.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiGroups.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 16.07.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiBase.h" 10 | 11 | @interface VKApiGroups : VKApiBase 12 | /** 13 | https://vk.com/dev/groups.get 14 | @param params use parameters from description with VK_API prefix, e.g. VK_API_GROUP_ID, VK_API_FIELDS 15 | @return Request for load 16 | */ 17 | - (VKRequest *)getById:(NSDictionary *)params; 18 | @end 19 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKApiModels.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiModels.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | #import "VKAudio.h" 25 | #import "VKPhoto.h" 26 | #import "VKLikes.h" 27 | #import "VKUser.h" 28 | #import "VKRelative.h" 29 | #import "VKCounters.h" 30 | #import "VKLikes.h" 31 | #import "VKSchool.h" 32 | #import "VKUniversity.h" 33 | #import "VKGroup.h" -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKApiWall.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiWall.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.wall part 27 | */ 28 | @interface VKApiWall : VKApiBase 29 | /** 30 | https://vk.com/dev/wall.post 31 | @param params Use parameters from description with VK_API prefix 32 | @return Request for execution 33 | */ 34 | - (VKRequest *)post:(NSDictionary *)params; 35 | @end 36 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKAuthorizationResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKAuthorizationResult.h 3 | // 4 | // Copyright (c) 2015 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKAccessToken.h" 24 | #import "VKError.h" 25 | 26 | @interface VKAuthorizationResult : VKObject 27 | @property(nonatomic, strong) VKAccessToken *token; 28 | @property(nonatomic, strong) VKUser *user; 29 | @property(nonatomic, strong) NSError *error; 30 | @end 31 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKCaptchaView.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKCaptchaView.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKError.h" 25 | 26 | extern CGFloat kCaptchaImageWidth; 27 | extern CGFloat kCaptchaImageHeight; 28 | extern CGFloat kCaptchaViewHeight; 29 | 30 | /** 31 | View for displaying captcha. Don't use it dirrectly. Use VKCaptchaViewController 32 | */ 33 | @interface VKCaptchaView : UIView 34 | /** 35 | Initializes view with captcha error 36 | @param frame bounds of window where view will be displayed 37 | @param captchaError error for request that causes captcha-check 38 | */ 39 | - (id)initWithFrame:(CGRect)frame andError:(VKError *)captchaError; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKLikes.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKLikes.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKApiObject.h" 25 | 26 | /** 27 | Likes type of VK API 28 | */ 29 | @interface VKLikes : VKApiObject 30 | #ifndef DOXYGEN_SHOULD_SKIP_THIS 31 | @property(nonatomic, strong) NSNumber *count; 32 | @property(nonatomic, strong) NSNumber *user_likes; 33 | @property(nonatomic, strong) NSNumber *can_like; 34 | @property(nonatomic, strong) NSNumber *can_publish; 35 | #endif 36 | @end 37 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKObject.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | @interface VKObject : NSObject 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKOperation.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | typedef enum { 26 | VKOperationPausedState = -1, 27 | VKOperationReadyState = 1, 28 | VKOperationExecutingState = 2, 29 | VKOperationFinishedState = 3, 30 | } VKOperationState; 31 | 32 | /** 33 | Basic class for operations 34 | */ 35 | @interface VKOperation : NSOperation 36 | /// This operation state. Value from VKOperationState enum 37 | @property(readwrite, nonatomic, assign) VKOperationState state; 38 | /// Operation working lock 39 | @property(readwrite, nonatomic, strong) NSRecursiveLock *lock; 40 | /// Sets dispatch queue for returning result 41 | @property(nonatomic, assign) dispatch_queue_t responseQueue; 42 | @end 43 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKPhotoSize.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKPhotoSize.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 11.08.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiObjectArray.h" 10 | 11 | @interface VKPhotoSize : VKApiObject 12 | @property(nonatomic, readwrite, copy) NSString *src; 13 | @property(nonatomic, readwrite, copy) NSNumber *width; 14 | @property(nonatomic, readwrite, copy) NSNumber *height; 15 | @property(nonatomic, readwrite, copy) NSString *type; 16 | @end 17 | 18 | @interface VKPhotoSizes : VKApiObjectArray 19 | - (VKPhotoSize *)photoSizeWithType:(NSString *)type; 20 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKRelative.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKRelative.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKRelative : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSString *type; 29 | 30 | @end 31 | 32 | @interface VKRelativities : VKApiObjectArray 33 | 34 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKResponse.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKObject.h" 24 | 25 | @class VKRequest; 26 | 27 | /** 28 | Class presenting answer from API 29 | */ 30 | @interface VKResponse : VKObject 31 | 32 | /// Request which caused response 33 | @property(nonatomic, weak) VKRequest *request; 34 | /// Json content of response. Can be array or object. 35 | @property(nonatomic, strong) id json; 36 | /// Model parsed from response 37 | @property(nonatomic, strong) id parsedModel; 38 | /// Original response string from server 39 | @property(nonatomic, copy) NSString *responseString; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKSchool.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSchool.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKSchool : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSNumber *country; 29 | @property(nonatomic, strong) NSNumber *city; 30 | @property(nonatomic, strong) NSString *name; 31 | @property(nonatomic, strong) NSNumber *year_from; 32 | @property(nonatomic, strong) NSNumber *year_to; 33 | @property(nonatomic, strong) NSNumber *year_graduated; 34 | @property(nonatomic, strong) NSString *Mclass; 35 | @property(nonatomic, strong) NSString *speciality; 36 | @property(nonatomic, strong) NSNumber *type; 37 | @property(nonatomic, strong) NSString *type_str; 38 | 39 | @end 40 | 41 | @interface VKSchools : VKApiObjectArray 42 | 43 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKSdkVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSdkVersion.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #define VK_SDK_VERSION @"1.3.1" 24 | #define VK_SDK_API_VERSION @"5.23" 25 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKUniversity.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUniversity.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKUniversity : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSNumber *country; 29 | @property(nonatomic, strong) NSNumber *city; 30 | @property(nonatomic, strong) NSString *name; 31 | @property(nonatomic, strong) NSNumber *faculty; 32 | @property(nonatomic, strong) NSString *faculty_name; 33 | @property(nonatomic, strong) NSNumber *chair; 34 | @property(nonatomic, strong) NSString *chair_name; 35 | @property(nonatomic, strong) NSNumber *graduation; 36 | @property(nonatomic, strong) NSString *education_form; 37 | @property(nonatomic, strong) NSString *education_status; 38 | 39 | @end 40 | 41 | @interface VKUniversities : VKApiObjectArray 42 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKUploadMessagesPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadMessagesPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | 24 | #import "VKUploadPhotoBase.h" 25 | 26 | @interface VKUploadMessagesPhotoRequest : VKUploadPhotoBase 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKUploadPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload photos to specified album 27 | */ 28 | @interface VKUploadPhotoRequest : VKUploadPhotoBase 29 | 30 | /** 31 | Initializes photo upload request with parameters 32 | @param image Image to upload 33 | @param parameters image parameters for upload 34 | @param albumId ID of album for photo 35 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 36 | @return Completed request for executing 37 | */ 38 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters albumId:(NSInteger)albumId groupId:(NSInteger)groupId; 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/Headers/VKUploadWallPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadWallPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload single photo to user wall 27 | */ 28 | @interface VKUploadWallPhotoRequest : VKUploadPhotoBase 29 | /** 30 | Initializes photo upload request with parameters 31 | @param image Image to upload 32 | @param parameters image parameters for upload 33 | @param userId ID of user on which wall image should be posted (or nil) 34 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 35 | @return Completed request for executing 36 | */ 37 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters userId:(NSInteger)userId groupId:(NSInteger)groupId; 38 | @end 39 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/A/VKSdk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdk.framework/Versions/A/VKSdk -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKActivity.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKActivity.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | extern NSString *const VKActivityTypePost; 26 | 27 | /** 28 | * Class for sharing in VK throught UIActivityController 29 | */ 30 | @interface VKActivity : UIActivity 31 | 32 | /** 33 | * You should call this method to checks if VK app can show share extension (available from version 2.4, but flag supported in 2.5). 34 | * 35 | * @return YES, if VK Share extension available, and you don't have use VKActivity class 36 | */ 37 | + (BOOL)vkShareExtensionEnabled; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKApiCaptcha.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiCaptcha.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Methods for captcha work. Currently, it is 1 method for forcing captcha response 27 | */ 28 | @interface VKApiCaptcha : VKApiBase 29 | /** 30 | Returns error for captcha debugging 31 | @return Request to load 32 | */ 33 | - (VKRequest *)force; 34 | @end 35 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKApiFriends.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiFriends.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.users part 27 | */ 28 | @interface VKApiFriends : VKApiBase 29 | - (VKRequest *)get; 30 | 31 | - (VKRequest *)get:(NSDictionary *)params; 32 | @end 33 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKApiGroups.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiGroups.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 16.07.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiBase.h" 10 | 11 | @interface VKApiGroups : VKApiBase 12 | /** 13 | https://vk.com/dev/groups.get 14 | @param params use parameters from description with VK_API prefix, e.g. VK_API_GROUP_ID, VK_API_FIELDS 15 | @return Request for load 16 | */ 17 | - (VKRequest *)getById:(NSDictionary *)params; 18 | @end 19 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKApiModels.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiModels.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | #import "VKAudio.h" 25 | #import "VKPhoto.h" 26 | #import "VKLikes.h" 27 | #import "VKUser.h" 28 | #import "VKRelative.h" 29 | #import "VKCounters.h" 30 | #import "VKLikes.h" 31 | #import "VKSchool.h" 32 | #import "VKUniversity.h" 33 | #import "VKGroup.h" -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKApiWall.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiWall.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.wall part 27 | */ 28 | @interface VKApiWall : VKApiBase 29 | /** 30 | https://vk.com/dev/wall.post 31 | @param params Use parameters from description with VK_API prefix 32 | @return Request for execution 33 | */ 34 | - (VKRequest *)post:(NSDictionary *)params; 35 | @end 36 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKAuthorizationResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKAuthorizationResult.h 3 | // 4 | // Copyright (c) 2015 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKAccessToken.h" 24 | #import "VKError.h" 25 | 26 | @interface VKAuthorizationResult : VKObject 27 | @property(nonatomic, strong) VKAccessToken *token; 28 | @property(nonatomic, strong) VKUser *user; 29 | @property(nonatomic, strong) NSError *error; 30 | @end 31 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKCaptchaView.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKCaptchaView.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKError.h" 25 | 26 | extern CGFloat kCaptchaImageWidth; 27 | extern CGFloat kCaptchaImageHeight; 28 | extern CGFloat kCaptchaViewHeight; 29 | 30 | /** 31 | View for displaying captcha. Don't use it dirrectly. Use VKCaptchaViewController 32 | */ 33 | @interface VKCaptchaView : UIView 34 | /** 35 | Initializes view with captcha error 36 | @param frame bounds of window where view will be displayed 37 | @param captchaError error for request that causes captcha-check 38 | */ 39 | - (id)initWithFrame:(CGRect)frame andError:(VKError *)captchaError; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKLikes.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKLikes.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKApiObject.h" 25 | 26 | /** 27 | Likes type of VK API 28 | */ 29 | @interface VKLikes : VKApiObject 30 | #ifndef DOXYGEN_SHOULD_SKIP_THIS 31 | @property(nonatomic, strong) NSNumber *count; 32 | @property(nonatomic, strong) NSNumber *user_likes; 33 | @property(nonatomic, strong) NSNumber *can_like; 34 | @property(nonatomic, strong) NSNumber *can_publish; 35 | #endif 36 | @end 37 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKObject.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | @interface VKObject : NSObject 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKOperation.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | typedef enum { 26 | VKOperationPausedState = -1, 27 | VKOperationReadyState = 1, 28 | VKOperationExecutingState = 2, 29 | VKOperationFinishedState = 3, 30 | } VKOperationState; 31 | 32 | /** 33 | Basic class for operations 34 | */ 35 | @interface VKOperation : NSOperation 36 | /// This operation state. Value from VKOperationState enum 37 | @property(readwrite, nonatomic, assign) VKOperationState state; 38 | /// Operation working lock 39 | @property(readwrite, nonatomic, strong) NSRecursiveLock *lock; 40 | /// Sets dispatch queue for returning result 41 | @property(nonatomic, assign) dispatch_queue_t responseQueue; 42 | @end 43 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKPhotoSize.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKPhotoSize.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 11.08.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiObjectArray.h" 10 | 11 | @interface VKPhotoSize : VKApiObject 12 | @property(nonatomic, readwrite, copy) NSString *src; 13 | @property(nonatomic, readwrite, copy) NSNumber *width; 14 | @property(nonatomic, readwrite, copy) NSNumber *height; 15 | @property(nonatomic, readwrite, copy) NSString *type; 16 | @end 17 | 18 | @interface VKPhotoSizes : VKApiObjectArray 19 | - (VKPhotoSize *)photoSizeWithType:(NSString *)type; 20 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKRelative.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKRelative.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKRelative : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSString *type; 29 | 30 | @end 31 | 32 | @interface VKRelativities : VKApiObjectArray 33 | 34 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKResponse.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKObject.h" 24 | 25 | @class VKRequest; 26 | 27 | /** 28 | Class presenting answer from API 29 | */ 30 | @interface VKResponse : VKObject 31 | 32 | /// Request which caused response 33 | @property(nonatomic, weak) VKRequest *request; 34 | /// Json content of response. Can be array or object. 35 | @property(nonatomic, strong) id json; 36 | /// Model parsed from response 37 | @property(nonatomic, strong) id parsedModel; 38 | /// Original response string from server 39 | @property(nonatomic, copy) NSString *responseString; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKSchool.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSchool.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKSchool : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSNumber *country; 29 | @property(nonatomic, strong) NSNumber *city; 30 | @property(nonatomic, strong) NSString *name; 31 | @property(nonatomic, strong) NSNumber *year_from; 32 | @property(nonatomic, strong) NSNumber *year_to; 33 | @property(nonatomic, strong) NSNumber *year_graduated; 34 | @property(nonatomic, strong) NSString *Mclass; 35 | @property(nonatomic, strong) NSString *speciality; 36 | @property(nonatomic, strong) NSNumber *type; 37 | @property(nonatomic, strong) NSString *type_str; 38 | 39 | @end 40 | 41 | @interface VKSchools : VKApiObjectArray 42 | 43 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKSdkVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSdkVersion.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #define VK_SDK_VERSION @"1.3.1" 24 | #define VK_SDK_API_VERSION @"5.23" 25 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKUploadMessagesPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadMessagesPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | 24 | #import "VKUploadPhotoBase.h" 25 | 26 | @interface VKUploadMessagesPhotoRequest : VKUploadPhotoBase 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKUploadPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload photos to specified album 27 | */ 28 | @interface VKUploadPhotoRequest : VKUploadPhotoBase 29 | 30 | /** 31 | Initializes photo upload request with parameters 32 | @param image Image to upload 33 | @param parameters image parameters for upload 34 | @param albumId ID of album for photo 35 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 36 | @return Completed request for executing 37 | */ 38 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters albumId:(NSInteger)albumId groupId:(NSInteger)groupId; 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/Headers/VKUploadWallPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadWallPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload single photo to user wall 27 | */ 28 | @interface VKUploadWallPhotoRequest : VKUploadPhotoBase 29 | /** 30 | Initializes photo upload request with parameters 31 | @param image Image to upload 32 | @param parameters image parameters for upload 33 | @param userId ID of user on which wall image should be posted (or nil) 34 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 35 | @return Completed request for executing 36 | */ 37 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters userId:(NSInteger)userId groupId:(NSInteger)groupId; 38 | @end 39 | -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdk.framework/Versions/Current/VKSdk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdk.framework/Versions/Current/VKSdk -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/BlueBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/BlueBtn.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/BlueBtn@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/BlueBtn@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/BlueBtn@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/BlueBtn@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/BlueBtn_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/BlueBtn_pressed.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/BlueBtn_pressed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/BlueBtn_pressed@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/BlueBtn_pressed@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/BlueBtn_pressed@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/Disclosure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/Disclosure.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/Disclosure@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/Disclosure@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/Disclosure@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/Disclosure@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/Info.plist -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/en.lproj/InfoPlist.strings -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/en.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/en.lproj/Localizable.strings -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_deleteattach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_deleteattach.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_deleteattach@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_deleteattach@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_deletephoto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_deletephoto.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_deletephoto@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_deletephoto@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo@2x~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_activity_logo~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo@2x~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_ios7_activity_logo~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_logo_nb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_logo_nb.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_logo_nb@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_logo_nb@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ic_vk_logo_nb@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ic_vk_logo_nb@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/img_newpostattachlink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/img_newpostattachlink.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/img_newpostattachlink@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/img_newpostattachlink@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/ru.lproj/Localizable.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/ru.lproj/Localizable.strings -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/vk_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/vk_settings.png -------------------------------------------------------------------------------- /vk-ios-sdk/VKSdkResources.bundle/vk_settings@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/VKSdkResources.bundle/vk_settings@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication.xcodeproj/project.xcworkspace/xcshareddata/VKSDKTestApplication.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 105ED895-2076-4EF7-A570-4A1AD0537B81 9 | IDESourceControlProjectName 10 | project 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 14 | github.com:VKCOM/vk-ios-sdk.git 15 | 16 | IDESourceControlProjectPath 17 | example/VKSDKTestApplication.xcodeproj/project.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 21 | ../../.. 22 | 23 | IDESourceControlProjectURL 24 | github.com:VKCOM/vk-ios-sdk.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | C8F50BCDCFDC63763FD6355FD91D619C6B03C252 36 | IDESourceControlWCCName 37 | vk-ios-sdk-pub 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/ApiCallViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ApiCallViewController.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | @interface ApiCallViewController : UIViewController 26 | @property(nonatomic, strong) IBOutlet UILabel *methodName; 27 | @property(nonatomic, strong) IBOutlet UITextView *callResult; 28 | @property(nonatomic, strong) VKRequest *callingRequest; 29 | @end 30 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/TestViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // TestViewController.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | @interface TestViewController : UITableViewController { 26 | @private 27 | VKRequest *callingRequest; 28 | } 29 | @property(nonatomic, strong) IBOutlet UILabel *tokenLabel; 30 | @end 31 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/VKAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKAppDelegate.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "TestViewController.h" 25 | 26 | @interface VKAppDelegate : UIResponder 27 | 28 | @property(strong, nonatomic) UIWindow *window; 29 | @end 30 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/VKAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKAppDelegate.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKAppDelegate.h" 24 | 25 | @implementation VKAppDelegate 26 | 27 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 28 | return YES; 29 | } 30 | 31 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { 32 | [VKSdk processOpenURL:url fromApplication:sourceApplication]; 33 | 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/VKSDKTestApplication-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_3_0 10 | #warning "This project uses features only available in iOS SDK 3.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #import 17 | #endif 18 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/VKStartScreen.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKStartScreen.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | @interface VKStartScreen : UIViewController 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/apple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/example/VKSDKTestApplication/apple.png -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKAppDelegate.h" 24 | 25 | int main(int argc, char *argv[]) { 26 | @autoreleasepool { 27 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([VKAppDelegate class])); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vk-ios-sdk/example/VKSDKTestApplication/ru.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/DynamicFramework/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/BlueBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/BlueBtn.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/BlueBtn@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/BlueBtn@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/BlueBtn@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/BlueBtn@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/BlueBtn_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/BlueBtn_pressed.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/BlueBtn_pressed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/BlueBtn_pressed@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/BlueBtn_pressed@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/BlueBtn_pressed@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/Disclosure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/Disclosure.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/Disclosure@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/Disclosure@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/Disclosure@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/Disclosure@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/Resources-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIconFile 8 | 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleSupportedPlatforms 22 | iPhoneOS 23 | CFBundleVersion 24 | 1 25 | CFPlugInDynamicRegisterFunction 26 | 27 | CFPlugInDynamicRegistration 28 | NO 29 | CFPlugInFactories 30 | 31 | 00000000-0000-0000-0000-000000000000 32 | MyFactoryFunction 33 | 34 | CFPlugInTypes 35 | 36 | 00000000-0000-0000-0000-000000000000 37 | 38 | 00000000-0000-0000-0000-000000000000 39 | 40 | 41 | CFPlugInUnloadFunction 42 | 43 | NSHumanReadableCopyright 44 | Copyright © 2015 VK.com. All rights reserved. 45 | 46 | 47 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_deleteattach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_deleteattach.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_deleteattach@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_deleteattach@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_deletephoto.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_deletephoto.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_deletephoto@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_deletephoto@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_activity_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_activity_logo.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_activity_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_activity_logo@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_activity_logo@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_activity_logo@2x~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_activity_logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_activity_logo@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_activity_logo~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_activity_logo~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo@2x~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo@2x~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo~ipad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_ios7_activity_logo~ipad.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_logo_nb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_logo_nb.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_logo_nb@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_logo_nb@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/ic_vk_logo_nb@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/ic_vk_logo_nb@3x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/img_newpostattachlink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/img_newpostattachlink.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/img_newpostattachlink@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/img_newpostattachlink@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/vk_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/vk_settings.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Resources/vk_settings@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/doochik/react-native-vksdk/e06494b5a64121eea155414162b6416a0589b58c/vk-ios-sdk/library/Resources/vk_settings@2x.png -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiCaptcha.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiCaptcha.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Methods for captcha work. Currently, it is 1 method for forcing captcha response 27 | */ 28 | @interface VKApiCaptcha : VKApiBase 29 | /** 30 | Returns error for captcha debugging 31 | @return Request to load 32 | */ 33 | - (VKRequest *)force; 34 | @end 35 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiCaptcha.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiCaptcha.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiCaptcha.h" 24 | 25 | @implementation VKApiCaptcha 26 | - (VKRequest *)force { 27 | return [self prepareRequestWithMethodName:@"force" andParameters:nil]; 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiFriends.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiFriends.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.users part 27 | */ 28 | @interface VKApiFriends : VKApiBase 29 | - (VKRequest *)get; 30 | 31 | - (VKRequest *)get:(NSDictionary *)params; 32 | @end 33 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiFriends.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiFriends.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiFriends.h" 24 | #import "VKUser.h" 25 | 26 | @implementation VKApiFriends 27 | - (VKRequest *)get { 28 | return [self prepareRequestWithMethodName:@"get" andParameters:nil andHttpMethod:@"GET" andClassOfModel:[VKUsersArray class]]; 29 | } 30 | 31 | - (VKRequest *)get:(NSDictionary *)params { 32 | return [self prepareRequestWithMethodName:@"get" andParameters:params andHttpMethod:@"GET" andClassOfModel:[VKUsersArray class]]; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiGroups.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiGroups.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 16.07.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiBase.h" 10 | 11 | @interface VKApiGroups : VKApiBase 12 | /** 13 | https://vk.com/dev/groups.get 14 | @param params use parameters from description with VK_API prefix, e.g. VK_API_GROUP_ID, VK_API_FIELDS 15 | @return Request for load 16 | */ 17 | - (VKRequest *)getById:(NSDictionary *)params; 18 | @end 19 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiGroups.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiGroups.m 3 | // sdk 4 | // 5 | // Created by Roman Truba on 16.07.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiGroups.h" 10 | #import "VKGroup.h" 11 | 12 | @implementation VKApiGroups 13 | - (VKRequest *)getById:(NSDictionary *)params { 14 | return [self prepareRequestWithMethodName:@"getById" andParameters:params andHttpMethod:@"GET" andClassOfModel:[VKGroups class]]; 15 | } 16 | @end 17 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiModels.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiModels.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | #import "VKAudio.h" 25 | #import "VKPhoto.h" 26 | #import "VKLikes.h" 27 | #import "VKUser.h" 28 | #import "VKRelative.h" 29 | #import "VKCounters.h" 30 | #import "VKLikes.h" 31 | #import "VKSchool.h" 32 | #import "VKUniversity.h" 33 | #import "VKGroup.h" -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiWall.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiWall.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiBase.h" 24 | 25 | /** 26 | Builds requests for API.wall part 27 | */ 28 | @interface VKApiWall : VKApiBase 29 | /** 30 | https://vk.com/dev/wall.post 31 | @param params Use parameters from description with VK_API prefix 32 | @return Request for execution 33 | */ 34 | - (VKRequest *)post:(NSDictionary *)params; 35 | @end 36 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/methods/VKApiWall.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKApiWall.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiWall.h" 24 | 25 | @implementation VKApiWall 26 | - (VKRequest *)post:(NSDictionary *)params { 27 | return [self prepareRequestWithMethodName:@"post" andParameters:params andHttpMethod:@"POST"]; 28 | } 29 | 30 | @end 31 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKCounters.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKCounters.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKCounters.h" 24 | 25 | @implementation VKCounters 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKGroup.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKGroup.m 3 | // sdk 4 | // 5 | // Created by Roman Truba on 16.07.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKGroup.h" 10 | 11 | @implementation VKGeoPlace 12 | @end 13 | 14 | @implementation VKGroupContact 15 | @end 16 | 17 | @implementation VKGroupContacts 18 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 19 | return [super initWithDictionary:dict objectClass:[VKGroupContact class]]; 20 | } 21 | @end 22 | 23 | @implementation VKGroupLink 24 | @end 25 | 26 | @implementation VKGroupLinks 27 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 28 | return [super initWithDictionary:dict objectClass:[VKGroupLink class]]; 29 | } 30 | @end 31 | 32 | @implementation VKGroup 33 | 34 | @synthesize description = _description; 35 | 36 | @end 37 | 38 | @implementation VKGroups 39 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 40 | return [super initWithDictionary:dict objectClass:[VKGroup class]]; 41 | } 42 | @end 43 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKLikes.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKLikes.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKApiObject.h" 25 | 26 | /** 27 | Likes type of VK API 28 | */ 29 | @interface VKLikes : VKApiObject 30 | #ifndef DOXYGEN_SHOULD_SKIP_THIS 31 | @property(nonatomic, strong) NSNumber *count; 32 | @property(nonatomic, strong) NSNumber *user_likes; 33 | @property(nonatomic, strong) NSNumber *can_like; 34 | @property(nonatomic, strong) NSNumber *can_publish; 35 | #endif 36 | @end 37 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKLikes.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKLikes.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKLikes.h" 24 | 25 | @implementation VKLikes 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKPhoto.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKPhoto.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKPhoto.h" 24 | 25 | @implementation VKPhoto 26 | - (NSString *)attachmentString { 27 | return [NSString stringWithFormat:@"photo%@_%@", _owner_id, _id]; 28 | } 29 | @end 30 | 31 | @implementation VKPhotoArray 32 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 33 | return [super initWithDictionary:dict objectClass:[VKPhoto class]]; 34 | } 35 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKPhotoSize.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKPhotoSize.h 3 | // sdk 4 | // 5 | // Created by Roman Truba on 11.08.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKApiObjectArray.h" 10 | 11 | @interface VKPhotoSize : VKApiObject 12 | @property(nonatomic, readwrite, copy) NSString *src; 13 | @property(nonatomic, readwrite, copy) NSNumber *width; 14 | @property(nonatomic, readwrite, copy) NSNumber *height; 15 | @property(nonatomic, readwrite, copy) NSString *type; 16 | @end 17 | 18 | @interface VKPhotoSizes : VKApiObjectArray 19 | - (VKPhotoSize *)photoSizeWithType:(NSString *)type; 20 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKPhotoSize.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKPhotoSize.m 3 | // sdk 4 | // 5 | // Created by Roman Truba on 11.08.14. 6 | // Copyright (c) 2014 VK. All rights reserved. 7 | // 8 | 9 | #import "VKPhotoSize.h" 10 | 11 | @implementation VKPhotoSize 12 | @end 13 | 14 | @implementation VKPhotoSizes { 15 | NSDictionary *sizesDictionary; 16 | } 17 | - (Class)objectClass { 18 | return [VKPhotoSize class]; 19 | } 20 | 21 | - (instancetype)initWithArray:(NSArray *)array { 22 | self = [super initWithArray:array]; 23 | NSMutableDictionary *sizes = [NSMutableDictionary new]; 24 | for (VKPhotoSize *size in self.items) { 25 | if (!size.type) continue; 26 | sizes[size.type] = size; 27 | } 28 | sizesDictionary = sizes; 29 | return self; 30 | } 31 | 32 | - (VKPhotoSize *)photoSizeWithType:(NSString *)type { 33 | return sizesDictionary[type]; 34 | } 35 | @end 36 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKRelative.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKRelative.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKRelative : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSString *type; 29 | 30 | @end 31 | 32 | @interface VKRelativities : VKApiObjectArray 33 | 34 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKRelative.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKRelative.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKRelative.h" 24 | 25 | @implementation VKRelative 26 | 27 | @end 28 | 29 | @implementation VKRelativities 30 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 31 | return [super initWithDictionary:dict objectClass:[VKRelative class]]; 32 | } 33 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKSchool.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSchool.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKSchool : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSNumber *country; 29 | @property(nonatomic, strong) NSNumber *city; 30 | @property(nonatomic, strong) NSString *name; 31 | @property(nonatomic, strong) NSNumber *year_from; 32 | @property(nonatomic, strong) NSNumber *year_to; 33 | @property(nonatomic, strong) NSNumber *year_graduated; 34 | @property(nonatomic, strong) NSString *Mclass; 35 | @property(nonatomic, strong) NSString *speciality; 36 | @property(nonatomic, strong) NSNumber *type; 37 | @property(nonatomic, strong) NSString *type_str; 38 | 39 | @end 40 | 41 | @interface VKSchools : VKApiObjectArray 42 | 43 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKSchool.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKSchool.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKSchool.h" 24 | #import "VKUtil.h" 25 | 26 | @implementation VKSchool 27 | 28 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 29 | NSMutableDictionary *newDict = [NSMutableDictionary dictionaryWithDictionary:dict]; 30 | id schoolId = newDict[@"id"]; 31 | if ([schoolId isKindOfClass:[NSString class]]) { 32 | schoolId = [VKUtil parseNumberString:schoolId]; 33 | newDict[@"id"] = schoolId; 34 | } 35 | return [super initWithDictionary:newDict]; 36 | } 37 | 38 | @end 39 | 40 | @implementation VKSchools 41 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 42 | return [super initWithDictionary:dict objectClass:[VKSchool class]]; 43 | } 44 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKUniversity.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUniversity.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKApiObjectArray.h" 24 | 25 | @interface VKUniversity : VKApiObject 26 | 27 | @property(nonatomic, strong) NSNumber *id; 28 | @property(nonatomic, strong) NSNumber *country; 29 | @property(nonatomic, strong) NSNumber *city; 30 | @property(nonatomic, strong) NSString *name; 31 | @property(nonatomic, strong) NSNumber *faculty; 32 | @property(nonatomic, strong) NSString *faculty_name; 33 | @property(nonatomic, strong) NSNumber *chair; 34 | @property(nonatomic, strong) NSString *chair_name; 35 | @property(nonatomic, strong) NSNumber *graduation; 36 | @property(nonatomic, strong) NSString *education_form; 37 | @property(nonatomic, strong) NSString *education_status; 38 | 39 | @end 40 | 41 | @interface VKUniversities : VKApiObjectArray 42 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKUniversity.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKUniversity.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or suabstantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUniversity.h" 24 | 25 | @implementation VKUniversity 26 | @end 27 | 28 | @implementation VKUniversities 29 | 30 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 31 | return [super initWithDictionary:dict objectClass:[VKUniversity class]]; 32 | } 33 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/models/VKUser.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKUser.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUser.h" 24 | 25 | @implementation VKBanInfo 26 | @end 27 | 28 | @implementation VKLastSeen 29 | @end 30 | 31 | @implementation VKUser 32 | @end 33 | 34 | @implementation VKGeoObject 35 | @end 36 | 37 | @implementation VKCity 38 | @end 39 | 40 | @implementation VKCountry 41 | @end 42 | 43 | @implementation VKExports 44 | @end 45 | 46 | @implementation VKUsersArray 47 | - (instancetype)initWithDictionary:(NSDictionary *)dict { 48 | return [super initWithDictionary:dict objectClass:[VKUser class]]; 49 | } 50 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/upload/VKUploadMessagesPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadMessagesPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | 24 | #import "VKUploadPhotoBase.h" 25 | 26 | @interface VKUploadMessagesPhotoRequest : VKUploadPhotoBase 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/upload/VKUploadMessagesPhotoRequest.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadMessagesPhotoRequest.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | 24 | #import "VKUploadMessagesPhotoRequest.h" 25 | #import "VKPhoto.h" 26 | 27 | @implementation VKUploadMessagesPhotoRequest 28 | - (VKRequest *)getServerRequest { 29 | return [VKRequest requestWithMethod:@"photos.getMessagesUploadServer" andParameters:nil]; 30 | } 31 | 32 | - (VKRequest *)getSaveRequest:(VKResponse *)response { 33 | return [VKRequest requestWithMethod:@"photos.saveMessagesPhoto" andParameters:response.json modelClass:[VKPhotoArray class]]; 34 | 35 | } 36 | @end 37 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/upload/VKUploadPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload photos to specified album 27 | */ 28 | @interface VKUploadPhotoRequest : VKUploadPhotoBase 29 | 30 | /** 31 | Initializes photo upload request with parameters 32 | @param image Image to upload 33 | @param parameters image parameters for upload 34 | @param albumId ID of album for photo 35 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 36 | @return Completed request for executing 37 | */ 38 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters albumId:(NSInteger)albumId groupId:(NSInteger)groupId; 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/API/upload/VKUploadWallPhotoRequest.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadWallPhotoRequest.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKUploadPhotoBase.h" 24 | 25 | /** 26 | Special request for upload single photo to user wall 27 | */ 28 | @interface VKUploadWallPhotoRequest : VKUploadPhotoBase 29 | /** 30 | Initializes photo upload request with parameters 31 | @param image Image to upload 32 | @param parameters image parameters for upload 33 | @param userId ID of user on which wall image should be posted (or nil) 34 | @param groupId ID of group (without minus sign) on which wall image should be posted (or nil) 35 | @return Completed request for executing 36 | */ 37 | - (instancetype)initWithImage:(UIImage *)image parameters:(VKImageParameters *)parameters userId:(NSInteger)userId groupId:(NSInteger)groupId; 38 | @end 39 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKJSONOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKJSONOperation.h 3 | // VKSdk 4 | // 5 | // Created by Roman Truba on 26.06.15. 6 | // Copyright (c) 2015 VK. All rights reserved. 7 | // 8 | 9 | #import "VKHTTPOperation.h" 10 | 11 | @interface VKJSONOperation : VKHTTPOperation 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKJSONOperation.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKJSONOperation.m 3 | // VKSdk 4 | // 5 | // Created by Roman Truba on 26.06.15. 6 | // Copyright (c) 2015 VK. All rights reserved. 7 | // 8 | 9 | #import "VKJSONOperation.h" 10 | 11 | @implementation VKJSONOperation 12 | - (void)setCompletionBlockWithSuccess:(void (^)(VKHTTPOperation *operation, id responseObject))success 13 | failure:(void (^)(VKHTTPOperation *operation, NSError *error))failure { 14 | #pragma clang diagnostic push 15 | #pragma clang diagnostic ignored "-Warc-retain-cycles" 16 | #pragma clang diagnostic ignored "-Wgnu" 17 | self.completionBlock = ^{ 18 | id response = [self responseJson]; 19 | if (self.error) { 20 | if (failure) { 21 | dispatch_async(self.failureCallbackQueue ?: dispatch_get_main_queue(), ^{ 22 | failure(self, self.error); 23 | }); 24 | } 25 | } 26 | else { 27 | if (success) { 28 | dispatch_async(self.successCallbackQueue ?: dispatch_get_main_queue(), ^{ 29 | success(self, response); 30 | }); 31 | } 32 | } 33 | }; 34 | #pragma clang diagnostic pop 35 | } 36 | @end 37 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKObject.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | @interface VKObject : NSObject 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKObject.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKObject.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKObject.h" 24 | 25 | @implementation VKObject 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKOperation.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKOperation.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | typedef enum { 26 | VKOperationPausedState = -1, 27 | VKOperationReadyState = 1, 28 | VKOperationExecutingState = 2, 29 | VKOperationFinishedState = 3, 30 | } VKOperationState; 31 | 32 | /** 33 | Basic class for operations 34 | */ 35 | @interface VKOperation : NSOperation 36 | /// This operation state. Value from VKOperationState enum 37 | @property(readwrite, nonatomic, assign) VKOperationState state; 38 | /// Operation working lock 39 | @property(readwrite, nonatomic, strong) NSRecursiveLock *lock; 40 | /// Sets dispatch queue for returning result 41 | @property(nonatomic, assign) dispatch_queue_t responseQueue; 42 | @end 43 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKRequestsScheduler.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKRequestsScheduler.h 3 | // 4 | // Copyright (c) 2015 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKObject.h" 25 | 26 | @class VKRequest; 27 | 28 | /** 29 | * A singletone class for simple schedule requests. It used for preventing "Too many requests per second" error. 30 | */ 31 | @interface VKRequestsScheduler : VKObject 32 | /// Returns an instance of scheduler 33 | + (instancetype)instance; 34 | 35 | /// Used for enabling or disabling scheduler. If scheduler disabled, all next added requests will be sent immediately 36 | - (void)setEnabled:(BOOL)enabled; 37 | 38 | /// Adds requests to queue. If scheduler disabled, request starts immediately 39 | - (void)scheduleRequest:(VKRequest *)req; 40 | 41 | - (NSTimeInterval)currentAvailableInterval; 42 | @end 43 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKResponse.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKResponse.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKObject.h" 24 | 25 | @class VKRequest; 26 | 27 | /** 28 | Class presenting answer from API 29 | */ 30 | @interface VKResponse : VKObject 31 | 32 | /// Request which caused response 33 | @property(nonatomic, weak) VKRequest *request; 34 | /// Json content of response. Can be array or object. 35 | @property(nonatomic, strong) id json; 36 | /// Model parsed from response 37 | @property(nonatomic, strong) id parsedModel; 38 | /// Original response string from server 39 | @property(nonatomic, copy) NSString *responseString; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Core/VKResponse.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKResponse.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKResponse.h" 24 | 25 | @implementation VKResponse 26 | 27 | - (NSString *)description { 28 | return [NSString stringWithFormat:@"", self, self.json]; 29 | } 30 | 31 | @end 32 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Image/VKUploadImage.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKUploadImage.m 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | 24 | #import "VKUploadImage.h" 25 | 26 | @implementation VKUploadImage 27 | + (instancetype)uploadImageWithData:(NSData *)data andParams:(VKImageParameters *)params { 28 | VKUploadImage *image = [VKUploadImage new]; 29 | image.imageData = data; 30 | image.parameters = params ?: [VKImageParameters jpegImageWithQuality:0.9]; 31 | return image; 32 | } 33 | 34 | + (instancetype)uploadImageWithImage:(UIImage *)image andParams:(VKImageParameters *)params { 35 | VKUploadImage *upload = [VKUploadImage new]; 36 | upload.sourceImage = image; 37 | upload.parameters = params ?: [VKImageParameters jpegImageWithQuality:0.9]; 38 | return upload; 39 | } 40 | @end -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Utils/NSData+MD5.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+MD5.h 3 | // 4 | // Copyright (c) 2014 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "NSData+MD5.h" 24 | 25 | @interface NSData (MD5) 26 | 27 | - (NSString *)MD5; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Utils/NSData+MD5.m: -------------------------------------------------------------------------------- 1 | // 2 | // NSData+MD5.m 3 | // 4 | // Copyright (c) 2014 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import 25 | 26 | @implementation NSData (MD5) 27 | 28 | - (NSString *)MD5 { 29 | // Create byte array of unsigned chars 30 | unsigned char md5Buffer[CC_MD5_DIGEST_LENGTH]; 31 | 32 | // Create 16 byte MD5 hash value, store in buffer 33 | CC_MD5(self.bytes, (uint) self.length, md5Buffer); 34 | 35 | // Convert unsigned char buffer to NSString of hex values 36 | NSMutableString *output = [NSMutableString stringWithCapacity:CC_MD5_DIGEST_LENGTH * 2]; 37 | for (int i = 0; i < CC_MD5_DIGEST_LENGTH; i++) 38 | [output appendFormat:@"%02x", md5Buffer[i]]; 39 | 40 | return output; 41 | } 42 | 43 | @end 44 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Utils/NSString+MD5.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+MD5.m 3 | // 4 | // Copyright (c) 2014 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | @interface NSString (MD5) 26 | 27 | - (NSString *)MD5; 28 | 29 | @end 30 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Utils/OrderedDictionary.h: -------------------------------------------------------------------------------- 1 | // 2 | // OrderedDictionary.h 3 | // OrderedDictionary 4 | // 5 | // Created by Matt Gallagher on 19/12/08. 6 | // Copyright 2008 Matt Gallagher. All rights reserved. 7 | // 8 | // This software is provided 'as-is', without any express or implied 9 | // warranty. In no event will the authors be held liable for any damages 10 | // arising from the use of this software. Permission is granted to anyone to 11 | // use this software for any purpose, including commercial applications, and to 12 | // alter it and redistribute it freely, subject to the following restrictions: 13 | // 14 | // 1. The origin of this software must not be misrepresented; you must not 15 | // claim that you wrote the original software. If you use this software 16 | // in a product, an acknowledgment in the product documentation would be 17 | // appreciated but is not required. 18 | // 2. Altered source versions must be plainly marked as such, and must not be 19 | // misrepresented as being the original software. 20 | // 3. This notice may not be removed or altered from any source 21 | // distribution. 22 | // 23 | 24 | #import 25 | 26 | @interface OrderedDictionary : NSMutableDictionary { 27 | NSMutableDictionary *dictionary; 28 | NSMutableArray *array; 29 | } 30 | 31 | - (void)insertObject:(id)anObject forKey:(id)aKey atIndex:(NSUInteger)anIndex; 32 | 33 | - (id)keyAtIndex:(NSUInteger)anIndex; 34 | 35 | - (NSEnumerator *)reverseKeyEnumerator; 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/VKAuthorizationResult.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKAuthorizationResult.h 3 | // 4 | // Copyright (c) 2015 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKAccessToken.h" 24 | #import "VKError.h" 25 | 26 | @interface VKAuthorizationResult : VKObject 27 | @property(nonatomic, strong) VKAccessToken *token; 28 | @property(nonatomic, strong) VKUser *user; 29 | @property(nonatomic, strong) NSError *error; 30 | @end 31 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/VKAuthorizationResult.m: -------------------------------------------------------------------------------- 1 | // 2 | // VKAuthorizationResult.m 3 | // 4 | // Copyright (c) 2015 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import "VKAuthorizationResult.h" 24 | 25 | @implementation VKAuthorizationResult 26 | 27 | @end 28 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/VKSdkVersion.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKSdkVersion.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #define VK_SDK_VERSION @"1.3.1" 24 | #define VK_SDK_API_VERSION @"5.23" 25 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Views/VKActivity.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKActivity.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | 25 | extern NSString *const VKActivityTypePost; 26 | 27 | /** 28 | * Class for sharing in VK throught UIActivityController 29 | */ 30 | @interface VKActivity : UIActivity 31 | 32 | /** 33 | * You should call this method to checks if VK app can show share extension (available from version 2.4, but flag supported in 2.5). 34 | * 35 | * @return YES, if VK Share extension available, and you don't have use VKActivity class 36 | */ 37 | + (BOOL)vkShareExtensionEnabled; 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Views/VKCaptchaView.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKCaptchaView.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKError.h" 25 | 26 | extern CGFloat kCaptchaImageWidth; 27 | extern CGFloat kCaptchaImageHeight; 28 | extern CGFloat kCaptchaViewHeight; 29 | 30 | /** 31 | View for displaying captcha. Don't use it dirrectly. Use VKCaptchaViewController 32 | */ 33 | @interface VKCaptchaView : UIView 34 | /** 35 | Initializes view with captcha error 36 | @param frame bounds of window where view will be displayed 37 | @param captchaError error for request that causes captcha-check 38 | */ 39 | - (id)initWithFrame:(CGRect)frame andError:(VKError *)captchaError; 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Views/VKCaptchaViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // VKCaptchaViewController.h 3 | // 4 | // Copyright (c) 2014 VK.com 5 | // 6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | // this software and associated documentation files (the "Software"), to deal in 8 | // the Software without restriction, including without limitation the rights to 9 | // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | // the Software, and to permit persons to whom the Software is furnished to do so, 11 | // subject to the following conditions: 12 | // 13 | // The above copyright notice and this permission notice shall be included in all 14 | // copies or substantial portions of the Software. 15 | // 16 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | #import 24 | #import "VKError.h" 25 | 26 | /** 27 | Controller fo displaying captcha. 28 | */ 29 | @interface VKCaptchaViewController : UIViewController { 30 | @private 31 | VKError *_captchaError; 32 | } 33 | /** 34 | Initializes controller with captcha url 35 | @param error error for request that causes captcha-check 36 | @returns Prepared controller. Best way to use it - use presentIn: method 37 | */ 38 | + (instancetype)captchaControllerWithError:(VKError *)error; 39 | 40 | /** 41 | Presents current view controller in another. Automatically hides when captcha was answered properly 42 | @param viewController Parent view controller 43 | */ 44 | - (void)presentIn:(UIViewController *)viewController; 45 | @end 46 | -------------------------------------------------------------------------------- /vk-ios-sdk/library/Source/Views/VKSharedTransitioningObject.h: -------------------------------------------------------------------------------- 1 | // 2 | // Created by Roman Truba on 24.02.15. 3 | // Copyright (c) 2015 VK. All rights reserved. 4 | // 5 | 6 | #import 7 | #import 8 | 9 | 10 | @interface VKSharedTransitioningObject : NSObject 11 | @end --------------------------------------------------------------------------------