Skip to content

Commit 16702dc

Browse files
committed
updating gradle, kotlin, commons, target sdk to 29
1 parent dc1cee3 commit 16702dc

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ if (keystorePropertiesFile.exists()) {
99
}
1010

1111
android {
12-
compileSdkVersion 28
13-
buildToolsVersion "28.0.3"
12+
compileSdkVersion 29
13+
buildToolsVersion "29.0.2"
1414

1515
defaultConfig {
1616
applicationId "com.simplemobiletools.thankyou"
1717
minSdkVersion 21
18-
targetSdkVersion 28
18+
targetSdkVersion 29
1919
versionCode 14
2020
versionName "5.0.2"
2121
setProperty("archivesBaseName", "thank-you")
@@ -56,5 +56,5 @@ android {
5656
}
5757

5858
dependencies {
59-
implementation 'com.simplemobiletools:commons:5.17.17'
59+
implementation 'com.simplemobiletools:commons:5.21.14'
6060
}

app/src/main/kotlin/com/simplemobiletools/thankyou/contentproviders/MyContentProvider.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ import com.simplemobiletools.thankyou.dbhelpers.MyContentProviderDbHelper
88
class MyContentProvider : ContentProvider() {
99
lateinit var dbHelper: MyContentProviderDbHelper
1010

11-
override fun insert(uri: Uri, contentValues: ContentValues) = null
11+
override fun insert(uri: Uri, contentValues: ContentValues?) = null
1212

1313
override fun query(uri: Uri, projection: Array<out String>?, selection: String?, selectionArgs: Array<out String>?, sortOrder: String?) = dbHelper.getSharedTheme()
1414

1515
override fun onCreate(): Boolean {
16-
dbHelper = MyContentProviderDbHelper.newInstance(context)
16+
dbHelper = MyContentProviderDbHelper.newInstance(context!!)
1717
return true
1818
}
1919

20-
override fun update(uri: Uri, contentValues: ContentValues, selection: String?, selectionArgs: Array<out String>?) = dbHelper.updateTheme(contentValues)
20+
override fun update(uri: Uri, contentValues: ContentValues?, selection: String?, selectionArgs: Array<out String>?): Int = dbHelper.updateTheme(contentValues!!)
2121

22-
override fun delete(uri: Uri, selection: String, selectionArgs: Array<out String>) = 0
22+
override fun delete(uri: Uri, selection: String?, selectionArgs: Array<out String>?): Int = 0
2323

2424
override fun getType(uri: Uri) = ""
2525
}

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.3.50'
4+
ext.kotlin_version = '1.3.61'
55

66
repositories {
77
google()
88
jcenter()
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.2'
12+
classpath 'com.android.tools.build:gradle:3.5.3'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414

1515
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)