/AmazonPlugin

Implement amazon ad and game circle wrapper for cocos2d-x

Primary LanguageC++

AmazonPlugin

Implement amazon ad and game circle wrapper for cocos2d-x

How to integrate:

  1. copy "GameCircleSDK" folder to proj.android folder

  2. copy "amazon-ads-5.1.236.jar" to proj.android/libs folder

  3. copy "AmazonPlugin.java" to proj.android/src/com/freeman/cocos2dx folder

  4. copy "AmazonWrapper.h" to Class folder

  5. copy "AmazonWrapper.cpp" to proj.android/jni folder

  6. edit Android.mk under proj.android/jni folder, add "AmazonWrapper.cpp"

  7. edit AndroidManifest.xml, type in the content:

  8. on the Activity call:

    protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); AmazonPlugin.onCreate(this); }

    @Override public void onResume() { super.onResume(); AmazonPlugin.onResume(); }

    @Override public void onPause() { super.onPause(); AmazonPlugin.onPause(); }

    @Override public void onDestroy() { super.onDestroy(); AmazonPlugin.onDestroy(); }

  9. import GameCircleSDK library