(ids: Id[])
| 89 | } |
| 90 | |
| 91 | function generateAndroidResourceFile(ids: Id[]): string { |
| 92 | const androidItems: object[] = ids.map((id) => { |
| 93 | return { _attributes: { type: 'id', name: id.androidCompatibleIdentifier } }; |
| 94 | }); |
| 95 | |
| 96 | return xml.js2xml( |
| 97 | { |
| 98 | resources: { |
| 99 | item: androidItems, |
| 100 | }, |
| 101 | }, |
| 102 | { compact: true, spaces: 2 }, |
| 103 | ); |
| 104 | } |
| 105 | |
| 106 | function generateIOSIds(ids: Id[], iosHeaderImportPath: string): ObjectiveCFile { |
| 107 | const header = new ObjectiveCWriter(); |