Skip to content

Commit 853ee31

Browse files
committed
updating gradle, kotlin, commons
1 parent ac57d1d commit 853ee31

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ android {
5151
}
5252

5353
dependencies {
54-
implementation 'com.simplemobiletools:commons:5.6.17'
54+
implementation 'com.simplemobiletools:commons:5.10.6'
5555

5656
kapt 'androidx.room:room-compiler:2.0.0'
5757
implementation 'androidx.room:room-runtime:2.0.0'

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,15 +537,15 @@ class MainActivity : SimpleActivity() {
537537

538538
private fun exportNoteValueToFile(path: String, content: String, showSuccessToasts: Boolean, callback: ((success: Boolean) -> Unit)? = null) {
539539
try {
540-
if (getIsPathDirectory(path)) {
540+
if (File(path).isDirectory) {
541541
toast(R.string.name_taken)
542542
return
543543
}
544544

545545
if (needsStupidWritePermissions(path)) {
546546
handleSAFDialog(path) {
547547
var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
548-
if (!getDoesFilePathExist(path)) {
548+
if (!File(path).exists()) {
549549
document = document.createFile("", path.getFilenameFromPath())!!
550550
}
551551

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.20'
4+
ext.kotlin_version = '1.3.21'
55

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

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.3.0'
12+
classpath 'com.android.tools.build:gradle:3.3.2'
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)