updating gradle, kotlin, commons

This commit is contained in:
tibbi 2019-03-08 21:03:19 +01:00
parent ac57d1d7df
commit 853ee3143c
3 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.6.17'
implementation 'com.simplemobiletools:commons:5.10.6'
kapt 'androidx.room:room-compiler:2.0.0'
implementation 'androidx.room:room-runtime:2.0.0'

View File

@ -537,7 +537,7 @@ class MainActivity : SimpleActivity() {
private fun exportNoteValueToFile(path: String, content: String, showSuccessToasts: Boolean, callback: ((success: Boolean) -> Unit)? = null) {
try {
if (getIsPathDirectory(path)) {
if (File(path).isDirectory) {
toast(R.string.name_taken)
return
}
@ -545,7 +545,7 @@ class MainActivity : SimpleActivity() {
if (needsStupidWritePermissions(path)) {
handleSAFDialog(path) {
var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
if (!getDoesFilePathExist(path)) {
if (!File(path).exists()) {
document = document.createFile("", path.getFilenameFromPath())!!
}

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.20'
ext.kotlin_version = '1.3.21'
repositories {
google()
@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.android.tools.build:gradle:3.3.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong