2016-08-08 10:53:04 +08:00
|
|
|
#include <memory>
|
|
|
|
|
2015-05-18 13:41:58 +08:00
|
|
|
#include <android/log.h>
|
2016-08-08 10:53:04 +08:00
|
|
|
#include <jni.h>
|
2015-05-18 13:41:58 +08:00
|
|
|
|
2016-08-08 10:53:04 +08:00
|
|
|
#include "AppDelegate.h"
|
2015-05-18 13:41:58 +08:00
|
|
|
|
|
|
|
#define LOG_TAG "main"
|
|
|
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
|
|
|
|
|
2016-08-08 10:53:04 +08:00
|
|
|
namespace {
|
|
|
|
std::unique_ptr<AppDelegate> appDelegate;
|
|
|
|
}
|
2015-05-18 13:41:58 +08:00
|
|
|
|
2016-08-08 10:53:04 +08:00
|
|
|
void cocos_android_app_init(JNIEnv* env) {
|
2015-05-18 13:41:58 +08:00
|
|
|
LOGD("cocos_android_app_init");
|
2016-08-08 10:53:04 +08:00
|
|
|
appDelegate.reset(new AppDelegate());
|
2015-05-18 13:41:58 +08:00
|
|
|
}
|