Files
photo-live/apps/mobile/android/app/proguard-rules.pro
T
浅念 222c44c1f7 fix(deploy): disable gzip on /v1/ API paths — Flutter release AOT gzip decompression failure
服务端 200+数据正常、debug/JIT 正常;release/AOT 的 Dart HttpClient 对
Content-Encoding: gzip 解压异常 → JSON 解析失败 → 显示 INTERNAL_ERROR。
nginx /v1/ 路径 gzip off(静态资源 gzip 不受影响);proguard keep 规则
一并保留(dio/flutter_secure_storage/全项目模型)。

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-23 18:36:11 +08:00

19 lines
829 B
Prolog
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WorkManager: R8 反射初始化需要保留构造器(P3 Task 7 后台上传桥接)
-keep class androidx.work.impl.WorkDatabase_Impl { *; }
-keep class androidx.work.** { *; }
-keep class androidx.startup.** { *; }
# OkHttp(原生上传传输):公开 API 保留即可,但 safety net 防混淆异常
-dontwarn okhttp3.**
-dontwarn okio.**
# ── release 网络/存储修复(2026-09-23:release 包 API 全报 INTERNAL_ERROR)──
# Dio interceptor 链经动态代理:R8 裁剪接口/代理导致请求异常
-keep class dio.** { *; }
-keep interface dio.** { *; }
# flutter_secure_storage(release Keystore 行为)
-keep class com.it_nomads.fluttersecurestorage.** { *; }
# JSON 模型(fromJson 保守保留)
-keep class com.photolive.photo_live.** { *; }
-keep class dev.flutter.plugins.** { *; }