mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 14:55:26 +02:00
chore: Update ci:cd
Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
parent
d1fe46804e
commit
7166ba1398
6
.github/workflows/build-testing.yaml
vendored
6
.github/workflows/build-testing.yaml
vendored
@ -7,15 +7,15 @@ jobs:
|
||||
debug-builds:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: gradle/wrapper-validation-action@v1
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v3
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: "adopt"
|
||||
java-version: 19
|
||||
java-version: 21
|
||||
cache: "gradle"
|
||||
|
||||
- name: Compile
|
||||
|
@ -1,17 +1,11 @@
|
||||
package app.myzel394.alibi.helpers
|
||||
|
||||
import android.content.Context
|
||||
import android.net.Uri
|
||||
import android.util.Log
|
||||
import androidx.documentfile.provider.DocumentFile
|
||||
import com.arthenica.ffmpegkit.FFmpegKit
|
||||
import com.arthenica.ffmpegkit.FFmpegKitConfig
|
||||
import com.arthenica.ffmpegkit.ReturnCode
|
||||
import kotlinx.coroutines.CompletableDeferred
|
||||
import java.io.File
|
||||
import java.lang.Compiler.command
|
||||
import java.util.UUID
|
||||
import kotlin.math.log
|
||||
|
||||
// Abstract class for concatenating audio and video files
|
||||
// The concatenator runs in its own thread to avoid unresponsiveness.
|
||||
@ -56,7 +50,7 @@ data class AudioConcatenator(
|
||||
command
|
||||
) { session ->
|
||||
if (!ReturnCode.isSuccess(session!!.returnCode)) {
|
||||
Log.d(
|
||||
Log.i(
|
||||
"Audio Concatenation",
|
||||
String.format(
|
||||
"Command failed with state %s and rc %s.%s",
|
||||
@ -100,7 +94,7 @@ class MediaConverter {
|
||||
command,
|
||||
{ session ->
|
||||
if (!ReturnCode.isSuccess(session!!.returnCode)) {
|
||||
Log.d(
|
||||
Log.i(
|
||||
"Audio Concatenation",
|
||||
String.format(
|
||||
"Command failed with state %s and rc %s.%s",
|
||||
@ -162,7 +156,7 @@ class MediaConverter {
|
||||
if (ReturnCode.isSuccess(session!!.returnCode)) {
|
||||
completer.complete(Unit)
|
||||
} else {
|
||||
Log.d(
|
||||
Log.i(
|
||||
"Video Concatenation",
|
||||
String.format(
|
||||
"Command failed with state %s and rc %s.%s",
|
||||
|
@ -244,25 +244,25 @@ fun _PrimitiveControls(videoRecorder: VideoRecorderModel) {
|
||||
onSaveAndStop = {
|
||||
println("User initiated video recording save and stop")
|
||||
scope.launch {
|
||||
Log.d("Alibi", "====== Asking to stop recording...")
|
||||
Log.i("Alibi", "====== Asking to stop recording...")
|
||||
videoRecorder.stopRecording(context)
|
||||
Log.d("Alibi", "====== Asking to stop recording... done")
|
||||
Log.i("Alibi", "====== Asking to stop recording... done")
|
||||
|
||||
Log.d("Alibi", "====== Updating data store...")
|
||||
Log.i("Alibi", "====== Updating data store...")
|
||||
dataStore.updateData {
|
||||
it.saveLastRecording(videoRecorder as RecorderModel)
|
||||
}
|
||||
Log.d("Alibi", "====== Updating data store... done")
|
||||
Log.i("Alibi", "====== Updating data store... done")
|
||||
|
||||
Log.d("Alibi", "===== Asking to save recording...")
|
||||
Log.i("Alibi", "===== Asking to save recording...")
|
||||
videoRecorder.onRecordingSave(false).join()
|
||||
Log.d("Alibi", "===== Asking to save recording... done")
|
||||
Log.i("Alibi", "===== Asking to save recording... done")
|
||||
|
||||
Log.d("Alibi", "===== Destroying service...")
|
||||
Log.i("Alibi", "===== Destroying service...")
|
||||
runCatching {
|
||||
videoRecorder.destroyService(context)
|
||||
}
|
||||
Log.d("Alibi", "===== Destroying service... done")
|
||||
Log.i("Alibi", "===== Destroying service... done")
|
||||
}
|
||||
},
|
||||
onSaveCurrent = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user