Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class AppDatabase : RoomDatabase() {

companion object {
val DB_NAME = "readit.db"
val IS_DB_DEBUG_ACTIVE = if (!BuildConfig.DEBUG) BuildConfig.DEBUG else false
val IS_DB_DEBUG_ACTIVE = BuildConfig.DEBUG
}

abstract fun linkDao(): LinkDao
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ data class Link(@PrimaryKey(autoGenerate = true)
) {

companion object {
val IS_ALL_LINKS_DEBUG_ACTIVE = if (!BuildConfig.DEBUG) BuildConfig.DEBUG else false
val IS_ALL_LINKS_DEBUG_ACTIVE = BuildConfig.DEBUG
const val EMPTY_LINK = ""
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ object Utils {

fun atLeast(version: Int): Boolean = android.os.Build.VERSION.SDK_INT >= version

fun isAdsDebugActive(): Boolean = if (!BuildConfig.DEBUG) BuildConfig.DEBUG else true
fun isAdsDebugActive(): Boolean = BuildConfig.DEBUG

}

Expand Down