Proguard 設定のメモ

React Native で 0.73.8 へアップデートして Android のビルドしたとき Proguard のエラーが発生した。
React Native 0.73.8 のアップデートで Android Gradle Plugin(AGP)が 7 系から 8 系(8.3)になり ProGuard の警告がエラーになった。

> Task :app:minifyProdReleaseWithR8
WARNING: R8: Class com.facebook.imagepipeline.image.CloseableAnimatedImage extends com.facebook.imagepipeline.image.CloseableImage which is an interface
ERROR: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in /Users/ユーザー名/workspace/プロジェクト名/android/app/build/outputs/mapping/prodRelease/missing_rules.txt.
ERROR: R8: Missing class com.facebook.common.internal.VisibleForTesting (referenced from: com.facebook.common.references.CloseableReference com.facebook.fresco.animation.bitmap.cache.FrescoFrameCache.convertToBitmapReferenceAndClose(com.facebook.common.references.CloseableReference) and 2 other contexts)

Proguard設定のメモ のサイトを参考に Proguard を見直して修正したけど。結局使ってるライブラリが依存してるライブラリのバージョンが原因だった。