CPP

Plz add bellow code to the bottom of PROJECT_ROOT/CMakeLists.txt and replace PluginFacebook with your Plugin name

# PluginFacebook
if(ANDROID)
    add_definitions(-DSDKBOX_ENABLED)
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/jni/PluginFacebook/)
    target_link_libraries(${APP_NAME} ext_PluginFacebook)
endif()

# sdkbox
if(ANDROID)
    add_definitions(-DSDKBOX_ENABLED)
    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/jni/sdkbox/)
    target_link_libraries(${APP_NAME} ext_sdkbox)
endif()

JS

  1. Plz add bellow code to the bottom of PROJECT_ROOT/CMakeLists.txt and replace PluginFacebook with your plugin name
# PluginFacebook
if(ANDROID)
    add_definitions(-DSDKBOX_ENABLED)
    add_subdirectory(${RUNTIME_SRC_ROOT}/proj.android/app/jni/PluginFacebook/)
    target_link_libraries(${APP_NAME} ext_PluginFacebook)
endif()
# sdkbox
if(ANDROID)
    add_definitions(-DSDKBOX_ENABLED)
    add_subdirectory(${RUNTIME_SRC_ROOT}/proj.android/app/jni/sdkbox/)
    target_link_libraries(${APP_NAME} ext_sdkbox)
endif()
  1. Plz add bellow code before set(APP_SRC ${GAME_HEADER} ${GAME_SOURCE}), and replace PluginFacebook with your plugin name
# PluginFacebook-JS
if(ANDROID)
    list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/Classes/PluginFacebookJS.cpp)
    list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/Classes/PluginFacebookJSHelper.cpp)
endif()
# sdkbox-JS
if(ANDROID)
    list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/Classes/SDKBoxJSHelper.cpp)
endif()

Lua

  1. Plz add bellow code to the bottom of PROJECT_ROOT/CMakeLists.txt and replace PluginFacebook with your plugin name
# PluginFacebook
if(ANDROID)
   add_definitions(-DSDKBOX_ENABLED)
   add_subdirectory(${RUNTIME_SRC_ROOT}/proj.android/app/jni/PluginFacebook/)
   target_link_libraries(${APP_NAME} ext_PluginFacebook)
endif()
# sdkbox
if(ANDROID)
   add_definitions(-DSDKBOX_ENABLED)
   add_subdirectory(${RUNTIME_SRC_ROOT}/proj.android/app/jni/sdkbox/)
   target_link_libraries(${APP_NAME} ext_sdkbox)
endif()
  1. Plz add bellow code before set(APP_SRC ${GAME_HEADER} ${GAME_SOURCE}), and replace PluginFacebook with your plugin name
# PluginFacebook-Lua
if(ANDROID)
   list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/Classes/PluginFacebookLua.cpp)
   list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/Classes/PluginFacebookLuaHelper.cpp)
endif()
# sdkbox-Lua
if(ANDROID)
   list(APPEND GAME_SOURCE ${RUNTIME_SRC_ROOT}/Classes/SDKBoxLuaHelper.cpp)
endif()