mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 06:52:03 +02:00
updating gradle, kotlin, commons
This commit is contained in:
parent
ac57d1d7df
commit
853ee3143c
@ -51,7 +51,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.6.17'
|
implementation 'com.simplemobiletools:commons:5.10.6'
|
||||||
|
|
||||||
kapt 'androidx.room:room-compiler:2.0.0'
|
kapt 'androidx.room:room-compiler:2.0.0'
|
||||||
implementation 'androidx.room:room-runtime: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) {
|
private fun exportNoteValueToFile(path: String, content: String, showSuccessToasts: Boolean, callback: ((success: Boolean) -> Unit)? = null) {
|
||||||
try {
|
try {
|
||||||
if (getIsPathDirectory(path)) {
|
if (File(path).isDirectory) {
|
||||||
toast(R.string.name_taken)
|
toast(R.string.name_taken)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -545,7 +545,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
if (needsStupidWritePermissions(path)) {
|
if (needsStupidWritePermissions(path)) {
|
||||||
handleSAFDialog(path) {
|
handleSAFDialog(path) {
|
||||||
var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
|
var document = getDocumentFile(File(path).parent) ?: return@handleSAFDialog
|
||||||
if (!getDoesFilePathExist(path)) {
|
if (!File(path).exists()) {
|
||||||
document = document.createFile("", path.getFilenameFromPath())!!
|
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.
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
ext.kotlin_version = '1.3.20'
|
ext.kotlin_version = '1.3.21'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
@ -9,7 +9,7 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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"
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user