mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-01-24 03:10:51 +01:00
updating gradle, kotlin, commons
This commit is contained in:
parent
ac57d1d7df
commit
853ee3143c
@ -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'
|
||||
|
@ -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())!!
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user