Raised deprecation level on old database

This commit is contained in:
Viktor De Pasquale 2019-05-12 14:37:24 +02:00
parent 2624706c69
commit d4561507b8
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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";