Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyuqw/flutter_vk_sdk
https://github.com/kyuqw/flutter_vk_sdk
flutter flutter-plugin vk vk-api vk-sdk vkontakte
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kyuqw/flutter_vk_sdk
- Owner: kyuqw
- License: other
- Created: 2019-06-06T15:33:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T07:26:07.000Z (over 4 years ago)
- Last Synced: 2024-09-27T05:01:58.337Z (3 months ago)
- Topics: flutter, flutter-plugin, vk, vk-api, vk-sdk, vkontakte
- Language: Dart
- Size: 133 KB
- Stars: 17
- Watchers: 2
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_vk_sdk
[![pub package](https://img.shields.io/pub/v/flutter_vk_sdk.svg)](https://pub.dev/packages/flutter_vk_sdk)
Flutter vk sdk project.
This plugin is based on:
- Android: [vk-android-sdk v2.1.0](https://github.com/VKCOM/vk-android-sdk/tree/2.1.0)
- iOS: [vk-ios-sdk](https://github.com/VKCOM/vk-ios-sdk)## Installation
First, add [*`flutter_vk_sdk`*](https://pub.dev/packages/flutter_vk_sdk#-installing-tab-) as a dependency in [your pubspec.yaml file](https://flutter.io/platform-plugins/).
```
flutter_vk_sdk: ^0.0.6+4
```### Android
In your android res/values create strings.xml and fill with this examples
```xmlYOUR_VK_APP_ID
```
### iOS
* AppDelegate
```
import UIKit
import Flutter
import VK_ios_sdk@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
override func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
VKSdk.processOpen(url, fromApplication: "")
return true
}
}
```* info.plist
```
CFBundleURLTypes
CFBundleTypeRole
Editor
CFBundleURLName
vk{YOUR_APP_ID}
CFBundleURLSchemes
vk{YOUR_APP_ID}
LSApplicationQueriesSchemes
vk
vk-share
vkauthorize```
## Dart usage