gradle: bump to 1.1

This commit is contained in:
dece 2021-03-17 20:33:27 +01:00
parent eecb704a7f
commit 7f43a5c5d2
2 changed files with 8 additions and 8 deletions

View file

@ -9,8 +9,8 @@ android {
applicationId "io.lowrespalmtree.harvestdawn"
minSdkVersion 24
targetSdkVersion 29
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"
}
buildTypes {
@ -36,8 +36,8 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.3'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.3'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.4'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.4'
implementation 'com.arthenica:mobile-ffmpeg-min-gpl:4.3.2'
}

View file

@ -43,7 +43,7 @@ class MainActivity : AppCompatActivity() {
ensureWritePermission()
findViewById<FloatingActionButton>(R.id.fab).setOnClickListener { _ ->
findViewById<FloatingActionButton>(R.id.fab).setOnClickListener {
if (hasWritePermission) {
openCamera()
} else {
@ -294,8 +294,8 @@ class MainActivity : AppCompatActivity() {
return false
val currentFile = File(currentVideoPath)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
val store = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
val videoDetails = ContentValues();
val store = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)
val videoDetails = ContentValues()
videoDetails.put(MediaStore.Video.Media.IS_PENDING, 1)
val uri = contentResolver.insert(store, videoDetails)
?: return false .also { toast("Could not put video to media store.") }
@ -309,7 +309,7 @@ class MainActivity : AppCompatActivity() {
videoDetails.clear()
videoDetails.put(MediaStore.Video.Media.IS_PENDING, 0)
contentResolver.update(uri, videoDetails, null, null)
currentVideoUri = uri;
currentVideoUri = uri
toast("Video saved to media store!")
} else {
val externalDir = File(