diff --git a/AirshipFrameworkProxy.podspec b/AirshipFrameworkProxy.podspec index 2a23428..5c49b91 100644 --- a/AirshipFrameworkProxy.podspec +++ b/AirshipFrameworkProxy.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| - s.version = "5.0.0" + s.version = "5.0.1" s.name = "AirshipFrameworkProxy" s.summary = "Airship iOS mobile framework proxy" s.documentation_url = "https://docs.airship.com/platform/mobile" diff --git a/android/airship-framework-proxy/src/main/java/com/urbanairship/android/framework/proxy/proxies/FeatureFlagManagerProxy.kt b/android/airship-framework-proxy/src/main/java/com/urbanairship/android/framework/proxy/proxies/FeatureFlagManagerProxy.kt index c332f18..4ba0313 100644 --- a/android/airship-framework-proxy/src/main/java/com/urbanairship/android/framework/proxy/proxies/FeatureFlagManagerProxy.kt +++ b/android/airship-framework-proxy/src/main/java/com/urbanairship/android/framework/proxy/proxies/FeatureFlagManagerProxy.kt @@ -5,6 +5,7 @@ import com.urbanairship.featureflag.FeatureFlagManager import com.urbanairship.json.JsonSerializable import com.urbanairship.json.JsonValue import com.urbanairship.json.jsonMapOf +import com.urbanairship.json.requireField public class FeatureFlagManagerProxy internal constructor(private val featureFlagManagerProvider: () -> FeatureFlagManager) { public suspend fun flag(name: String): FeatureFlagProxy { @@ -22,8 +23,9 @@ public data class FeatureFlagProxy( ) : JsonSerializable { public constructor(jsonValue: JsonValue): this( - FeatureFlag.fromJson(jsonValue) + FeatureFlag.fromJson(jsonValue.requireMap().requireField("_internal")) ) + override fun toJsonValue(): JsonValue = jsonMapOf( "isEligible" to original.isEligible, "exists" to original.exists, diff --git a/android/gradle/libs.versions.toml b/android/gradle/libs.versions.toml index 186ecdb..b477de3 100644 --- a/android/gradle/libs.versions.toml +++ b/android/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] # Airship -airshipProxy = '5.0.0' +airshipProxy = '5.0.1' airship = '17.5.0' # Gradle plugins diff --git a/ios/AirshipFrameworkProxy/Proxies/AirshipMessageCenterProxy.swift b/ios/AirshipFrameworkProxy/Proxies/AirshipMessageCenterProxy.swift index f2b5760..6680a5b 100644 --- a/ios/AirshipFrameworkProxy/Proxies/AirshipMessageCenterProxy.swift +++ b/ios/AirshipFrameworkProxy/Proxies/AirshipMessageCenterProxy.swift @@ -162,7 +162,7 @@ public struct AirshipMessageCenterMessage: Codable { case title = "title" case identifier = "id" case sentDate = "sentDate" - case listIconURL = "listIconURL" + case listIconURL = "listIconUrl" case isRead = "isRead" case extras = "extras" case expirationDate = "expirationDate"