mirror of
https://github.com/SimpleMobileTools/Simple-Thank-You.git
synced 2025-01-08 14:42:09 +01:00
updating gradle, kotlin, commons, target sdk to 29
This commit is contained in:
parent
dc1cee3f8d
commit
16702dc31d
@ -9,13 +9,13 @@ if (keystorePropertiesFile.exists()) {
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion "28.0.3"
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion "29.0.2"
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.simplemobiletools.thankyou"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 28
|
||||
targetSdkVersion 29
|
||||
versionCode 14
|
||||
versionName "5.0.2"
|
||||
setProperty("archivesBaseName", "thank-you")
|
||||
@ -56,5 +56,5 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:5.17.17'
|
||||
implementation 'com.simplemobiletools:commons:5.21.14'
|
||||
}
|
||||
|
@ -8,18 +8,18 @@ import com.simplemobiletools.thankyou.dbhelpers.MyContentProviderDbHelper
|
||||
class MyContentProvider : ContentProvider() {
|
||||
lateinit var dbHelper: MyContentProviderDbHelper
|
||||
|
||||
override fun insert(uri: Uri, contentValues: ContentValues) = null
|
||||
override fun insert(uri: Uri, contentValues: ContentValues?) = null
|
||||
|
||||
override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?) = dbHelper.getSharedTheme()
|
||||
|
||||
override fun onCreate(): Boolean {
|
||||
dbHelper = MyContentProviderDbHelper.newInstance(context)
|
||||
dbHelper = MyContentProviderDbHelper.newInstance(context!!)
|
||||
return true
|
||||
}
|
||||
|
||||
override fun update(uri: Uri, contentValues: ContentValues, selection: String?, selectionArgs: Array<out String>?) = dbHelper.updateTheme(contentValues)
|
||||
override fun update(uri: Uri, contentValues: ContentValues?, selection: String?, selectionArgs: Array<out String>?): Int = dbHelper.updateTheme(contentValues!!)
|
||||
|
||||
override fun delete(uri: Uri, selection: String, selectionArgs: Array<out String>) = 0
|
||||
override fun delete(uri: Uri, selection: String?, selectionArgs: Array<out String>?): Int = 0
|
||||
|
||||
override fun getType(uri: Uri) = ""
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.3.50'
|
||||
ext.kotlin_version = '1.3.61'
|
||||
|
||||
repositories {
|
||||
google()
|
||||
@ -9,7 +9,7 @@ buildscript {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.5.2'
|
||||
classpath 'com.android.tools.build:gradle:3.5.3'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
|
Loading…
Reference in New Issue
Block a user