<p dir="auto">We should enable ProGuard for Android builds in release mode. It removes unnecessary stuff from the APK and slims down the APK size.</p>
<p dir="auto">More information: <a href="https://developer.android.com/studio/build/shrink-code.html" rel="nofollow">https://developer.android.com/studio/build/shrink-code.html</a></p>
<p dir="auto">Currently, enabling ProGuard on the Flutter Gallery saves about 24KB. That's not a lot, but that number could grow. For example, with ProGuard enabled, we could start depend on the Android Support Libraries in the engine without bloating our APKs as ProGuard will strip out all unused code. For the accessibility work, I'd like to depend on the Android Support Libraries because they offer much needed convenience around the raw Android APIs and also easily ensure backwards compatibility to older API versions.</p>
<p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jakobr-google/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jakobr-google">@jakobr-google</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mravn-google/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mravn-google">@mravn-google</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tvolkert/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tvolkert">@tvolkert</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Hixie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Hixie">@Hixie</a></p>
<p dir="auto">Environment: Linux (ubuntu 18.04 LTS)</p>
<p dir="auto">The <code class="notranslate">flutter</code> command tries to create a <code class="notranslate">~/.flutter</code> directory automatically, and it aborts if that fails.<br>
Following the instructions <a href="https://flutter.io/setup-linux/" rel="nofollow">here</a>, I tried to untar the Flutter SDK into my desired <code class="notranslate">~/.flutter</code>, and all the <code class="notranslate">flutter</code> commands did not work.</p>
<p dir="auto">I think it should be stated the you should not have that directory.</p>