updating kotlin, commons, gradle

This commit is contained in:
tibbi
2021-04-15 14:30:01 +02:00
parent db9a6cef24
commit 5f0e4fed5b
3 changed files with 7 additions and 8 deletions

View File

@ -9,13 +9,12 @@ if (keystorePropertiesFile.exists()) {
} }
android { android {
compileSdkVersion 29 compileSdkVersion 30
buildToolsVersion "29.0.3"
defaultConfig { defaultConfig {
applicationId "com.simplemobiletools.draw.pro" applicationId "com.simplemobiletools.draw.pro"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 30
versionCode 59 versionCode 59
versionName "6.3.1" versionName "6.3.1"
setProperty("archivesBaseName", "draw") setProperty("archivesBaseName", "draw")
@ -57,6 +56,6 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:5.33.35' implementation 'com.github.SimpleMobileTools:Simple-Commons:9e7ab2f67d'
implementation "androidx.print:print:1.0.0" implementation "androidx.print:print:1.0.0"
} }

View File

@ -210,11 +210,11 @@ class MainActivity : SimpleActivity(), CanvasListener {
private fun checkIntents() { private fun checkIntents() {
if (intent?.action == Intent.ACTION_SEND && intent.type?.startsWith("image/") == true) { if (intent?.action == Intent.ACTION_SEND && intent.type?.startsWith("image/") == true) {
val uri = intent.getParcelableExtra<Uri>(Intent.EXTRA_STREAM) val uri = intent.getParcelableExtra<Uri>(Intent.EXTRA_STREAM)
tryOpenUri(uri, intent) tryOpenUri(uri!!, intent)
} }
if (intent?.action == Intent.ACTION_SEND_MULTIPLE && intent.type?.startsWith("image/") == true) { if (intent?.action == Intent.ACTION_SEND_MULTIPLE && intent.type?.startsWith("image/") == true) {
val imageUris = intent.getParcelableArrayListExtra<Uri>(Intent.EXTRA_STREAM) val imageUris = intent.getParcelableArrayListExtra<Uri>(Intent.EXTRA_STREAM)!!
imageUris.any { tryOpenUri(it, intent) } imageUris.any { tryOpenUri(it, intent) }
} }

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.30' 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