{ "id": "161005", "key": "TIMOB-23493", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-11-15T22:03:12.000+0000", "created": "2016-06-10T18:57:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "parity" ], "versions": [], "issuelinks": [ { "id": "52014", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "161021", "key": "TIMOB-23499", "fields": { "summary": "Android: Ti.UI.Label.wordWrap should default to true, but is undefined", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52000", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "161007", "key": "TIMOB-23494", "fields": { "summary": "Android: Support #createFile() method on Ti.Filesystem.File", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "52002", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "161010", "key": "TIMOB-23495", "fields": { "summary": "iOS: Support parent property on Ti.Filesystem.File", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "52007", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "161018", "key": "TIMOB-23497", "fields": { "summary": "Android: Support indicatorColor and indicatorDiameter properties on Ti.UI.ActivityIndicator", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "51999", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "155985", "key": "TIMOB-20624", "fields": { "summary": "Parity: Combine unit tests for SDKs into common suite/repo", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-11-22T22:03:45.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Android is the only platform that doesn't support Ti.Filesystem.File#append(). We should ideally support it for parity's sake.", "attachment": [], "flagged": false, "summary": "Android: Support #append() method on Ti.Filesystem.File", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 752, "state": "closed", "name": "2016 Sprint 23 SDK", "startDate": "2016-11-05T00:39:37.027Z", "endDate": "2016-11-19T01:39:00.000Z", "completeDate": "2016-11-29T06:51:57.887Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "399322", "author": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8513\r\n\r\n*epected result if firstFile is already existing else should return true for first line of log output*\r\n{noformat}\r\n? I/TiAPI: firstFile status: createdFile: false\r\n? I/TiAPI: firstFile status: appended_lorem: true\r\n? I/TiAPI: secondFile status: appended_theory: true\r\n? I/TiAPI: firstFile status: appended_file_to_file: true\r\n? I/TiAPI: firstBlobFile status: appended_blob: true\r\n{noformat}\r\n\r\n\r\n*test code:*\r\n{code:JavaScript}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\nwindow.open();\r\nvar firstFile = null;\r\nvar lorem_ipsum = \"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\";\r\nvar theory_of_science = \"In theoretical computer science and mathematics, the theory of computation is the branch that deals with how efficiently problems can be solved on a model of computation, using an algorithm. The field is divided into three major branches: automata theory and language, computability theory, and computational complexity theory, which are linked by the question: 'What are the fundamental capabilities and limitations of computers?'.[1]\";\r\ntry {\r\n\t// get firstFile handle\r\n\tfirstFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"first_file\");\r\n\ttry {\r\n\t\tvar createdFile = firstFile.createFile();\r\n\t\tTi.API.info(\"firstFile status: createdFile: \" + createdFile);\r\n\t\tvar appended_lorem = firstFile.append(lorem_ipsum);\r\n\t\tTi.API.info(\"firstFile status: appended_lorem: \" + appended_lorem);\r\n\t\t// var deletedFile = firstFile.deleteFile();\r\n\t\t// Ti.API.info(\"firstFile status: deletedFile: \" + deletedFile);\r\n\t\tvar secondFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"second_file\");\r\n\t\tsecondFile.createFile();\r\n\t\tvar appended_theory = secondFile.append(theory_of_science);\r\n\t\tTi.API.info(\"secondFile status: appended_theory: \" + appended_theory);\r\n\t\t\r\n\t\t/**\r\n\t\t * APPEND FILE TO FILE TEST\r\n\t\t */\r\n\t\tvar appended_file_to_file = firstFile.append(secondFile);\r\n\t\tTi.API.info(\"firstFile status: appended_file_to_file: \" + appended_file_to_file);\r\n\t\t\r\n\t\t/**\r\n\t\t * APPEND BLOB FILE TO BLOB FILE TEST\r\n\t\t */\r\n\t\tvar firstBlobFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"first_blob_file\");\r\n\t\tfirstBlobFile.createFile();\r\n\t\tfirstBlobFile.append(firstFile.read());\r\n\t\tvar secondBlobFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, \"second_blob_file\");\r\n\t\tsecondBlobFile.createFile();\r\n\t\tsecondBlobFile.append(secondFile.read());\r\n\t\tvar appended_blob = firstBlobFile.append(secondBlobFile);\r\n\t\tTi.API.info(\"firstBlobFile status: appended_blob: \" + appended_blob);\r\n\t} catch (err) {\r\n\t\tTi.API.error(\"firstFile error. directory listing: \" + firstFile.getDirectoryListing.toString() + \" file: \" + firstFile.resolve() + \" \" + err);\r\n\t}\r\n} catch (err) {\r\n\tTi.API.error(\"firstFile error. \" + err);\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "fmerzadyan-OLD", "key": "fmerzadyan", "displayName": "Farzad Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-10-18T23:46:03.000+0000", "updated": "2016-11-11T22:15:49.000+0000" }, { "id": "401720", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified, fixed was able to view the following comments in the console.\r\n\r\n{code:java}\r\n[INFO] : firstFile status: createdFile: false\r\n[INFO] : firstFile status: appended_lorem: true\r\n[INFO] : secondFile status: appended_theory: true\r\n[INFO] : firstFile status: appended_file_to_file: true\r\n[INFO] : firstBlobFile status: appended_blob: true\r\n{code}\r\n\r\n*Environment*\r\n{code:java}\r\nAppcelerator Command-Line Interface, version 6.0.0\r\nAndroid 7.0 (Google Nexus 6P)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 4.6.0\r\nnpm: 4.2.8\r\nTitanium CLI Version: 5.0.10\r\nTitanium SDK Version: 6.1.0.v20161121162514\r\nXcode: 8.0\r\nAppcelerator Studio: 4.8.0.201611121409\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-11-22T22:03:25.000+0000", "updated": "2016-11-22T22:03:25.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }