From bbddd1336f1fab91ec02a2188bb3138085cf8d06 Mon Sep 17 00:00:00 2001 From: BilalKhanWDI Date: Mon, 16 Sep 2024 19:58:03 +0530 Subject: [PATCH] - Added google ad banner for webseries. - Added google ad for karaoke - Added google ad for karaoke record ui - Added google ad for fm - Made a delegate function to handle the ad received or failure - Added ads to games webview bottom banner --- WOKA.xcodeproj/project.pbxproj | 32 ++++--- WOKA/Cart/Cart.storyboard | 42 ++++----- WOKA/Games/Controller/GamesWebViewVC.swift | 43 +++++++++- WOKA/Games/Games.storyboard | 13 ++- WOKA/Helpers/AdResuable/AdReusable.swift | 61 +++++++++++++ WOKA/Info.plist | 2 - .../Controller/JWKaraokePlayerVC.swift | 32 +++++++ .../Karaoke/Controller/KaraokeListingVC.swift | 56 ++++++++++++ WOKA/Karaoke/Karaoke.storyboard | 11 +++ .../Karaoke/ViewModel/JWKaraokePlayerVM.swift | 8 +- WOKA/Karaoke/ViewModel/KaraokeListingVM.swift | 85 ++++++++++++++----- WOKA/WOKAFM/Controller/WokaFMVC.swift | 33 +++++++ WOKA/WOKAFM/ViewModel/WokaFMVM.swift | 30 +++---- WOKA/WOKAFM/WokaFM.storyboard | 4 +- WOKA/WebSeries/Controller/WebSeriesVC.swift | 54 ++++++++++++ WOKA/WebSeries/ViewModel/WebSeriesVM.swift | 63 ++++++++++---- WOKA/WebSeries/WebSeries.storyboard | 2 +- 17 files changed, 470 insertions(+), 101 deletions(-) create mode 100644 WOKA/Helpers/AdResuable/AdReusable.swift diff --git a/WOKA.xcodeproj/project.pbxproj b/WOKA.xcodeproj/project.pbxproj index d43db9d..f736191 100644 --- a/WOKA.xcodeproj/project.pbxproj +++ b/WOKA.xcodeproj/project.pbxproj @@ -112,6 +112,8 @@ 527AC6FE2C173A5100434FB7 /* SongListCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 527AC6FC2C173A5100434FB7 /* SongListCell.xib */; }; 527AC7012C182DCE00434FB7 /* TimeStringToSeconds.swift in Sources */ = {isa = PBXBuildFile; fileRef = 527AC7002C182DCE00434FB7 /* TimeStringToSeconds.swift */; }; 5282DB292C92D73B00465BA1 /* GoogleInteractiveMediaAds in Frameworks */ = {isa = PBXBuildFile; productRef = 5282DB282C92D73B00465BA1 /* GoogleInteractiveMediaAds */; }; + 5282DB2C2C9816C600465BA1 /* WOKA.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 5282DB2A2C9816C600465BA1 /* WOKA.xcdatamodeld */; }; + 5282DB2F2C981EAD00465BA1 /* AdReusable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5282DB2E2C981EAD00465BA1 /* AdReusable.swift */; }; 528BEF602C2C372900FFDAB8 /* ContinueWatchingVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 528BEF5F2C2C372900FFDAB8 /* ContinueWatchingVC.swift */; }; 528E5F1B2C24531200E33E4E /* SeasonListingDM.swift in Sources */ = {isa = PBXBuildFile; fileRef = 528E5F1A2C24531200E33E4E /* SeasonListingDM.swift */; }; 528E5F222C24660F00E33E4E /* SeasonCategoryCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 528E5F202C24660F00E33E4E /* SeasonCategoryCell.swift */; }; @@ -282,7 +284,6 @@ 9C27E1722BDB86B600EC1DA9 /* OnBoardCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C27E1702BDB86B600EC1DA9 /* OnBoardCell.swift */; }; 9C27E1732BDB86B600EC1DA9 /* OnBoardCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9C27E1712BDB86B600EC1DA9 /* OnBoardCell.xib */; }; 9C3E14472C517E8F00D06C10 /* TopViewEnum.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C3E14462C517E8F00D06C10 /* TopViewEnum.swift */; }; - 9C416B242C94249400C03A10 /* WOKA.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 9C416B222C94249400C03A10 /* WOKA.xcdatamodeld */; }; 9C535DB52C005A6D00DA6DCD /* KeyWindowFix.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C535DB42C005A6C00DA6DCD /* KeyWindowFix.swift */; }; 9C535DB82C0089B400DA6DCD /* ViewButtonAnimation.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C535DB72C0089B400DA6DCD /* ViewButtonAnimation.swift */; }; 9C535DC02C00B36000DA6DCD /* HomeVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C535DBF2C00B36000DA6DCD /* HomeVC.swift */; }; @@ -517,6 +518,8 @@ 527AC6FB2C173A5100434FB7 /* SongListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SongListCell.swift; sourceTree = ""; }; 527AC6FC2C173A5100434FB7 /* SongListCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SongListCell.xib; sourceTree = ""; }; 527AC7002C182DCE00434FB7 /* TimeStringToSeconds.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimeStringToSeconds.swift; sourceTree = ""; }; + 5282DB2B2C9816C600465BA1 /* WOKA.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = WOKA.xcdatamodel; sourceTree = ""; }; + 5282DB2E2C981EAD00465BA1 /* AdReusable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdReusable.swift; sourceTree = ""; }; 528BEF5F2C2C372900FFDAB8 /* ContinueWatchingVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContinueWatchingVC.swift; sourceTree = ""; }; 528E5F1A2C24531200E33E4E /* SeasonListingDM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SeasonListingDM.swift; sourceTree = ""; }; 528E5F202C24660F00E33E4E /* SeasonCategoryCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SeasonCategoryCell.swift; sourceTree = ""; }; @@ -690,7 +693,6 @@ 9C27E1702BDB86B600EC1DA9 /* OnBoardCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnBoardCell.swift; sourceTree = ""; }; 9C27E1712BDB86B600EC1DA9 /* OnBoardCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OnBoardCell.xib; sourceTree = ""; }; 9C3E14462C517E8F00D06C10 /* TopViewEnum.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TopViewEnum.swift; sourceTree = ""; }; - 9C416B232C94249400C03A10 /* WOKA.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = WOKA.xcdatamodel; sourceTree = ""; }; 9C535DB42C005A6C00DA6DCD /* KeyWindowFix.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyWindowFix.swift; sourceTree = ""; }; 9C535DB72C0089B400DA6DCD /* ViewButtonAnimation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewButtonAnimation.swift; sourceTree = ""; }; 9C535DBF2C00B36000DA6DCD /* HomeVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeVC.swift; sourceTree = ""; }; @@ -970,7 +972,7 @@ 9C535DC82C00C34000DA6DCD /* Theme */, 52DAC6462C21761700E2F85B /* WebSeries */, 9C834ED92C1C20EC00B29A9C /* WOKA.entitlements */, - 9C416B222C94249400C03A10 /* WOKA.xcdatamodeld */, + 5282DB2A2C9816C600465BA1 /* WOKA.xcdatamodeld */, 52ACC1292C610EC900791528 /* PersistentStorage.swift */, ); path = WOKA; @@ -1302,6 +1304,14 @@ path = Timer; sourceTree = ""; }; + 5282DB2D2C981E9300465BA1 /* AdResuable */ = { + isa = PBXGroup; + children = ( + 5282DB2E2C981EAD00465BA1 /* AdReusable.swift */, + ); + path = AdResuable; + sourceTree = ""; + }; 528F26E02C6B7B30003E4D99 /* OneSignalNotificationServiceExtension */ = { isa = PBXGroup; children = ( @@ -1493,6 +1503,7 @@ 52C8B0512BDA4B51003B51D0 /* Helpers */ = { isa = PBXGroup; children = ( + 5282DB2D2C981E9300465BA1 /* AdResuable */, 5201D4272C7F22DD008E3211 /* Network */, 9CDAEB0F2C53F12800890C47 /* Shadows */, 9C834EDA2C1C26C000B29A9C /* HTML */, @@ -2372,7 +2383,7 @@ 52B8D4DC2C04A25E00ED65F3 /* Delegate.swift in Sources */, 52CA28FC2BE11A0400708B49 /* UserIntrestVM.swift in Sources */, 52B8D4DB2C04A25E00ED65F3 /* TransitionContext.swift in Sources */, - 9C416B242C94249400C03A10 /* WOKA.xcdatamodeld in Sources */, + 5282DB2C2C9816C600465BA1 /* WOKA.xcdatamodeld in Sources */, 9C27E1602BDB6ECA00EC1DA9 /* UserDefaultsStruct.swift in Sources */, 52A3F6AD2BECC0340000BB0B /* TypeAlias.swift in Sources */, 52D6A24C2C21B43300145908 /* WebSeriesCell.swift in Sources */, @@ -2413,6 +2424,7 @@ 52A6DCA02C4E3AA600F63C51 /* ShopListingCell.swift in Sources */, 525954192BE8CC3400191286 /* ConstantString.swift in Sources */, 52D774EB2BDFC0BF001D87DE /* OTPVC.swift in Sources */, + 5282DB2F2C981EAD00465BA1 /* AdReusable.swift in Sources */, 9C8446872C40FC6E003E3E53 /* AVPlayerTesting.swift in Sources */, 52AF71F42C36C40B00BC5972 /* GamesWebViewVC.swift in Sources */, 9C007F202C255DF200F798C2 /* EpisodeListingDM.swift in Sources */, @@ -2861,7 +2873,7 @@ INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen.storyboard; INFOPLIST_KEY_UIMainStoryboardFile = Main; INFOPLIST_KEY_UIStatusBarHidden = NO; - INFOPLIST_KEY_UIStatusBarStyle = ""; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleLightContent; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UIUserInterfaceStyle = Light; IPHONEOS_DEPLOYMENT_TARGET = 14.0; @@ -2904,7 +2916,7 @@ INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen.storyboard; INFOPLIST_KEY_UIMainStoryboardFile = Main; INFOPLIST_KEY_UIStatusBarHidden = NO; - INFOPLIST_KEY_UIStatusBarStyle = ""; + INFOPLIST_KEY_UIStatusBarStyle = UIStatusBarStyleLightContent; INFOPLIST_KEY_UISupportedInterfaceOrientations = UIInterfaceOrientationPortrait; INFOPLIST_KEY_UIUserInterfaceStyle = Light; IPHONEOS_DEPLOYMENT_TARGET = 14.0; @@ -3225,14 +3237,14 @@ /* End XCSwiftPackageProductDependency section */ /* Begin XCVersionGroup section */ - 9C416B222C94249400C03A10 /* WOKA.xcdatamodeld */ = { + 5282DB2A2C9816C600465BA1 /* WOKA.xcdatamodeld */ = { isa = XCVersionGroup; children = ( - 9C416B232C94249400C03A10 /* WOKA.xcdatamodel */, + 5282DB2B2C9816C600465BA1 /* WOKA.xcdatamodel */, ); - currentVersion = 9C416B232C94249400C03A10 /* WOKA.xcdatamodel */; + currentVersion = 5282DB2B2C9816C600465BA1 /* WOKA.xcdatamodel */; name = WOKA.xcdatamodeld; - path = /Users/bilal/Desktop/woka_native_ios_swift/WOKA/WOKA.xcdatamodeld; + path = /Users/macbookpro/Desktop/WOKA/WOKA/WOKA.xcdatamodeld; sourceTree = ""; versionGroupType = wrapper.xcdatamodel; }; diff --git a/WOKA/Cart/Cart.storyboard b/WOKA/Cart/Cart.storyboard index ca5d79e..0ab20d1 100644 --- a/WOKA/Cart/Cart.storyboard +++ b/WOKA/Cart/Cart.storyboard @@ -138,23 +138,23 @@ - + - + - + @@ -209,14 +209,14 @@ - + - +