The static library used in cocos2d-x that integrates third party SDK.
- cocos2d-x ver3.3(or greater
- android-10(or greater
- create plugins directory under your project and clone this repository.
cd /path/to/your-project
mkdir plugins && cd plugins
git clone git@github.com:takatoshi/cocos2dx-NativeBridge.git
- Add
cocos2dx-NativeBridge/ios
to your project. - Add
$(SRCROOT)/../plugins
to the Header Search Paths. - Add
-Objc
to the Other Linker Flags. - Add following frameworks.
- AdSupport
- AudioToolbox
- AVFoundation
- CoreData
- CoreGraphics
- CoreLocation
- CoreTelephony
- EventKit
- EventKitUI
- GameKit
- GameController
- iAd
- ImageIO
- MediaPlayer
- MessageUI
- Security
- Social
- StoreKit
- SystemConfiguration
- libsqlite3.0.dylib
- libz.dylib Mark AdSupport.framework, Social.framework, and StoreKit.framework as optional if your code compiles below iOS version 6.0.
- Update project.properties file.
cd /path/to/your-project/proj.android
android update project -p . -t [android API level]
android update project -p . -l ../plugins/cocos2dx-NativeBridge/android/java
- Update Android.mk file.
open /path/to/your-project/proj.android/jni/Android.mk
+LOCAL_STATIC_LIBRARIES += nativebridge_plugin_static
+$(call import-module,../plugins/cocos2dx-NativeBridge/android)