adobe / aepsdk-edge-ios

Adobe Experience Platform Edge Network mobile extension in Swift
Apache License 2.0
13 stars 24 forks source link

Move XDMSchema protocol to Core #170

Closed swarna04 closed 3 years ago

swarna04 commented 3 years ago

This will allow other Edge extensions to accept xdm data from customers adhering to this protocol instead of accepting a free-form dictionary [String: Any]

Example personalization API request

static func updatePropositions(for decisionScopes: [DecisionScope], with xdm: XDMSchema? = nil)
emdobrin commented 3 years ago

@swarna04 I think we can do this change in both iOS and Android, as long as we keep the same names and, for android, keep the same package as well. The only item I know of that requires more investigation is making XDMSchema objc compatible. For now the xdm schema is supported in Swift and Android.

emdobrin commented 3 years ago

Update: we decided not to move these classes to Core for now, but new extensions such as the Personalization extension may still provide a way to pass in xdm and raw data as dictionaries as part of their APIs to be attached at the time of the request to Edge Network.