You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize the size of the coroutines library in Android projects (#1282)
* Includes additional R8 rules to disable debugging & stack-trace recovery in optimized
Android builds. Additional savings with AGP 4.0.0-alpha06 (r8-2.0.4-dev) are ~16kb
in uncompressed DEX size.
* Tests are modified to verify that the classes that are supposed to be removed are
indeed removed.
* Cleaner build logic without error-prone "return" in the middle
* Report the size of optimized Android Dex as teamcity metric
Copy file name to clipboardExpand all lines: README.md
+2-5
Original file line number
Diff line number
Diff line change
@@ -164,11 +164,8 @@ threads are handled by Android runtime.
164
164
165
165
#### R8 and ProGuard
166
166
167
-
For R8 no actions required, it will take obfuscation rules from the jar.
168
-
169
-
For Proguard you need to add options from [coroutines.pro](kotlinx-coroutines-core/jvm/resources/META-INF/proguard/coroutines.pro) to your rules manually.
170
-
171
-
R8 is a replacement for ProGuard in Android ecosystem, it is enabled by default since Android gradle plugin 3.4.0 (3.3.0-beta also had it enabled).
167
+
R8 and ProGuard rules are bundled into the [`kotlinx-coroutines-android`](ui/kotlinx-coroutines-android) module.
168
+
For more details see ["Optimization" section for Android](ui/kotlinx-coroutines-android/README.md#optimization).
0 commit comments