updating gradle, kotlin, commons and target SDK to 30

This commit is contained in:
tibbi
2020-08-23 23:32:05 +02:00
parent ac5499c213
commit 6fc3c23ef7
4 changed files with 10 additions and 9 deletions

View File

@@ -9,13 +9,12 @@ if (keystorePropertiesFile.exists()) {
} }
android { android {
compileSdkVersion 29 compileSdkVersion 30
buildToolsVersion "29.0.3"
defaultConfig { defaultConfig {
applicationId "com.simplemobiletools.voicerecorder" applicationId "com.simplemobiletools.voicerecorder"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 30
versionCode 6 versionCode 6
versionName "5.1.3" versionName "5.1.3"
setProperty("archivesBaseName", "voice-recorder") setProperty("archivesBaseName", "voice-recorder")
@@ -57,7 +56,9 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:5.28.15' implementation 'com.simplemobiletools:commons:5.30.1'
implementation 'org.greenrobot:eventbus:3.2.0' implementation 'org.greenrobot:eventbus:3.2.0'
implementation 'com.github.Armen101:AudioRecordView:1.0.2' implementation 'com.github.Armen101:AudioRecordView:1.0.2'
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
} }

View File

@@ -227,7 +227,7 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
return try { return try {
val retriever = MediaMetadataRetriever() val retriever = MediaMetadataRetriever()
retriever.setDataSource(context, getAudioFileContentUri(id)) retriever.setDataSource(context, getAudioFileContentUri(id))
val time = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION) val time = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION)!!
Math.round(time.toLong() / 1000.toDouble()) Math.round(time.toLong() / 1000.toDouble())
} catch (e: Exception) { } catch (e: Exception) {
0L 0L

View File

@@ -1,14 +1,14 @@
// 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.72' ext.kotlin_version = '1.4.0'
repositories { repositories {
google() google()
jcenter() jcenter()
} }
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:3.6.3' classpath 'com.android.tools.build:gradle:4.0.1'
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

View File

@@ -1,6 +1,6 @@
#Sat Mar 28 17:10:51 CET 2020 #Sat Aug 22 16:37:15 CEST 2020
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip