[TIMOB-19534] How to include the .bundles on a native module
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-12-11T22:50:54.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Shuo Liang |
Assignee | Unknown |
Created | 2015-09-17T04:36:16.000+0000 |
Updated | 2018-12-11T22:50:54.000+0000 |
Description
Customer try to develop a native module, but there is no way add .bundles file into module.
Tried add to asset folder and platform folder in module, but after package module into a mobile project, the .bundles file does not work well.
So is there a way to add .bundles file into native module.
Ok so static libs cannot contain bundle files, so putting that .bundles in the Xcode project is out of the question. The best alternative i can think of is, create a framework instead. Put the contents of the bundle file (it's really a folder of files) into a framework and put it in the platform directory. After which you need to edit *module.xcconfig* to have
and of course, in your Xcode project reference to the framework to access those bundle files. One example you can look at is our Facebook module :)