From a116d99f66b23bb18abc44f93c1880de9cb3b2d7 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Sat, 4 May 2024 11:20:49 +0800 Subject: [PATCH] 使所有游戏的隐私相关的弹窗消失 --- ios/Runner.xcodeproj/project.pbxproj | 12 ++++++------ ios/Runner/Wowgame/Classes/game_animal/AniMiscUtils.cpp | 1 + ios/Runner/Wowgame/Classes/game_animal/AniTOSAcceptPopupView.cpp | 2 ++ ios/Runner/Wowgame/Classes/game_food/MiscUtils.cpp | 1 + ios/Runner/Wowgame/Classes/game_food/TOSAcceptPopupView.cpp | 2 ++ ios/Runner/Wowgame/Classes/game_halloween/HMiscUtils.cpp | 1 + ios/Runner/Wowgame/Classes/game_halloween/HTOSAcceptPopupView.cpp | 1 + ios/Runner/Wowgame/Classes/game_toy/ToyMiscUtils.cpp | 1 + ios/Runner/Wowgame/Classes/game_toy/ToyTOSAcceptPopupView.cpp | 1 + 9 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 31e368d..f874769 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -2311,11 +2311,11 @@ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 6; + CURRENT_PROJECT_VERSION = 7; DEVELOPMENT_TEAM = T8P9KW8GWH; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2655,7 +2655,7 @@ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 6; + CURRENT_PROJECT_VERSION = 7; DEVELOPMENT_TEAM = T8P9KW8GWH; ENABLE_BITCODE = NO; HEADER_SEARCH_PATHS = ( @@ -2681,7 +2681,7 @@ "\"${PODS_CONFIGURATION_BUILD_DIR}/webview_flutter_wkwebview/webview_flutter_wkwebview.framework/Headers\"", ); INFOPLIST_FILE = Runner/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -2860,11 +2860,11 @@ CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 6; + CURRENT_PROJECT_VERSION = 7; DEVELOPMENT_TEAM = T8P9KW8GWH; ENABLE_BITCODE = NO; INFOPLIST_FILE = Runner/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; + IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", diff --git a/ios/Runner/Wowgame/Classes/game_animal/AniMiscUtils.cpp b/ios/Runner/Wowgame/Classes/game_animal/AniMiscUtils.cpp index c81c47c..cc8bbd3 100644 --- a/ios/Runner/Wowgame/Classes/game_animal/AniMiscUtils.cpp +++ b/ios/Runner/Wowgame/Classes/game_animal/AniMiscUtils.cpp @@ -23,6 +23,7 @@ void AniMiscUtils::saveTOSAccepted(){ } bool AniMiscUtils::wasTOSAccepted(){ + return true; return cocos2d::UserDefault::getInstance()->getBoolForKey(TOS_ACCEPTED_UD_KEY.c_str(), false); } diff --git a/ios/Runner/Wowgame/Classes/game_animal/AniTOSAcceptPopupView.cpp b/ios/Runner/Wowgame/Classes/game_animal/AniTOSAcceptPopupView.cpp index 5a62179..78a414c 100644 --- a/ios/Runner/Wowgame/Classes/game_animal/AniTOSAcceptPopupView.cpp +++ b/ios/Runner/Wowgame/Classes/game_animal/AniTOSAcceptPopupView.cpp @@ -60,6 +60,8 @@ void AniTOSAcceptPopupView::setupAppearance(){ addChild(menuCenter); auto menuPaddingLEft = 60*AniScalingUtils::scaleAspectFillToDesignIpadProSize();//TODO magic number; //mod for food app menu menuCenter->setPosition(wholeSize.width/2 + menuPaddingLEft, wholeSize.height/2); + + menuCenter->setVisible(false); auto buttonAccept = AniSimpleButton::create(); auto acceptButtonTexturePath = "graphics/tos_popup/accept_button.png"; diff --git a/ios/Runner/Wowgame/Classes/game_food/MiscUtils.cpp b/ios/Runner/Wowgame/Classes/game_food/MiscUtils.cpp index 496624c..48915ce 100644 --- a/ios/Runner/Wowgame/Classes/game_food/MiscUtils.cpp +++ b/ios/Runner/Wowgame/Classes/game_food/MiscUtils.cpp @@ -27,6 +27,7 @@ void MiscUtils::saveTOSAccepted(){ } bool MiscUtils::wasTOSAccepted(){ + return true; return cocos2d::UserDefault::getInstance()->getBoolForKey(TOS_ACCEPTED_UD_KEY.c_str(), false); } diff --git a/ios/Runner/Wowgame/Classes/game_food/TOSAcceptPopupView.cpp b/ios/Runner/Wowgame/Classes/game_food/TOSAcceptPopupView.cpp index 7dbfcc0..35a955c 100644 --- a/ios/Runner/Wowgame/Classes/game_food/TOSAcceptPopupView.cpp +++ b/ios/Runner/Wowgame/Classes/game_food/TOSAcceptPopupView.cpp @@ -60,6 +60,8 @@ void TOSAcceptPopupView::setupAppearance(){ addChild(menuCenter); auto menuPaddingLEft = 60*ScalingUtils::scaleAspectFillToDesignIpadProSize();//TODO magic number; //mod for food app menu menuCenter->setPosition(wholeSize.width/2 + menuPaddingLEft, wholeSize.height/2); + + menuCenter->setVisible(false); auto buttonAccept = SimpleButton::create(); auto acceptButtonTexturePath = "graphics/tos_popup/accept_button.png"; diff --git a/ios/Runner/Wowgame/Classes/game_halloween/HMiscUtils.cpp b/ios/Runner/Wowgame/Classes/game_halloween/HMiscUtils.cpp index 715caa6..445ca7f 100644 --- a/ios/Runner/Wowgame/Classes/game_halloween/HMiscUtils.cpp +++ b/ios/Runner/Wowgame/Classes/game_halloween/HMiscUtils.cpp @@ -40,6 +40,7 @@ void HMiscUtils::saveTOSAccepted(){ } bool HMiscUtils::wasTOSAccepted(){ + return true; return cocos2d::UserDefault::getInstance()->getBoolForKey(TOS_ACCEPTED_UD_KEY.c_str(), false); } diff --git a/ios/Runner/Wowgame/Classes/game_halloween/HTOSAcceptPopupView.cpp b/ios/Runner/Wowgame/Classes/game_halloween/HTOSAcceptPopupView.cpp index 864b2a9..4febfdf 100644 --- a/ios/Runner/Wowgame/Classes/game_halloween/HTOSAcceptPopupView.cpp +++ b/ios/Runner/Wowgame/Classes/game_halloween/HTOSAcceptPopupView.cpp @@ -59,6 +59,7 @@ void HTOSAcceptPopupView::setupAppearance(){ menuCenter->alignItemsVerticallyWithPadding(menuPadding); addChild(menuCenter); menuCenter->setPosition(wholeSize.width/2, wholeSize.height/2); + menuCenter->setVisible(false); auto buttonAccept = HalloweenSimpleButton::create(); auto acceptButtonTexturePath = "graphics/accept_button.png"; diff --git a/ios/Runner/Wowgame/Classes/game_toy/ToyMiscUtils.cpp b/ios/Runner/Wowgame/Classes/game_toy/ToyMiscUtils.cpp index a0d323c..a9f3ec6 100644 --- a/ios/Runner/Wowgame/Classes/game_toy/ToyMiscUtils.cpp +++ b/ios/Runner/Wowgame/Classes/game_toy/ToyMiscUtils.cpp @@ -40,6 +40,7 @@ void ToyMiscUtils::saveTOSAccepted(){ } bool ToyMiscUtils::wasTOSAccepted(){ + return true; return cocos2d::UserDefault::getInstance()->getBoolForKey(TOS_ACCEPTED_UD_KEY.c_str(), false); } diff --git a/ios/Runner/Wowgame/Classes/game_toy/ToyTOSAcceptPopupView.cpp b/ios/Runner/Wowgame/Classes/game_toy/ToyTOSAcceptPopupView.cpp index 05c7e51..caf0a0c 100644 --- a/ios/Runner/Wowgame/Classes/game_toy/ToyTOSAcceptPopupView.cpp +++ b/ios/Runner/Wowgame/Classes/game_toy/ToyTOSAcceptPopupView.cpp @@ -59,6 +59,7 @@ void ToyTOSAcceptPopupView::setupAppearance(){ menuCenter->alignItemsVerticallyWithPadding(menuPadding); addChild(menuCenter); menuCenter->setPosition(wholeSize.width/2, wholeSize.height/2); + menuCenter->setVisible(false); auto buttonAccept = ToySimpleButton::create(); auto acceptButtonTexturePath = "graphics/tos_popup/accept_button.png"; -- libgit2 0.22.2