# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

# 保持数据库类及其成员不被混淆
-keep class com.sound.prankparty.Room.AppDatabase { *; }
-keepclassmembers class com.sound.prankparty.Room.AppDatabase { *; }

# 保持 SaveSounds 和 FavoriteSounds 实体类及其成员不被混淆
-keep class com.sound.prankparty.Room.SaveSounds { *; }
-keep class com.sound.prankparty.Room.FavoriteSounds { *; }

# 保持 SaveSoundsDao 和 FavoriteSoundsDao 接口及其方法不被混淆
-keep interface com.sound.prankparty.Room.SaveSoundsDao { *; }
-keep interface com.sound.prankparty.Room.FavoriteSoundsDao { *; }

# 保持与 Room 相关的 @Query 注解的方法
-keepclassmembers class * {
    @androidx.room.Query <methods>;
}

# 额外的保留规则，确保任何使用 Room 的地方都能正常工作
-keep class androidx.room.** { *; }
