From dcbbfc3417c7e91c818364e9bb10ec91fa97b32e Mon Sep 17 00:00:00 2001 From: Bilal Date: Thu, 19 Sep 2024 01:22:04 +0530 Subject: [PATCH] - made theme 2 banner dynamic, if ad loads then only it will be shown - made radio ad dynamic, now ad will show up only if ad is received - added a retry count to fm, it will try 4 times to connect to the server if not then showing the reload btn --- WOKA/Constants K/GoogleAdIDs.swift | 3 +- WOKA/Games/Games.storyboard | 8 +- WOKA/Helpers/AdResuable/AdReusable.swift | 4 +- WOKA/Main/Delegate/AppDelegate.swift | 2 +- .../Base.lproj/Main.storyboard | 17 +- WOKA/Theme/Base.lproj/Theme.storyboard | 22 +- WOKA/Theme/Controller/ThemeTwoVC.swift | 47 +++- WOKA/Theme/ViewModel/ThemeTwoVM.swift | 9 +- WOKA/WOKAFM/Controller/WokaFMVC.swift | 17 +- WOKA/WOKAFM/ViewModel/WokaFMVM.swift | 89 +++++- WOKA/WOKAFM/WokaFM.storyboard | 260 +++++++++--------- 11 files changed, 306 insertions(+), 172 deletions(-) diff --git a/WOKA/Constants K/GoogleAdIDs.swift b/WOKA/Constants K/GoogleAdIDs.swift index e5bab59..c566c30 100644 --- a/WOKA/Constants K/GoogleAdIDs.swift +++ b/WOKA/Constants K/GoogleAdIDs.swift @@ -16,13 +16,12 @@ extension K{ static let karaoke = "ca-app-pub-3940256099942544/2934735716" static let audioBooks = "ca-app-pub-3940256099942544/2934735716" - static let games = "ca-app-pub-3940256099942544/2934735716" static let gamesDetailsInterStial = "ca-app-pub-5699008063638916/8126400123" // static let themeTwo = "ca-app-pub-3940256099942544/2934735716" static let themeTwo = "ca-app-pub-5699008063638916/1393141241" static let splashBanner1 = "ca-app-pub-5699008063638916/1393141241" - static let splashBanner2 = "ca-app-pub-5699008063638916/1393141241" + static let splashBanner2 = "ca-app-pub-5699008063638916/1888514001" } } diff --git a/WOKA/Games/Games.storyboard b/WOKA/Games/Games.storyboard index 83fb2a7..ce7884f 100644 --- a/WOKA/Games/Games.storyboard +++ b/WOKA/Games/Games.storyboard @@ -588,10 +588,10 @@ - + - + @@ -609,7 +609,7 @@ - + @@ -640,8 +640,8 @@ + - diff --git a/WOKA/Helpers/AdResuable/AdReusable.swift b/WOKA/Helpers/AdResuable/AdReusable.swift index be4586d..0117e53 100644 --- a/WOKA/Helpers/AdResuable/AdReusable.swift +++ b/WOKA/Helpers/AdResuable/AdReusable.swift @@ -40,7 +40,7 @@ class AdReusable { // If height is provided, add rounded corners if let heightValue = height, heightValue > 0 { - bannerView.layer.cornerRadius = 2 + bannerView.layer.cornerRadius = 4 bannerView.clipsToBounds = true } @@ -55,7 +55,7 @@ class AdReusable { bannerView.load(GADRequest()) // Ensure the layout is updated - bannerView.layoutIfNeeded() + containerView.layoutIfNeeded() } } diff --git a/WOKA/Main/Delegate/AppDelegate.swift b/WOKA/Main/Delegate/AppDelegate.swift index 3f1738b..1b4d850 100644 --- a/WOKA/Main/Delegate/AppDelegate.swift +++ b/WOKA/Main/Delegate/AppDelegate.swift @@ -44,7 +44,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { IQKeyboardManager.shared.resignOnTouchOutside = true // IQKeyboardManager.shared.enableAutoToolbar = false // IQKeyboardManager.shared.layoutIfNeededOnUpdate = true - registerCustomFonts() +// registerCustomFonts() // Set the authentication ID Pass after app starts AuthFunc.shareInstance.setAuthIDPass() diff --git a/WOKA/OnBoarding Module/Base.lproj/Main.storyboard b/WOKA/OnBoarding Module/Base.lproj/Main.storyboard index 68ca2d8..5a39e6c 100644 --- a/WOKA/OnBoarding Module/Base.lproj/Main.storyboard +++ b/WOKA/OnBoarding Module/Base.lproj/Main.storyboard @@ -27,17 +27,17 @@ - + - + - + + + + - + + - - + + @@ -204,8 +211,5 @@ - - -