From b0631d14348a3ba3769d374c0ecaba19ba48a600 Mon Sep 17 00:00:00 2001 From: mayur nilwant Date: Thu, 13 Jun 2024 18:25:17 -0400 Subject: [PATCH] moved clearAppLevelFiles into MVMCoreGetterUtility extension at other plave. --- .../MVMCore/OtherHandlers/MVMCoreCache+Extension.swift | 9 +-------- .../Utility/Helpers/MVMCoreGetterUtility+Extension.swift | 6 ++++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache+Extension.swift b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache+Extension.swift index 65ce4cb..17c58d3 100644 --- a/MVMCore/MVMCore/OtherHandlers/MVMCoreCache+Extension.swift +++ b/MVMCore/MVMCore/OtherHandlers/MVMCoreCache+Extension.swift @@ -161,12 +161,5 @@ extension PersistentCacheManager { } -@objc public extension MVMCoreGetterUtility { - - @objc static func clearAppLevelFiles() { - - PersistentCacheManager.shared.clearPersistentAppLevelCache() - } - -} + diff --git a/MVMCore/MVMCore/Utility/Helpers/MVMCoreGetterUtility+Extension.swift b/MVMCore/MVMCore/Utility/Helpers/MVMCoreGetterUtility+Extension.swift index 42b3ce5..40c72f5 100644 --- a/MVMCore/MVMCore/Utility/Helpers/MVMCoreGetterUtility+Extension.swift +++ b/MVMCore/MVMCore/Utility/Helpers/MVMCoreGetterUtility+Extension.swift @@ -31,4 +31,10 @@ public extension MVMCoreGetterUtility { @objc class func getKeyWindow() -> UIWindow? { UIApplication.shared.connectedScenes.flatMap { ($0 as? UIWindowScene)?.windows ?? [] }.first { $0.isKeyWindow } } + + @objc static func clearAppLevelFiles() { + + PersistentCacheManager.shared.clearPersistentAppLevelCache() + + } }