{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/21009","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/21009/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/21009/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/21009/events","html_url":"https://github.com/flutter/flutter/issues/21009","id":353951634,"node_id":"MDU6SXNzdWUzNTM5NTE2MzQ=","number":21009,"title":"Flutter Gradle should automatically add MultiDex","user":{"login":"slightfoot","id":906564,"node_id":"MDQ6VXNlcjkwNjU2NA==","avatar_url":"https://avatars0.githubusercontent.com/u/906564?v=4","gravatar_id":"","url":"https://api.github.com/users/slightfoot","html_url":"https://github.com/slightfoot","followers_url":"https://api.github.com/users/slightfoot/followers","following_url":"https://api.github.com/users/slightfoot/following{/other_user}","gists_url":"https://api.github.com/users/slightfoot/gists{/gist_id}","starred_url":"https://api.github.com/users/slightfoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slightfoot/subscriptions","organizations_url":"https://api.github.com/users/slightfoot/orgs","repos_url":"https://api.github.com/users/slightfoot/repos","events_url":"https://api.github.com/users/slightfoot/events{/privacy}","received_events_url":"https://api.github.com/users/slightfoot/received_events","type":"User","site_admin":false},"labels":[{"id":877744492,"node_id":"MDU6TGFiZWw4Nzc3NDQ0OTI=","url":"https://api.github.com/repos/flutter/flutter/labels/a:%20existing-apps","name":"a: existing-apps","color":"38d8c8","default":false},{"id":547274631,"node_id":"MDU6TGFiZWw1NDcyNzQ2MzE=","url":"https://api.github.com/repos/flutter/flutter/labels/t:%20gradle","name":"t: gradle","color":"5319e7","default":false},{"id":283480100,"node_id":"MDU6TGFiZWwyODM0ODAxMDA=","url":"https://api.github.com/repos/flutter/flutter/labels/tool","name":"tool","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"gspencergoog","id":8867023,"node_id":"MDQ6VXNlcjg4NjcwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8867023?v=4","gravatar_id":"","url":"https://api.github.com/users/gspencergoog","html_url":"https://github.com/gspencergoog","followers_url":"https://api.github.com/users/gspencergoog/followers","following_url":"https://api.github.com/users/gspencergoog/following{/other_user}","gists_url":"https://api.github.com/users/gspencergoog/gists{/gist_id}","starred_url":"https://api.github.com/users/gspencergoog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gspencergoog/subscriptions","organizations_url":"https://api.github.com/users/gspencergoog/orgs","repos_url":"https://api.github.com/users/gspencergoog/repos","events_url":"https://api.github.com/users/gspencergoog/events{/privacy}","received_events_url":"https://api.github.com/users/gspencergoog/received_events","type":"User","site_admin":false},"assignees":[{"login":"gspencergoog","id":8867023,"node_id":"MDQ6VXNlcjg4NjcwMjM=","avatar_url":"https://avatars2.githubusercontent.com/u/8867023?v=4","gravatar_id":"","url":"https://api.github.com/users/gspencergoog","html_url":"https://github.com/gspencergoog","followers_url":"https://api.github.com/users/gspencergoog/followers","following_url":"https://api.github.com/users/gspencergoog/following{/other_user}","gists_url":"https://api.github.com/users/gspencergoog/gists{/gist_id}","starred_url":"https://api.github.com/users/gspencergoog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gspencergoog/subscriptions","organizations_url":"https://api.github.com/users/gspencergoog/orgs","repos_url":"https://api.github.com/users/gspencergoog/repos","events_url":"https://api.github.com/users/gspencergoog/events{/privacy}","received_events_url":"https://api.github.com/users/gspencergoog/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/flutter/flutter/milestones/22","html_url":"https://github.com/flutter/flutter/milestone/22","labels_url":"https://api.github.com/repos/flutter/flutter/milestones/22/labels","id":2270094,"node_id":"MDk6TWlsZXN0b25lMjI3MDA5NA==","number":22,"title":"Goals","description":"P2: These are tasks we think are worth fixing in the coming years. It includes issues we've identified that might block fully shipping broad consumer-facing apps, correctness issues, and bugs relating to polish and quality.\r\n\r\nThe date on this milestone is utterly arbitrary and just intended to sort the milestone appropriately.","creator":{"login":"Hixie","id":551196,"node_id":"MDQ6VXNlcjU1MTE5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/551196?v=4","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"open_issues":1197,"closed_issues":479,"state":"open","created_at":"2017-01-23T00:27:59Z","updated_at":"2018-09-29T22:14:48Z","due_on":"2031-01-01T08:00:00Z","closed_at":null},"comments":13,"created_at":"2018-08-24T22:53:33Z","updated_at":"2018-10-01T03:00:07Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Steps to Reproduce\r\n\r\nBuild app with more than 64K methods.\r\n\r\n## Logs\r\n> The number of method references in a .dex file cannot exceed 64K.\r\n> Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html\r\n\r\n## Recommended Changes\r\n1. Project template or `flutter.gradle` script should set the `multiDexEnabled` property to true, and add the `multiDexKeepFile file('multidex-flutter.txt')` config file. Example: [multidex-flutter.txt](https://github.com/flutter/flutter/files/2320127/multidex-flutter.txt)\r\n    ```txt\r\n    io/flutter/app/FlutterApplication.class\r\n    io/flutter/view/FlutterMain.class\r\n    io/flutter/util/PathUtils.class\r\n    ```\r\n\r\n\r\n2. Project template or `flutter.gradle` script should add the multidex dependency.\r\n    `implementation 'com.android.support:multidex:1.0.3'`\r\n\r\n3. FlutterApplication should have the following addition.\r\n    ```java\r\n    @Override\r\n    protected void attachBaseContext(Context base)\r\n    {\r\n        super.attachBaseContext(base);\r\n        MultiDex.install(this);\r\n    }\r\n    ```\r\n\r\n**Adding the `multiDexKeepFile` is important as the `FlutterApplication` class and its dependencies are required to me in the primary dex file or the Application class may its onCreate lifecycle event.**\r\n\r\n```\r\nFlutter 0.5.7 • channel v0.5.7 • https://github.com/slightfoot/flutter\r\nFramework • revision 66091f9696 (7 weeks ago) • 2018-07-09 12:52:41 -0700\r\nEngine • revision 6fe748490d\r\nTools • Dart 2.0.0-dev.63.0.flutter-4c9689c1d2\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/425777626","html_url":"https://github.com/flutter/flutter/issues/21009#issuecomment-425777626","issue_url":"https://api.github.com/repos/flutter/flutter/issues/21009","id":425777626,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc3NzYyNg==","user":{"login":"raveesh-me","id":15698263,"node_id":"MDQ6VXNlcjE1Njk4MjYz","avatar_url":"https://avatars0.githubusercontent.com/u/15698263?v=4","gravatar_id":"","url":"https://api.github.com/users/raveesh-me","html_url":"https://github.com/raveesh-me","followers_url":"https://api.github.com/users/raveesh-me/followers","following_url":"https://api.github.com/users/raveesh-me/following{/other_user}","gists_url":"https://api.github.com/users/raveesh-me/gists{/gist_id}","starred_url":"https://api.github.com/users/raveesh-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raveesh-me/subscriptions","organizations_url":"https://api.github.com/users/raveesh-me/orgs","repos_url":"https://api.github.com/users/raveesh-me/repos","events_url":"https://api.github.com/users/raveesh-me/events{/privacy}","received_events_url":"https://api.github.com/users/raveesh-me/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T03:00:07Z","updated_at":"2018-10-01T03:00:07Z","author_association":"NONE","body":"> Maybe we should trigger this automatically when we hit the limit? (You're likely to hit the limit with some of our plugins.)\r\n\r\nThis would be amazing..."}}
{"actor":{"display_login":"raveesh-me"}}