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
{{ message }}
Repository navigation
[ok_http] Proguard/R8 is removing OkHttp in Android release mode #1950
Test the app again: flutter run --release -d <ANDROID_DEVICE_ID_HERE>
and it works as intended.
Keep all OkHttp classes
+ -keep class okhttp3.** { *; }+ -dontwarn okhttp3.**
Propused fix
Add android/proguard.txt file keep the Okhttp classes that are declared in jnigen.yaml. flutter_plugin_android_lifecycle plugin (from flutter/packages) follows a similar pattern.
This way the consumers of ok_http will not need to modify their Android platform runner files, and only the necessary classes were kept without disabling minification or including all OkHttp classes.
Activity
fix(ok_http): android release mode crash dart-lang#1950
fix(ok_http): android release mode crash dart-lang#1950
fix(ok_http): android release mode crash dart-lang#1950
chore(ok_http): migrate to jni 1.0.0 (#1943)
EchoEllet commentedon Aug 12, 2026
Fixed in #1943