1:NDK 编译 需要修改android.mk文件
#LOCAL_STATIC_LIBRARIES := cocos2dx_static
LOCAL_STATIC_LIBRARIES := cc_static
2:支持google 关于64位的需求,修改gradle.properties
PROP_APP_ABI=armeabi-v7a:arm64-v8a
3:在cocos引擎文件中,添加的代码,防止切换UI卡顿
void SpriteFrameCache::addSpriteFramesWithFile(const std::string& plist)
{
CCASSERT(!plist.empty(), "plist filename should not be nullptr");
if (_spriteFramesCache.isPlistFull(plist)) // bug fixed #19269
{
return;
}
....
}
4: iPhone X 边缘触控不灵敏
-(UIRectEdge)preferredScreenEdgesDeferringSystemGestures
{
return UIRectEdgeAll;
}