set target SDK to 30, updating kotlin, commons, gradle

This commit is contained in:
tibbi
2021-04-03 21:47:27 +02:00
parent 1f10cf7070
commit 64c67c16ca
3 changed files with 7 additions and 8 deletions

View File

@ -10,13 +10,12 @@ if (keystorePropertiesFile.exists()) {
} }
android { android {
compileSdkVersion 29 compileSdkVersion 30
buildToolsVersion "29.0.3"
defaultConfig { defaultConfig {
applicationId "com.simplemobiletools.contacts.pro" applicationId "com.simplemobiletools.contacts.pro"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 30
versionCode 81 versionCode 81
versionName "6.14.2" versionName "6.14.2"
setProperty("archivesBaseName", "contacts") setProperty("archivesBaseName", "contacts")
@ -57,7 +56,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:5.34.7' implementation 'com.github.SimpleMobileTools:Simple-Commons:11624254b2'
implementation 'joda-time:joda-time:2.10.3' implementation 'joda-time:joda-time:2.10.3'
implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5'
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a' implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'

View File

@ -633,7 +633,7 @@ class ContactsHelper(val context: Context) {
try { try {
val results = context.contentResolver.applyBatch(AUTHORITY, operations) val results = context.contentResolver.applyBatch(AUTHORITY, operations)
val rawId = ContentUris.parseId(results[0].uri) val rawId = ContentUris.parseId(results[0].uri!!)
return Group(rawId, title) return Group(rawId, title)
} catch (e: Exception) { } catch (e: Exception) {
context.showErrorToast(e) context.showErrorToast(e)
@ -1340,7 +1340,7 @@ class ContactsHelper(val context: Context) {
} }
// fullsize photo // fullsize photo
val rawId = ContentUris.parseId(results[0].uri) val rawId = ContentUris.parseId(results[0].uri!!)
if (contact.photoUri.isNotEmpty() && fullSizePhotoData != null) { if (contact.photoUri.isNotEmpty() && fullSizePhotoData != null) {
addFullSizePhoto(rawId, fullSizePhotoData) addFullSizePhoto(rawId, fullSizePhotoData)
} }

View File

@ -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.4.31' ext.kotlin_version = '1.4.32'
repositories { repositories {
google() google()
@ -9,7 +9,7 @@ buildscript {
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:4.1.2' classpath 'com.android.tools.build:gradle:4.1.3'
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