()
| 309 | } |
| 310 | |
| 311 | export function createAndAppendData() { |
| 312 | const file = File.fromPath(path.join(knownFolders.temp().path, `${Date.now()}-app.txt`)); |
| 313 | const hello = global.isIOS ? NSString.stringWithString('Hello').dataUsingEncoding(NSUTF8StringEncoding) : new java.lang.String('Hello').getBytes('UTF-8'); |
| 314 | const world = global.isIOS ? NSString.stringWithString(' World').dataUsingEncoding(NSUTF8StringEncoding) : new java.lang.String(' World').getBytes('UTF-8'); |
| 315 | file.appendSync(hello); |
| 316 | file.appendSync(world); |
| 317 | const data = file.readTextSync(); |
| 318 | console.log('createAndAppendData:', data === 'Hello World'); |
| 319 | } |
nothing calls this directly
no test coverage detected