Skip to content

Commit

Permalink
Sync branch v2.1.3 to v2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cocos-robot authored Aug 6, 2019
2 parents 74461ef + 8b9f080 commit cf0c954
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions assets/scripts/Tips/TipsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const isOPPO = cc.sys.platform === cc.sys.OPPO_GAME;
const isXiaomi = cc.sys.platform === cc.sys.XIAOMI_GAME;
const isHuawei = cc.sys.platform === cc.sys.HUAWEI_GAME;
const isJkw = cc.sys.platform === cc.sys.JKW_GAME;
const isAlipay = cc.sys.platform === cc.sys.ALIPAY_GAME;

module.exports = {
tispPrefab: null,
Expand All @@ -34,7 +35,7 @@ module.exports = {
case 'TTFFontLabel': return !isQQPlay;
case 'Subpackages':
return (!CC_PREVIEW && !CC_JSB && !isBrowser && !isQQPlay && !isVivo && !isJkw);
case 'MousePropagation': return ((isNative && !isMobile && !isWechat && !isQQPlay && !isXiaomi && !isHuawei) || isDesktopBrowser);
case 'MousePropagation': return ((isNative && !isMobile && !isWechat && !isQQPlay && !isXiaomi && !isHuawei && !isAlipay) || isDesktopBrowser);
case 'downloader-native':
return isNative && !CC_RUNTIME;
// Not support the VIVO_GAME and OPPO_GAME
Expand All @@ -57,15 +58,15 @@ module.exports = {
// Not support isMobile
case 'KeyboardInput':
case 'platform':
return !isMobile && !isWechat && !isBaidu && !isXiaomi && !isHuawei;
return !isMobile && !isWechat && !isBaidu && !isXiaomi && !isHuawei && !isAlipay;

// Not support the Simulator, QQ_PLAY, WECHAT_GAME
case 'videoPlayer':
return (isMobile || isBrowser) && !CC_RUNTIME && !isQQPlay && !isWechat && !isBaidu && !isXiaomi && !isHuawei;
return (isMobile || isBrowser) && !CC_RUNTIME && !isQQPlay && !isWechat && !isBaidu && !isXiaomi && !isHuawei && !isAlipay;

// Not support the VIVO_GAME, OPPO_GAME, WECHAT_GAME, QQ_PLAY, CC_RUNTIME
case 'webview':
return (isMobile || isBrowser) && !CC_RUNTIME && !isQQPlay && !isWechat && !isBaidu && !isXiaomi && !isHuawei;
return (isMobile || isBrowser) && !CC_RUNTIME && !isQQPlay && !isWechat && !isBaidu && !isXiaomi && !isHuawei && !isAlipay;
case 'mesh':
return !isVivo && !isOPPO;
}
Expand Down

0 comments on commit cf0c954

Please sign in to comment.