gradle: bump to 1.1
This commit is contained in:
parent
eecb704a7f
commit
7f43a5c5d2
|
@ -9,8 +9,8 @@ android {
|
||||||
applicationId "io.lowrespalmtree.harvestdawn"
|
applicationId "io.lowrespalmtree.harvestdawn"
|
||||||
minSdkVersion 24
|
minSdkVersion 24
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 1
|
versionCode 2
|
||||||
versionName "1.0"
|
versionName "1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
@ -36,8 +36,8 @@ dependencies {
|
||||||
implementation 'androidx.appcompat:appcompat:1.2.0'
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
||||||
implementation 'com.google.android.material:material:1.3.0'
|
implementation 'com.google.android.material:material:1.3.0'
|
||||||
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
|
||||||
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.3'
|
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.4'
|
||||||
implementation 'androidx.navigation:navigation-ui-ktx:2.3.3'
|
implementation 'androidx.navigation:navigation-ui-ktx:2.3.4'
|
||||||
|
|
||||||
implementation 'com.arthenica:mobile-ffmpeg-min-gpl:4.3.2'
|
implementation 'com.arthenica:mobile-ffmpeg-min-gpl:4.3.2'
|
||||||
}
|
}
|
|
@ -43,7 +43,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
|
|
||||||
ensureWritePermission()
|
ensureWritePermission()
|
||||||
|
|
||||||
findViewById<FloatingActionButton>(R.id.fab).setOnClickListener { _ ->
|
findViewById<FloatingActionButton>(R.id.fab).setOnClickListener {
|
||||||
if (hasWritePermission) {
|
if (hasWritePermission) {
|
||||||
openCamera()
|
openCamera()
|
||||||
} else {
|
} else {
|
||||||
|
@ -294,8 +294,8 @@ class MainActivity : AppCompatActivity() {
|
||||||
return false
|
return false
|
||||||
val currentFile = File(currentVideoPath)
|
val currentFile = File(currentVideoPath)
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||||
val store = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY);
|
val store = MediaStore.Video.Media.getContentUri(MediaStore.VOLUME_EXTERNAL_PRIMARY)
|
||||||
val videoDetails = ContentValues();
|
val videoDetails = ContentValues()
|
||||||
videoDetails.put(MediaStore.Video.Media.IS_PENDING, 1)
|
videoDetails.put(MediaStore.Video.Media.IS_PENDING, 1)
|
||||||
val uri = contentResolver.insert(store, videoDetails)
|
val uri = contentResolver.insert(store, videoDetails)
|
||||||
?: return false .also { toast("Could not put video to media store.") }
|
?: return false .also { toast("Could not put video to media store.") }
|
||||||
|
@ -309,7 +309,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
videoDetails.clear()
|
videoDetails.clear()
|
||||||
videoDetails.put(MediaStore.Video.Media.IS_PENDING, 0)
|
videoDetails.put(MediaStore.Video.Media.IS_PENDING, 0)
|
||||||
contentResolver.update(uri, videoDetails, null, null)
|
contentResolver.update(uri, videoDetails, null, null)
|
||||||
currentVideoUri = uri;
|
currentVideoUri = uri
|
||||||
toast("Video saved to media store!")
|
toast("Video saved to media store!")
|
||||||
} else {
|
} else {
|
||||||
val externalDir = File(
|
val externalDir = File(
|
||||||
|
|
Reference in a new issue