Skip to content

AnyCodable no longer public #141

@Vortec4800

Description

@Vortec4800

In a recent version of the SDK, AnyCodable (and the En/Decodable versions) were changed from public to internal. Our project used AnyDecodable as part of a Cloud code return value:

struct CheckUserStatusCloudFunction: ParseCloud {
	typealias ReturnType = [String: AnyDecodable]
	
	var functionJobName = "checkUserStatus"
	
	var platform = "ios"
	var appIdentifier: String
}

The server returns a dictionary where the keys are all strings, and the values are various codable values like string, bool, int, etc. Normally we would create a struct to contain the results, but this specific functionality needs to be generic and could be used by different apps and the result may have different keys so it can't be statically typed in that way.

I can just add my own version of AnyCodable to the project, but this seems like a lot of duplication for something that already exists in the project. Can this be made public again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:wont-fixWon’t be fixed with a clearly stated reasontype:questionSupport or code-level question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions