Skip to content

Use ObjC friendly name that won't conflict with module name#58

Merged
nporter-adbe merged 1 commit intodevfrom
nporter-adbe-patch-1
Sep 1, 2020
Merged

Use ObjC friendly name that won't conflict with module name#58
nporter-adbe merged 1 commit intodevfrom
nporter-adbe-patch-1

Conversation

@nporter-adbe
Copy link
Copy Markdown
Contributor

We found an issue that would only manifest in core where if you include the XCFramework into a swift app that it would have trouble distinguishing AEPCore (module) and AEPCore (objc class). We thought that this issue would not manifest since the prefixed class name is only being exported to objc. However, it turns out this is not the case and it still conflicts.

To solve this we simply adding the AEPMobile prefix to our classes for now.

@emdobrin
Copy link
Copy Markdown
Contributor

emdobrin commented Sep 1, 2020

Should we rather change the module name (which is less used) than the class name? Did we decide that this will be the go to public approach for core as well?

@nporter-adbe
Copy link
Copy Markdown
Contributor Author

nporter-adbe commented Sep 1, 2020

@emdobrin Yes, this naming convention was decided to be used for core. Mainly since we aren't interested in renaming the Xcode project, cocoapod, and quite a few other resources such as makefile.

@emdobrin
Copy link
Copy Markdown
Contributor

emdobrin commented Sep 1, 2020

Got it, thanks @nporter-adbe. My only concern was that the obj-c name became pretty long and wanted to see if there is any way we can avoid that since it will be used frequently in customer's implementation, but we will need to first decide the final name to determine that is an issue.

@nporter-adbe nporter-adbe merged commit 3fd8cd4 into dev Sep 1, 2020
@nporter-adbe nporter-adbe deleted the nporter-adbe-patch-1 branch September 1, 2020 23:30
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