// Path: android/src/com/marpies/ane/vk/VKExtensionContext.java
// public class VKExtensionContext extends FREContext {
// 
// 	@Override
// 	public Map<String, FREFunction> getFunctions() {
// 		Map<String, FREFunction> functions = new HashMap<String, FREFunction>();
// 
// 		functions.put( "init", new InitFunction() );
// 		functions.put( "auth", new AuthFunction() );
// 		functions.put( "isLoggedIn", new IsLoggedInFunction() );
// 		functions.put( "logout", new LogoutFunction() );
// 		functions.put( "request", new RequestFunction() );
// 		functions.put( "share", new ShareFunction() );
// 		functions.put( "applicationOpenURL", new ApplicationOpenURLFunction() );
// 		functions.put( "sdkVersion", new GetSDKVersion() );
// 
// 		return functions;
// 	}
// 
// 	@Override
// 	public void dispose() {
// 		AIR.stopAccessTokenTracker();
// 		AIR.setContext( null );
// 	}
// }
// 
// Path: android/src/com/marpies/ane/vk/data/AIRVKEvent.java
// public class AIRVKEvent {
// 
// 	public static final String VK_AUTH_ERROR = "vkAuthError";
// 	public static final String VK_AUTH_SUCCESS = "vkAuthSuccess";
// 	public static final String VK_TOKEN_UPDATE = "vkTokenUpdate";
// 	public static final String VK_REQUEST_SUCCESS = "vkRequestSuccess";
// 	public static final String VK_REQUEST_ERROR = "vkRequestError";
// 	public static final String VK_SHARE_COMPLETE = "vkShareComplete";
// 	public static final String VK_SHARE_CANCEL = "vkShareCancel";
// 	public static final String VK_SHARE_ERROR = "vkShareError";
// 
// }


import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import com.marpies.ane.vk.VKExtensionContext;
import com.marpies.ane.vk.data.AIRVKEvent;
import com.vk.sdk.VKAccessToken;
import com.vk.sdk.VKAccessTokenTracker;
/**
 * Copyright 2016 Marcel Piestansky (http://marpies.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.marpies.ane.vk.utils;


public class AIR {

	private static final String TAG = "VK";
	private static boolean mLogEnabled = false;

// Path: android/src/com/marpies/ane/vk/VKExtensionContext.java
// public class VKExtensionContext extends FREContext {
// 
// 	@Override
// 	public Map<String, FREFunction> getFunctions() {
// 		Map<String, FREFunction> functions = new HashMap<String, FREFunction>();
// 
// 		functions.put( "init", new InitFunction() );
// 		functions.put( "auth", new AuthFunction() );
// 		functions.put( "isLoggedIn", new IsLoggedInFunction() );
// 		functions.put( "logout", new LogoutFunction() );
// 		functions.put( "request", new RequestFunction() );
// 		functions.put( "share", new ShareFunction() );
// 		functions.put( "applicationOpenURL", new ApplicationOpenURLFunction() );
// 		functions.put( "sdkVersion", new GetSDKVersion() );
// 
// 		return functions;
// 	}
// 
// 	@Override
// 	public void dispose() {
// 		AIR.stopAccessTokenTracker();
// 		AIR.setContext( null );
// 	}
// }
// 
// Path: android/src/com/marpies/ane/vk/data/AIRVKEvent.java
// public class AIRVKEvent {
// 
// 	public static final String VK_AUTH_ERROR = "vkAuthError";
// 	public static final String VK_AUTH_SUCCESS = "vkAuthSuccess";
// 	public static final String VK_TOKEN_UPDATE = "vkTokenUpdate";
// 	public static final String VK_REQUEST_SUCCESS = "vkRequestSuccess";
// 	public static final String VK_REQUEST_ERROR = "vkRequestError";
// 	public static final String VK_SHARE_COMPLETE = "vkShareComplete";
// 	public static final String VK_SHARE_CANCEL = "vkShareCancel";
// 	public static final String VK_SHARE_ERROR = "vkShareError";
// 
// }


// Path: android/src/com/marpies/ane/vk/utils/AIR.java
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import com.marpies.ane.vk.VKExtensionContext;
import com.marpies.ane.vk.data.AIRVKEvent;
import com.vk.sdk.VKAccessToken;
import com.vk.sdk.VKAccessTokenTracker;

/**
 * Copyright 2016 Marcel Piestansky (http://marpies.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.marpies.ane.vk.utils;


public class AIR {

	private static final String TAG = "VK";
	private static boolean mLogEnabled = false;

	private static VKExtensionContext mContext;