Cocos2d-x
This guide explains how to install the Hive SDK in a Cocos2d-x environment.
Android¶
- Download the package from the Hive developer site under Download > Cocos2d-x.
- Link the C++ source code files found in the /PluginSource/Android path to your project. Instead of linking the .cpp source code files, you can link the compiled libraries located in the /proj.android/app/jni/hivesdk/lib/c++ path.
- Add the following Android libraries to the module-level build.gradle file in your Gradle project.
iOS¶
To install Cocos2d-x for iOS, first follow the Hive SDK iOS guide for setting up your project Podfile. Then, in the Podfile setup, add the HiveSDKPlugin as shown below.