From 3198e19bc682b4d43e63d4d32e7cf910831c60b0 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 22 Nov 2019 17:54:08 +0100 Subject: [PATCH] updating commons and gradle --- app/build.gradle | 2 +- .../com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt | 2 +- build.gradle | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 26d9d195..de96b850 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -51,7 +51,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.18.14' + implementation 'com.simplemobiletools:commons:5.19.15' implementation 'joda-time:joda-time:2.10.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3' implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt index d973db4e..50ee8763 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/VcfExporter.kt @@ -30,7 +30,7 @@ class VcfExporter { private var contactsFailed = 0 fun exportContacts(activity: BaseSimpleActivity, file: File, contacts: ArrayList, showExportingToast: Boolean, callback: (result: ExportResult) -> Unit) { - activity.getFileOutputStream(file.toFileDirItem(), true) { + activity.getFileOutputStream(file.toFileDirItem(activity), true) { try { if (it == null) { callback(EXPORT_FAIL) diff --git a/build.gradle b/build.gradle index 37c3ac06..4b51eb47 100644 --- a/build.gradle +++ b/build.gradle @@ -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.50' + ext.kotlin_version = '1.3.60' repositories { google() @@ -9,7 +9,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:3.5.1' + classpath 'com.android.tools.build:gradle:3.5.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong