diff --git a/app/src/main/java/com/topjohnwu/magisk/App.kt b/app/src/main/java/com/topjohnwu/magisk/App.kt index 712b85a8e..b4b3ef86d 100644 --- a/app/src/main/java/com/topjohnwu/magisk/App.kt +++ b/app/src/main/java/com/topjohnwu/magisk/App.kt @@ -29,9 +29,9 @@ open class App : Application(), Application.ActivityLifecycleCallbacks { lateinit var protectedContext: Context - @Deprecated("Use dependency injection") + @Deprecated("Use dependency injection", level = DeprecationLevel.ERROR) val prefs: SharedPreferences by inject() - @Deprecated("Use dependency injection") + @Deprecated("Use dependency injection", level = DeprecationLevel.ERROR) val DB: MagiskDB by inject() @Volatile diff --git a/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java b/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java index 5ea518388..0426a49f7 100644 --- a/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java +++ b/app/src/main/java/com/topjohnwu/magisk/data/database/MagiskDB.java @@ -20,7 +20,10 @@ import java.util.Date; import java.util.List; import java.util.Map; +import kotlin.DeprecationLevel; + @Deprecated +@kotlin.Deprecated(message = "", level = DeprecationLevel.ERROR) public class MagiskDB { private static final String POLICY_TABLE = "policies";