AnySDK Framework

Cocos Creator built-in Cocos engine includes AnySDK Framework libraries. The platform project that built by developer already includes AnySDK Framework. The chapter introduces how to use AnySDK selectivity.

Use AnySDK

Native

H5

No need to use AnySDK

If developers do not need to use AnySDK, currently only support to delete the relevant files manually. Steps: - Delete frameworks/runtime-src/Classes directory`s

    jsb_anysdk_basic_conversions.cpp
    manualanysdkbindings.cpp
    jsb_anysdk_protocols_auto.cpp 
    SDKManager.cpp
    jsb_anysdk_basic_conversions.h
    manualanysdkbindings.hpp
    jsb_anysdk_protocols_auto.hpp 
    SDKManager.h
    // anysdk scripts
    if (cc.sys.isNative && cc.sys.isMobile) {
      jsList = jsList.concat(['jsb_anysdk.js', 'jsb_anysdk_constants.js']);
    }

need to add a folder build-templates in the project path, the sub-folder in build-templates should named with platform. Copy main.js that deleted code to sub-folder Folder Structure: project-folder |--assets |--build |--build-templates |--web-mobile |--main.js |--jsb-binary |--main.js |--jsb-default |--main.js

After the delete AnySDK still need to use

Update AnySDK Framework

FAQ