{ "id": "176162", "key": "AC-6693", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2021-04-26T19:45:19.000+0000", "created": "2021-04-23T12:57:58.000+0000", "labels": [], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-04-26T19:45:19.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": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "description": "Hi Team, \r\n\r\nAfter upgrading and building with latest Appcelerator and Android SDK 10, I am not getting Android unsigned apk package. \r\n\r\nWe have a build configure to run the below CLI command:\r\nappc run --platform android -b\r\n\r\nWith the same command i used to get the unsigned package, but after upgrade i am not \r\ngetting. And we have requirment to get the unsigned build only. \r\n\r\nSo please provide the steps for getting the unsigned build.", "attachment": [ { "id": "67911", "filename": "Capture.JPG", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T14:53:28.000+0000", "size": 90141, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Not able to generate Android unsigned apk package using CLI commands", "creator": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Node.js\r\n Node.js Version = 10.16.2\r\n npm Version = 6.9.0\r\n\r\nAppcelerator CLI\r\n Installer = 5.0.0\r\n Core Package = 7.1.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.2.1\r\n node-appc Version = 0.2.49\r\n\r\nTitanium SDKs\r\n 9.3.2.GA\r\n\r\n android-29 Android 10", "comment": { "comments": [ { "id": "458611", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you want to disable digital signing of \"release\" APKs, then you can do so by adding a \"build.gradle\" file under your project's {{./platform/android}} folder like this...\r\n{code:groovy}\r\nandroid {\r\n\tbuildTypes {\r\n\t\trelease {\r\n\t\t\tsigningConfig null\r\n\t\t}\r\n\t}\r\n}\r\n{code}\r\n\r\nJust note that {{appc run}} will end with a build error because it failed to find the signed APK. You can ignore this error and instead grab the unsigned APK yourself under the following folder...\r\n{{./build/android/app/build/outputs/apk/debug}}\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-23T19:30:30.000+0000", "updated": "2021-04-23T19:30:30.000+0000" }, { "id": "458616", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the response. \r\n\r\nAs per above information, I have done the needful and found still apk under mention path is Signed by Appcelerator. \r\n\r\nI have run the jarsigner on the apk and verified. \r\n\r\nAttached screenshot for the details.\r\n\r\nMy requirement was to get the release build without signed apk and later will sign with our ceritificate and then will upload in play store.\r\n\r\nPlease provide the steps for the same.\r\n\r\n !Capture.JPG|thumbnail! ", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-24T14:53:44.000+0000", "updated": "2021-04-24T14:54:56.000+0000" }, { "id": "458617", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "is your apk called: {{app-release-unsigned.apk}}? If not there is something wrong. \r\nI do the same to get an unsigned APK: add the parts to the build.gradle and then I build a \"normal\" store release:\r\n{{ti build -p android -K file.keystore -T dist-playstore}}\r\nThe build will fail with an error at the end \"Error: Failed to find built APK file\" and I find my unsigned APK in: {{/build/android/app/build/outputs/apk/release}}\r\n\r\nand the jarsigner output looks like this:\r\n{code}\r\njarsigner --verify app-release-unsigned.apk\r\nno manifest.\r\njar is unsigned.\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-04-25T20:34:36.000+0000", "updated": "2021-04-25T20:36:54.000+0000" }, { "id": "458618", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No, apk output is app-debug.apk inside \\build\\android\\app\\build\\outputs\\apk\\debug. \r\n\r\nWith below configuration, I don't see the \"release\" folder as an outcome.\r\nandroid {\r\n\tbuildTypes {\r\n\t\trelease {\r\n\t\t\tsigningConfig null\r\n\t\t}\r\n\t}\r\n}\r\n\r\nI don't want to build with \"ti build -p android -K file.keystore -T dist-playstore\" because we have separate apk build server which will signed apk. \r\n\r\nMy requirement is to get the released unsigned apk as an output. \r\n\r\nPlease provide steps for the same.\r\n\r\n", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-26T03:45:04.000+0000", "updated": "2021-04-26T03:45:04.000+0000" }, { "id": "458620", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "If you want to build a \"-b\" debug version, then you just have to change release to debug in the build.gradle file. So\r\n{code}\r\nandroid {\r\n buildTypes {\r\n debug {\r\n signingConfig null\r\n }\r\n }\r\n}\r\n{code}\r\n\r\nbut keep in mind: it will build a debug version which shouldn't be released to the store.\r\nAnd since you've said \r\n\r\n{noformat}\r\nMy requirement is to get the released unsigned apk as an output. \r\n{noformat}\r\n\r\nyou should follow the steps I've posted and build a release version.", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2021-04-26T07:40:33.000+0000", "updated": "2021-04-26T07:40:33.000+0000" }, { "id": "458621", "author": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the update, you can resolved this ticket.", "updateAuthor": { "name": "shishir.roy", "key": "shishir.roy", "displayName": "shishir.roy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-04-26T10:09:26.000+0000", "updated": "2021-04-26T10:09:26.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }