diff --git a/WOKA/Games/Controller/GamesWebViewVC.swift b/WOKA/Games/Controller/GamesWebViewVC.swift
index 2dcc09d..61a9fdb 100644
--- a/WOKA/Games/Controller/GamesWebViewVC.swift
+++ b/WOKA/Games/Controller/GamesWebViewVC.swift
@@ -42,12 +42,10 @@ class GamesWebViewVC: UIViewController, WKNavigationDelegate,UIGestureRecognizer
override func viewDidLoad() {
super.viewDidLoad()
-
-
-
+
if let orientation, orientation == .landscape{
DispatchQueue.main.async { [weak self] in
- guard let self else{return}
+ guard self != nil else{return}
appDelegate.deviceOrientation = .landscapeRight
let value = UIInterfaceOrientation.landscapeRight.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
diff --git a/WOKA/Home/Home.storyboard b/WOKA/Home/Home.storyboard
index ed5f4ac..65d18cb 100644
--- a/WOKA/Home/Home.storyboard
+++ b/WOKA/Home/Home.storyboard
@@ -1072,10 +1072,10 @@
-
+
-
+
@@ -1232,6 +1232,11 @@
+
+
+
+
+
@@ -1364,18 +1369,14 @@
-
+
-
+
-
-
-
-
@@ -1533,20 +1534,16 @@
-
-
-
-
+
-
@@ -1670,10 +1667,10 @@
-
+
-
+
diff --git a/WOKA/Home/ViewModel/MyListVM.swift b/WOKA/Home/ViewModel/MyListVM.swift
index 916ad59..8321c29 100644
--- a/WOKA/Home/ViewModel/MyListVM.swift
+++ b/WOKA/Home/ViewModel/MyListVM.swift
@@ -35,7 +35,6 @@ class MyListVM{
vc.guestLoginStack.isHidden = false
vc.scrollView.isHidden = true
startShimmer(load: false)
-
return
}
@@ -65,17 +64,16 @@ class MyListVM{
*/
if let adsData = AuthFunc.shareInstance.adsData{
// check if ads data contains ad for webseries
- if let shopSuperCatAd = adsData.result?.filter({$0.slug == AdsEnum.myList.rawValue}).first, shopSuperCatAd.googleAd != nil{
+ if let myListAd = adsData.result?.filter({$0.slug == AdsEnum.myList.rawValue}).first, myListAd.googleAd != nil{
//setup google banner ads.
- DispatchQueue.main.asyncAfter(deadline: .now() + 0.2, execute: {
- AdReusable.sharedInstance.setupBannerAd(bannerView: self.bottomBanner, in: self.vc.adView, adUnitID: K.GoogleAdIDs.shop, viewController: self.vc, height: 2,width: 10)
+ DispatchQueue.main.asyncAfter(deadline: .now() + 0.3, execute: {
+ AdReusable.sharedInstance.setupBannerAd(bannerView: self.bottomBanner, in: self.vc.adView, adUnitID: K.GoogleAdIDs.myListNotifications, viewController: self.vc, height: 6,width: 0)
})
}
}
}
}
}
-
vc.shimmerStack.isHidden = !load
}
diff --git a/WOKA/Main/JWPlayerManager.swift b/WOKA/Main/JWPlayerManager.swift
index e0169c3..5e2aa46 100644
--- a/WOKA/Main/JWPlayerManager.swift
+++ b/WOKA/Main/JWPlayerManager.swift
@@ -170,9 +170,13 @@ class JWPlayerManager {
let finalConfig : JWPlayerConfiguration?
+ let ad1 = AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/ads?iu=/23204950200/VideoAd&description_url=https%3A%2F%2Fwokaland.com%2F&tfcd=0&npa=0&ad_type=audio_video&sz=640x480%7C1280x720&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=")!, offset: .midroll(percent: 40))
+ let ad2 = AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/live/ads?iu=/23204950200/VideoAd&description_url=https%3A%2F%2Fwokaland.com%2F&tfcd=0&npa=0&ad_type=audio_video&sz=640x480%7C1280x720&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=&nofb=1")!, offset: .midroll(percent: 80))
+ let ad3 = AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_preroll_skippable&sz=640x480&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=90")!, offset: .midroll(percent: 90))
+
switch contentType{
case .audioBooks:
- if let adConfigs = JWAdsBuilder.shareInstace.createAds(adsData: [AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/ads?iu=/23204950200/VideoAd&description_url=https%3A%2F%2Fwokaland.com%2F&tfcd=0&npa=0&ad_type=audio_video&sz=640x480%7C1280x720&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=")!, offset: .midroll(percent: 40)),AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/live/ads?iu=/23204950200/VideoAd&description_url=https%3A%2F%2Fwokaland.com%2F&tfcd=0&npa=0&ad_type=audio_video&sz=640x480%7C1280x720&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=&nofb=1")!, offset: .midroll(percent: 80)), AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_preroll_skippable&sz=640x480&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=90")!, offset: .midroll(percent: 90))]){
+ if let adConfigs = JWAdsBuilder.shareInstace.createAds(adsData: [ad1,ad2,ad3]){
finalConfig = try JWPlayerConfigurationBuilder()
.playlist(items: items)
.autostart(true)
@@ -186,7 +190,7 @@ class JWPlayerManager {
}
case .webSeries:
//https://pubads.g.doubleclick.net/gampad/ads?iu=/23204950200/VideoAd&description_url=https%3A%2F%2Fwokaland.com%2F&tfcd=0&npa=0&sz=480x320%7C640x480&ciu_szs=480x320&min_ad_duration=5000&max_ad_duration=20000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=
- if let adsData = AuthFunc.shareInstance.adsData, let webSeriesVideoAd = adsData.result?.filter({$0.slug == AdsEnum.webSeriesVideoAd.rawValue}).first, webSeriesVideoAd.googleAd != nil, let adConfigs = JWAdsBuilder.shareInstace.createAds(adsData: [AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/ads?iu=/23204950200/testingvideo&description_url=https%3A%2F%2Fwokaland.com&tfcd=0&npa=0&sz=640x180%7C1280x720%7C1280x720&min_ad_duration=0&max_ad_duration=30000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=&vad_type=linear")!, offset: .midroll(percent: 40)),AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/ads?iu=/23204950200/VideoAd&description_ss url=https%3A%2F%2Fwokaland.com&tfcd=0&npa=0&sz=640x480%7C1280x720&min_ad_duration=5000&max_ad_duration=30000&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=")!, offset: .midroll(percent: 80)),AdBreakItemStruct(adUrl: URL(string: "https://pubads.g.doubleclick.net/gampad/ads?iu=/21775744923/external/single_preroll_skippable&sz=640x480&ciu_szs=300x250%2C728x90&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=90")!, offset: .midroll(percent: 90))]){
+ if let adsData = AuthFunc.shareInstance.adsData, let webSeriesVideoAd = adsData.result?.filter({$0.slug == AdsEnum.webSeriesVideoAd.rawValue}).first, webSeriesVideoAd.googleAd != nil, let adConfigs = JWAdsBuilder.shareInstace.createAds(adsData: [ad1, ad2, ad3]){
finalConfig = try JWPlayerConfigurationBuilder()
.playlist(items: items)
.autostart(false)
diff --git a/WOKA/Theme/ViewModel/ThemeOneVM.swift b/WOKA/Theme/ViewModel/ThemeOneVM.swift
index 12fcc73..3b2279b 100644
--- a/WOKA/Theme/ViewModel/ThemeOneVM.swift
+++ b/WOKA/Theme/ViewModel/ThemeOneVM.swift
@@ -627,11 +627,13 @@ class ThemeOneVM{
!image.isHidden ? image.isHidden = true : nil
}
}
- vc.gradientView.applyGradient(colors: [details.color1, details.color2], startPoint: CGPoint(x: 0, y: 0), endPoint: CGPoint(x: 0, y: 0.8))
- vc.nameLabel.textColor = details.textColor
- vc.HelloLabel.textColor = details.textColor
- vc.welcomeLabel.textColor = details.textColor
- vc.homeGrass.image = UIImage(named: details.grass)
+// DispatchQueue.main.asyncAfter(deadline: .now() + 0.1, execute: {
+ self.vc.gradientView.applyGradient(colors: [details.color1, details.color2], startPoint: CGPoint(x: 0, y: 0), endPoint: CGPoint(x: 0, y: 0.8))
+ self.vc.nameLabel.textColor = details.textColor
+ self.vc.HelloLabel.textColor = details.textColor
+ self.vc.welcomeLabel.textColor = details.textColor
+ self.vc.homeGrass.image = UIImage(named: details.grass)
+// })
}
break
}