diff --git a/mobile-sdk/src/main/java/com/extole/android/sdk/Extole.kt b/mobile-sdk/src/main/java/com/extole/android/sdk/Extole.kt index fa196cc..85be254 100644 --- a/mobile-sdk/src/main/java/com/extole/android/sdk/Extole.kt +++ b/mobile-sdk/src/main/java/com/extole/android/sdk/Extole.kt @@ -47,12 +47,6 @@ interface Extole { */ fun getContext(): ApplicationContext - /** - * Clear cache for a specific zone. Useful for debugging caching issues. - * @param zoneName - the name of the zone to clear from cache - */ - fun clearZoneCache(zoneName: String) - /** * Used to send an event, the accessToken, headers and data associated with this instance * of Extole will be included with the request diff --git a/mobile-sdk/src/main/java/com/extole/android/sdk/impl/CampaignImpl.kt b/mobile-sdk/src/main/java/com/extole/android/sdk/impl/CampaignImpl.kt index 9ab46d4..2d862f3 100644 --- a/mobile-sdk/src/main/java/com/extole/android/sdk/impl/CampaignImpl.kt +++ b/mobile-sdk/src/main/java/com/extole/android/sdk/impl/CampaignImpl.kt @@ -116,10 +116,6 @@ class CampaignImpl( extole.logout() } - override fun clearZoneCache(zoneName: String) { - extole.clearZoneCache(zoneName) - } - override suspend fun clone( programDomain: String?, appName: String?, diff --git a/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleImpl.kt b/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleImpl.kt index 3b11275..84c9b2a 100644 --- a/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleImpl.kt +++ b/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleImpl.kt @@ -293,17 +293,6 @@ class ExtoleImpl( this.zonesResponse = Zones(mutableMapOf()) } - /** - * Clear cache for a specific zone. Useful for debugging React Native caching issues. - */ - override fun clearZoneCache(zoneName: String) { - val currentCache = zonesResponse.getAll().toMutableMap() - val keysToRemove = currentCache.keys.filter { it.zoneName == zoneName } - keysToRemove.forEach { currentCache.remove(it) } - this.zonesResponse = Zones(currentCache) - logger.debug("Cleared cache for zone: $zoneName") - } - private fun subscribe() { configurationLoader?.let { operations.addAll(it(App, mapOf())) } if (configurationLoader == null) { diff --git a/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleInternal.kt b/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleInternal.kt index a0a3a74..b29fa0c 100644 --- a/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleInternal.kt +++ b/mobile-sdk/src/main/java/com/extole/android/sdk/impl/ExtoleInternal.kt @@ -80,16 +80,4 @@ interface ExtoleInternal : Extole { fun getOperations(): MutableList fun getJsonConfiguration(): MutableList fun getDisabledActions(): Set - - /** - * ApplicationContext represents the context where the Mobile SDK is used - * @return [ApplicationContext] - */ - override fun getContext(): ApplicationContext - - /** - * Clear cache for a specific zone. Useful for debugging caching issues. - * @param zoneName - the name of the zone to clear from cache - */ - override fun clearZoneCache(zoneName: String) }