{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/21146","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/21146/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/21146/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/21146/events","html_url":"https://github.com/flutter/flutter/issues/21146","id":355001125,"node_id":"MDU6SXNzdWUzNTUwMDExMjU=","number":21146,"title":"flutter build --build-number=x --build-name=y doesn't update build.gradle anymore","user":{"login":"zoechi","id":405837,"node_id":"MDQ6VXNlcjQwNTgzNw==","avatar_url":"https://avatars0.githubusercontent.com/u/405837?v=4","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[{"id":283479271,"node_id":"MDU6TGFiZWwyODM0NzkyNzE=","url":"https://api.github.com/repos/flutter/flutter/labels/severe:%20regression","name":"severe: regression","color":"e11d21","default":false},{"id":283480100,"node_id":"MDU6TGFiZWwyODM0ODAxMDA=","url":"https://api.github.com/repos/flutter/flutter/labels/tool","name":"tool","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-08-29T05:21:53Z","updated_at":"2018-11-22T08:30:46Z","closed_at":"2018-08-29T05:28:28Z","author_association":"CONTRIBUTOR","body":"When I run\r\n```\r\n flutter build apk --release -t lib/main_origin.dart --build-number 19 --build-name 0.9.3\r\n```\r\n`versionCode` and `versionName` in `android/app/build.gradle` should be updated with these values.\r\nThe last time I used this and it updated successfully was a few weeks ago already on `master` or `dev` channel.  \r\nNow these options don't seem to have any effect.\r\n\r\n```\r\n[✓] Flutter (Channel master, v0.7.2-pre.18, on Mac OS X 10.13.6 17G65, locale en-AT)\r\n    • Flutter version 0.7.2-pre.18 at /Users/zoechi/flutter/flutter\r\n    • Framework revision 2b14ac1efc (24 hours ago), 2018-08-27 22:17:22 -0700\r\n    • Engine revision af42b6dc95\r\n    • Dart version 2.1.0-dev.1.0.flutter-ccb16f7282\r\n\r\n[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)\r\n    • Android SDK at /usr/local/opt/android-sdk\r\n    • Android NDK at /usr/local/opt/android-sdk/ndk-bundle\r\n    • Platform android-28, build-tools 28.0.1\r\n    • ANDROID_HOME = /usr/local/opt/android-sdk\r\n    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)\r\n    • All Android licenses accepted.\r\n\r\n[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)\r\n    • Xcode at /Applications/Xcode.app/Contents/Developer\r\n    • Xcode 9.4.1, Build version 9F2000\r\n    • ios-deploy 1.9.2\r\n    • CocoaPods version 1.5.3\r\n\r\n[✓] Android Studio (version 3.1)\r\n    • Android Studio at /Applications/Android Studio.app/Contents\r\n    • Flutter plugin version 23.1.2\r\n    • Dart plugin version 173.4700\r\n    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)\r\n\r\n[✓] IntelliJ IDEA Ultimate Edition (version 2018.2)\r\n    • IntelliJ at /Applications/IntelliJ IDEA.app\r\n    • Flutter plugin version 26.0.3\r\n    • Dart plugin version 182.3569.4\r\n\r\n[✓] Connected devices (1 available)\r\n    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)\r\n\r\n• No issues found!\r\n```"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/440951225","html_url":"https://github.com/flutter/flutter/issues/21146#issuecomment-440951225","issue_url":"https://api.github.com/repos/flutter/flutter/issues/21146","id":440951225,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDk1MTIyNQ==","user":{"login":"HerrNiklasRaab","id":28401593,"node_id":"MDQ6VXNlcjI4NDAxNTkz","avatar_url":"https://avatars1.githubusercontent.com/u/28401593?v=4","gravatar_id":"","url":"https://api.github.com/users/HerrNiklasRaab","html_url":"https://github.com/HerrNiklasRaab","followers_url":"https://api.github.com/users/HerrNiklasRaab/followers","following_url":"https://api.github.com/users/HerrNiklasRaab/following{/other_user}","gists_url":"https://api.github.com/users/HerrNiklasRaab/gists{/gist_id}","starred_url":"https://api.github.com/users/HerrNiklasRaab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HerrNiklasRaab/subscriptions","organizations_url":"https://api.github.com/users/HerrNiklasRaab/orgs","repos_url":"https://api.github.com/users/HerrNiklasRaab/repos","events_url":"https://api.github.com/users/HerrNiklasRaab/events{/privacy}","received_events_url":"https://api.github.com/users/HerrNiklasRaab/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T08:30:46Z","updated_at":"2018-11-22T08:30:46Z","author_association":"NONE","body":"What i did, what worked is. Remove the version number from the pubspec.yml. Then the commands above are working. In Ci i use this script to bump the version:\r\n\r\n```\r\nmajor=$(<ci/majorversion.txt)\r\nminor=$(<ci/minorversion.txt)\r\npatch=$(<ci/patchversion.txt)\r\nversion=$(<ci/versioncode.txt)\r\necho \"$major\"\r\necho \"$minor\"\r\necho \"$patch\"\r\necho \"$version\"\r\npatch=$((patch + 1))\r\nversion=$((version + 1))\r\necho \"$patch\"\r\necho \"$version\"\r\necho $patch > ci/patchversion.txt\r\necho $version > ci/versioncode.txt\r\necho $(<ci/patchversion.txt)\r\necho $(<ci/versioncode.txt)```"}}
{"actor":{"display_login":"HerrNiklasRaab"}}