An open API service indexing awesome lists of open source software.

https://github.com/kavolorn/vk-ane

PRO Native Extension for Adobe AIR which connects VK social network to your app.
https://github.com/kavolorn/vk-ane

actionscript adobe-air native-extensions

Last synced: about 1 month ago
JSON representation

PRO Native Extension for Adobe AIR which connects VK social network to your app.

Awesome Lists containing this project

README

        

# VK ANE v2.0.0

PRO Native Extension for Adobe AIR which enables VK social network capabilities
in your apps.

## Status

This demo is fully functional example. You can test ANE functions without any
limitations. If you want it to be running in your application you can purchase
any number of licenses each for up to 3 applications and without any limitations
in time! License server can be found here [http://kavolorn.ru/pro-native-extensions](http://kavolorn.ru/pro-native-extensions).

ANE supports Android-ARM, Android-x86, iPhone-ARM and iPhone-x86 including x64
bit platforms introduced in Adobe AIR SDK 16. It is build with 16.0.0.292 Adobe
AIR SDK. Repository contains module file for IntelliJ IDEA.

## How to run

The most important thing to keep in mind is that this demo setup is linked with
package id 'ru.kavolorn.ane.VK.Demo'. You can only change this id in your own
license key (where you can have up to 3 ids).

So let's configure this demo for your own vk application.

### Be sure about application id

Please check if your IDE adds prefix "air." or suffix ".debug" for application ID.
If so, demo won't work.

See how to disable it [here](https://github.com/kavolorn/VK-ANE/issues/2#issuecomment-86448177).

### Application registration process

Goto [my applications](https://vk.com/apps?act=manage) page and create your
application. After the registration in the options page you can see your vk
application id. Current demo is using 4620596 and you will have your own.

On the options page fill 3 fields app bundle id for iOS, app id for iOS and
android package name with value 'ru.kavolorn.ane.VK.Demo'. When you will have
your own key you can link your vk app with your own application id.

Also you should fill certificate fingerprint for Android. We will get this
fingerprint directly from our extension later.

### Configuring application descriptor

Now let's apply our vk application id in application descriptor file
VK_Demo-app.xml. You should change 4620596 number with your own number in this
lines for iOS setup:

```xml
CFBundleURLTypes


CFBundleURLSchemes

vk4620596

```

Add this lines if you modifying your own application descriptor.

Make sure that you have registered activities in your android manifest file:

```xml



```

### ActionScript side

You can check how I use native extension in HomeScreenView.as file. It is the
main file in our project.

For Android setup you can get you certificate fingerprint by calling this method:

```actionscript
trace(VK.getInstance().getCertificateFingerprint());
```

After that you are able to put value in your vk application options page.

## Requirements

iOS 7.0+, Android 10+

## Version history

### 2.0.0

- Updated VK iOS SDK to version 1.1.12.
- Added support for native share dialogs for both Android and iOS.
- Reduced binary size.

Upgrade notes:

- VK.getInstance().getUserToken() now returns object rather than json string.
- New activity for sharing should be added to manifest.
- Activities are now in different namespace than before.

### 1.2.0

- Updated VK Android SDK to version 1.3.10.
- Added support for for user email extraction.

### 1.1.0

- Improved compatibility with 3rd party extensions on iOS.

### 1.0.1

- Fixed bug that causes offline app crash.

### 1.0.0

- Improved authorization and execution processes.
- Added waking up and logout functionality.
- Added getSdkVersion, getApiVersion and getUserToken methods.
- Added debug information output control.

### 0.2.1

- Minor bugfixes.

### 0.2.0

- Removed time limitation for license.

### 0.1.1

- Fixed initialization bug.

### 0.1.0

- Initial release.