mirror of
https://github.com/SimpleMobileTools/Simple-Thank-You.git
synced 2025-03-03 18:47:43 +01:00
update commons to 3.19.22
This commit is contained in:
parent
4daed3d09e
commit
a15bc5c7a3
@ -41,7 +41,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:3.18.9'
|
implementation 'com.simplemobiletools:commons:3.19.22'
|
||||||
}
|
}
|
||||||
|
|
||||||
Properties props = new Properties()
|
Properties props = new Properties()
|
||||||
|
@ -18,10 +18,10 @@ class MyContentProviderDbHelper private constructor(private val context: Context
|
|||||||
private val mDb = writableDatabase
|
private val mDb = writableDatabase
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private val DB_NAME = "Commons.db"
|
private const val DB_NAME = "Commons.db"
|
||||||
private val DB_VERSION = 1
|
private const val DB_VERSION = 1
|
||||||
private val TABLE_NAME = "commons_colors"
|
private const val TABLE_NAME = "commons_colors"
|
||||||
private val THEME_ID = 1 // for now we are storing just 1 theme
|
private const val THEME_ID = 1 // for now we are storing just 1 theme
|
||||||
|
|
||||||
fun newInstance(context: Context) = MyContentProviderDbHelper(context)
|
fun newInstance(context: Context) = MyContentProviderDbHelper(context)
|
||||||
}
|
}
|
||||||
@ -36,7 +36,7 @@ class MyContentProviderDbHelper private constructor(private val context: Context
|
|||||||
private fun insertDefaultTheme() {
|
private fun insertDefaultTheme() {
|
||||||
val resources = context.resources
|
val resources = context.resources
|
||||||
val theme = SharedTheme(resources.getColor(R.color.theme_dark_text_color), resources.getColor(R.color.theme_dark_background_color),
|
val theme = SharedTheme(resources.getColor(R.color.theme_dark_text_color), resources.getColor(R.color.theme_dark_background_color),
|
||||||
resources.getColor(R.color.color_primary))
|
resources.getColor(R.color.color_primary), resources.getColor(R.color.color_primary))
|
||||||
insertTheme(theme, mDb)
|
insertTheme(theme, mDb)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.2.31'
|
ext.kotlin_version = '1.2.40'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
jcenter()
|
jcenter()
|
||||||
@ -9,7 +9,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:3.1.0'
|
classpath 'com.android.tools.build:gradle:3.1.2'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
Loading…
x
Reference in New Issue
Block a user