Skip to content

Commit

Permalink
Release 5.0.1 (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski authored Nov 21, 2023
1 parent 3a597a6 commit 965dff1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AirshipFrameworkProxy.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[versions]

# Airship
airshipProxy = '5.0.0'
airshipProxy = '5.0.1'
airship = '17.5.0'

# Gradle plugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 965dff1

Please sign in to comment.