This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActivityTracker private constructor(private val context: Application) { | |
private val runningActivities = LinkedHashSet<Activity>() | |
private val exceptActivity = LinkedHashSet<Class<*>>() | |
private val trackOnlyActivities = LinkedHashSet<Class<*>>() | |
private var trackRegisterOnly = false | |
companion object { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AppDataStoreManager private constructor(val context: Application) : AppDataStore { | |
private val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = "settings") | |
companion object { | |
@Volatile | |
private var INSTANCE: AppDataStoreManager? = null | |
OlderNewer