updating gradle, kotlin, commons, target sdk to 29

This commit is contained in:
tibbi 2019-12-31 11:39:10 +01:00
parent dc1cee3f8d
commit 16702dc31d
3 changed files with 10 additions and 10 deletions

View File

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

View File

@ -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) = ""
}

View File

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