added check for reconnect

This commit is contained in:
2024-10-15 19:32:08 +05:30
parent 4e9b23c093
commit a0bf4a99ac
4 changed files with 26 additions and 23 deletions

View File

@@ -2809,7 +2809,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
@@ -2906,7 +2906,7 @@
CODE_SIGN_ENTITLEMENTS = WOKA/WOKA.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 4S9A74ZB6H;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GENERATE_INFOPLIST_FILE = YES;
@@ -2950,6 +2950,7 @@
CODE_SIGN_ENTITLEMENTS = WOKA/WOKA.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 6;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 4S9A74ZB6H;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
GENERATE_INFOPLIST_FILE = YES;
@@ -2990,6 +2991,7 @@
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 4S9A74ZB6H;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 17.4;
@@ -3029,6 +3031,7 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 4S9A74ZB6H;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;

View File

@@ -115,7 +115,7 @@ class SideMenuVM{
if let avatar = data.avtarURL{
// vc.avatarImage.imageURL("https://wokaland.com/secret-panel-10102023/hidden-admin-portal-20092023/storage/app/public/uploads/avtar/avatar2.png?d=1716889852")
vc.avatarImage.imageURL(avatar)
vc.avatarImage.imageURL(avatar,type: .homeAvatar)
}else{
vc.avatarImage.image = UIImage(named: "DefaultAvatar")
}

View File

@@ -76,13 +76,11 @@ class ThemeOneVC: UIViewController {
super.viewDidLoad()
vm.vc = self
vm.initView()
vm.setupAvPlayer()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
setNeedsStatusBarAppearanceUpdate()
}
override func viewWillDisappear(_ animated: Bool) {

View File

@@ -33,26 +33,28 @@ class ThemeOneVM{
var avPlayerStatus = PlayerStatusEnum.none
var avPlayerBufferTimestamp : Date?
func requestIDFA() {
ATTrackingManager.requestTrackingAuthorization { status in
switch status {
case .authorized:
// User granted permission, now you can access IDFA
let idfa = ASIdentifierManager.shared().advertisingIdentifier.uuidString
print("IDFA: \(idfa)")
case .denied:
print("User denied tracking permission")
case .restricted:
print("Tracking is restricted")
case .notDetermined:
print("Tracking authorization dialog has not been shown")
@unknown default:
print("Unknown authorization status")
}
}
}
// func requestIDFA() {
// ATTrackingManager.requestTrackingAuthorization { status in
// switch status {
// case .authorized:
// // User granted permission, now you can access IDFA
// let idfa = ASIdentifierManager.shared().advertisingIdentifier.uuidString
// print("IDFA: \(idfa)")
// case .denied:
// print("User denied tracking permission")
// case .restricted:
// print("Tracking is restricted")
// case .notDetermined:
// print("Tracking authorization dialog has not been shown")
// @unknown default:
// print("Unknown authorization status")
// }
// }
// }
func initView(){
setupAvPlayer()
// Make sure to initialize a blank listing
if MyListDataTemp.shareInstance.favListingData?.showData == nil {
MyListDataTemp.shareInstance.favListingData = FavouriteListingDM.ResultData(totalRecords: nil, showData: FavouriteListingDM.ResultData.ShowData(hindi: [],english: []),videoData: [],gameData: [],singKaraokeData: [],audioData: [])