diff --git a/WOKA/Authentication/ViewModel/LoginVM.swift b/WOKA/Authentication/ViewModel/LoginVM.swift index 180eedc..4332e59 100644 --- a/WOKA/Authentication/ViewModel/LoginVM.swift +++ b/WOKA/Authentication/ViewModel/LoginVM.swift @@ -184,10 +184,8 @@ class LoginVM{ Analytics.logEvent(K.AnalyticsEventKeys.guest_login_iOS, parameters: nil) Analytics.logEvent(K.AnalyticsEventKeys.new_user_iOS, parameters: nil) } - self.vc.toast(msg: data.message ?? "Unrecognised error" , time: 2) { - let userDataConverted = UserDataDM.ResultData(id: nil, username: dataUser.username, fullname: dataUser.fullname, genderData: nil, birthdate: nil, email: nil, avtar: nil, avtarURL: nil, userType: "3", languageMasterID: nil, lastLogin: nil, rememberToken: nil, childDetail: nil, language: nil, alreadyLoggedIn: nil, isDeactive: nil) - AuthFunc.shareInstance.loginDefaults(data: userDataConverted) - } + let userDataConverted = UserDataDM.ResultData(id: nil, username: dataUser.username, fullname: dataUser.fullname, genderData: nil, birthdate: nil, email: nil, avtar: nil, avtarURL: nil, userType: "3", languageMasterID: nil, lastLogin: nil, rememberToken: nil, childDetail: nil, language: nil, alreadyLoggedIn: nil, isDeactive: nil) + AuthFunc.shareInstance.loginDefaults(data: userDataConverted) default: break } diff --git a/WOKA/Games/Controller/GamesWebViewVC.swift b/WOKA/Games/Controller/GamesWebViewVC.swift index 428291b..e5c61b0 100644 --- a/WOKA/Games/Controller/GamesWebViewVC.swift +++ b/WOKA/Games/Controller/GamesWebViewVC.swift @@ -93,7 +93,8 @@ class GamesWebViewVC: UIViewController, WKNavigationDelegate,UIGestureRecognizer let sb = UIStoryboard(name: K.StoryBoard.customAlerts, bundle: nil) let vcPush = sb.instantiateViewController(withIdentifier: K.StoryBoardID.CustomAlerts.yesNoAlertVC) as! YesNoAlertVC vcPush.mainTitleText = "Warning" - vcPush.contentLabel = "Clicking \"OK\" will exit you from the game. Are you sure you want to proceed?" +// vcPush.contentLabel = "Clicking \"OK\" will exit you from the game. Are you sure you want to proceed?" + vcPush.contentLabel = "Are you sure you want to exit the game?" vcPush.yesBtnText = "OK" vcPush.noBtnText = "Cancel" vcPush.onDoneBlock = { [weak self] mode in diff --git a/WOKA/Karaoke/ViewModel/KaraokeListingVM.swift b/WOKA/Karaoke/ViewModel/KaraokeListingVM.swift index e75aedf..a08aa3a 100644 --- a/WOKA/Karaoke/ViewModel/KaraokeListingVM.swift +++ b/WOKA/Karaoke/ViewModel/KaraokeListingVM.swift @@ -44,7 +44,6 @@ class KaraokeListingVM{ maxHeaderHeight = UIScreen.main.bounds.width * 0.55 vc.headerHeight.constant = maxHeaderHeight - checkAds() } func setupCell(){ @@ -189,6 +188,7 @@ class KaraokeListingVM{ case 1: if !isBtnClick{ getContinueWatching() + checkAds() feedbackGenerator.impactOccurred() } diff --git a/WOKA/Network Adapter/APIEndPoints.swift b/WOKA/Network Adapter/APIEndPoints.swift index 4fb95fb..e936a72 100644 --- a/WOKA/Network Adapter/APIEndPoints.swift +++ b/WOKA/Network Adapter/APIEndPoints.swift @@ -34,8 +34,8 @@ struct APIEndPoints { } struct BaseURL { - static let staging = "https://wokastaging.in/api/" static let development = "https://wokanative.betadelivery.com/api/" + static let staging = "https://wokastaging.in/api/" static let production = "https://wokaland.com/secret-panel-10102023/hidden-admin-portal-20092023/api/" static let appUrl = "https://apps.apple.com/in/app/woka/id6465305185" diff --git a/WOKA/OnBoarding Module/ViewModel/OnBoardVM.swift b/WOKA/OnBoarding Module/ViewModel/OnBoardVM.swift index 513f697..0fdb8aa 100644 --- a/WOKA/OnBoarding Module/ViewModel/OnBoardVM.swift +++ b/WOKA/OnBoarding Module/ViewModel/OnBoardVM.swift @@ -141,10 +141,8 @@ class OnBoardVM{ Analytics.logEvent(K.AnalyticsEventKeys.new_user_iOS, parameters: nil) } - self.vc.toast(msg: data.message ?? "Unrecognised error" , time: 2) { - let userDataConverted = UserDataDM.ResultData(id: nil, username: dataUser.username, fullname: dataUser.fullname, genderData: nil, birthdate: nil, email: nil, avtar: nil, avtarURL: nil, userType: "3", languageMasterID: nil, lastLogin: nil, rememberToken: nil, childDetail: nil, language: nil, alreadyLoggedIn: nil, isDeactive: nil) - AuthFunc.shareInstance.loginDefaults(data: userDataConverted) - } + let userDataConverted = UserDataDM.ResultData(id: nil, username: dataUser.username, fullname: dataUser.fullname, genderData: nil, birthdate: nil, email: nil, avtar: nil, avtarURL: nil, userType: "3", languageMasterID: nil, lastLogin: nil, rememberToken: nil, childDetail: nil, language: nil, alreadyLoggedIn: nil, isDeactive: nil) + AuthFunc.shareInstance.loginDefaults(data: userDataConverted) default: break } diff --git a/WOKA/OnBoarding Module/ViewModel/SplashVM.swift b/WOKA/OnBoarding Module/ViewModel/SplashVM.swift index a306f6e..84bb106 100644 --- a/WOKA/OnBoarding Module/ViewModel/SplashVM.swift +++ b/WOKA/OnBoarding Module/ViewModel/SplashVM.swift @@ -264,10 +264,8 @@ class SplashVM{ Analytics.logEvent(K.AnalyticsEventKeys.new_user_iOS, parameters: nil) } - self.vc.toast(msg: data.message ?? "Unrecognised error" , time: 2) { - let userDataConverted = UserDataDM.ResultData(id: nil, username: dataUser.username, fullname: dataUser.fullname, genderData: nil, birthdate: nil, email: nil, avtar: nil, avtarURL: nil, userType: "3", languageMasterID: nil, lastLogin: nil, rememberToken: nil, childDetail: nil, language: nil, alreadyLoggedIn: nil, isDeactive: nil) - AuthFunc.shareInstance.loginDefaults(data: userDataConverted) - } + let userDataConverted = UserDataDM.ResultData(id: nil, username: dataUser.username, fullname: dataUser.fullname, genderData: nil, birthdate: nil, email: nil, avtar: nil, avtarURL: nil, userType: "3", languageMasterID: nil, lastLogin: nil, rememberToken: nil, childDetail: nil, language: nil, alreadyLoggedIn: nil, isDeactive: nil) + AuthFunc.shareInstance.loginDefaults(data: userDataConverted) default: break } diff --git a/WOKA/Shop/Controller/ShopProductsVC.swift b/WOKA/Shop/Controller/ShopProductsVC.swift index 0275dd9..9b3df9c 100644 --- a/WOKA/Shop/Controller/ShopProductsVC.swift +++ b/WOKA/Shop/Controller/ShopProductsVC.swift @@ -94,16 +94,16 @@ extension ShopProductsVC : CollectionViewSRC{ } } - func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) { - if collectionView == productCV{ - if vm.stopFetch{return} - if indexPath.row == productCV.numberOfItems(inSection: 0) - 1{ - spinnerView.startAnimating() - vm.pageNo += 1 - vm.getShopProducts(subCategoryID: vm.selectedSubCategory) - } - } - } +// func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) { +// if collectionView == productCV{ +// if indexPath.row == productCV.numberOfItems(inSection: 0) - 1{ +// print("Next Page") +// spinnerView.startAnimating() +// vm.pageNo += 1 +// vm.getShopProducts(subCategoryID: vm.selectedSubCategory) +// } +// } +// } func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { switch collectionView{ @@ -144,7 +144,7 @@ extension ShopProductsVC : GADBannerViewDelegate{ func bannerViewDidReceiveAd(_ bannerView: GADBannerView) { adView.isHidden = false bannerView.alpha = 0 - bannerView.backgroundColor = #colorLiteral(red: 0.01960784314, green: 0, blue: 0.2196078431, alpha: 1) +// bannerView.backgroundColor = #colorLiteral(red: 0.01960784314, green: 0, blue: 0.2196078431, alpha: 1) UIView.animate(withDuration: 0.2, animations: { bannerView.alpha = 1 }) diff --git a/WOKA/Shop/Shop.storyboard b/WOKA/Shop/Shop.storyboard index 7bfe7ce..9fb9010 100644 --- a/WOKA/Shop/Shop.storyboard +++ b/WOKA/Shop/Shop.storyboard @@ -179,7 +179,7 @@ - + - + @@ -219,14 +219,14 @@