My CodenameOne app is intended for iOS, but I also created a native app
with XCode.
The two apps should be compatible, in regard to data files in the app
private folder.
At present stage the CodenameOne app writes data to the main private folder
/
while the Swift app uses the following instructions, as suggested in the
official guidelines, if I am not wrong:
let dir = try! FileManager.default.url(for: .libraryDirectory, in:
.userDomainMask, appropriateFor: nil, create: true);
let fileUrl =
dir.appendingPathComponent(fileName).appendingPathExtension("json");
I do not think that the "Library" is the main private folder, so I need to
understand if it is necessary for the CodenameOne app to create a
subfolder. And what should be the path.
Thanks in advance
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/d0d89cc3-23ca-4f61-af31-ac32c6b617bcn%40googlegroups.com.