Skip to content

Make public APIs ObjC Compatible#138

Merged
nporter-adbe merged 1 commit intoadobe:stagingfrom
nporter-adbe:objc-Compat
Jan 15, 2021
Merged

Make public APIs ObjC Compatible#138
nporter-adbe merged 1 commit intoadobe:stagingfrom
nporter-adbe:objc-Compat

Conversation

@nporter-adbe
Copy link
Copy Markdown
Contributor

@nporter-adbe nporter-adbe commented Jan 15, 2021

Our current APIs do not allow for creating an Event or sending an Event in ObjC.

/// - data: Any free form data in a [String : Any] dictionary structure.
/// - datasetIdentifier: The Experience Platform dataset identifier where this event should be sent to; if not provided, the default dataset identifier set in the Edge configuration is used
public init(xdm: [String: Any], data: [String: Any]? = nil, datasetIdentifier: String? = nil) {
@objc public init(xdm: [String: Any], data: [String: Any]? = nil, datasetIdentifier: String? = nil) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any changes we need to do to XDMSchema or XDMFormatters?
EdgeEventHandle seems correct, but please test with that too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can easily make XDMFormatters compatible with Objc, but XDMSchema is a bit of a different story due to the Encoadable requirement.

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 15, 2021

Codecov Report

Merging #138 (9ff02db) into dev (f96a7bf) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #138   +/-   ##
=======================================
  Coverage   93.34%   93.34%           
=======================================
  Files          20       20           
  Lines         616      616           
=======================================
  Hits          575      575           
  Misses         41       41           

@nporter-adbe nporter-adbe changed the base branch from dev to staging January 15, 2021 23:44
@nporter-adbe nporter-adbe merged commit 0987c6e into adobe:staging Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants