Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versão 2.0.5 #73

Open
wants to merge 5 commits into
base: testflight
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Letrando/Letrando.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@
CODE_SIGN_ENTITLEMENTS = Letrando/Letrando.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Letrando/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
Expand All @@ -1092,7 +1092,7 @@
CODE_SIGN_ENTITLEMENTS = Letrando/Letrando.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 9;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = Letrando/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
Expand Down
5 changes: 2 additions & 3 deletions Letrando/Letrando/Game/View/GameView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,7 @@ class GameView: UIView, ViewCodable, GameViewProtocol {
}, completion: { [weak self] _ in
self?.animateDogOut(initialPositionX)
})
if !userDefaults.bool(forKey: UserDefaultsKey.onboardingIsOn.rawValue) {
try? SoundsKit.playAlert()
}
}

private func animateDogOut(_ initialPositionX: CGFloat) {
Expand All @@ -177,7 +175,8 @@ extension GameView: GameViewDelegate {
func changeMessageLabelHiding(for value: Bool) {
DispatchQueue.main.async { [weak self] in
self?.findAnotherPlaceMessageLabel.isHidden = value
if !(self?.isDogAnimated ?? false) {
if !(self?.isDogAnimated ?? false) &&
!(self?.userDefaults.bool(forKey: UserDefaultsKey.onboardingIsOn.rawValue) ?? false) {
self?.dogSearchingImageViewAnimation()
self?.isDogAnimated = true
}
Expand Down
4 changes: 1 addition & 3 deletions Letrando/Letrando/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
<array/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
Expand Down