chore: Update ci:cd

Signed-off-by: Myzel394 <50424412+Myzel394@users.noreply.github.com>
This commit is contained in:
Myzel394 2024-03-30 23:06:05 +01:00
parent d1fe46804e
commit 7166ba1398
No known key found for this signature in database
GPG Key ID: DEC4AAB876F73185
3 changed files with 14 additions and 20 deletions

View File

@ -7,15 +7,15 @@ jobs:
debug-builds: debug-builds:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1 - uses: gradle/wrapper-validation-action@v1
- name: Set up JDK - name: Set up JDK
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
distribution: "adopt" distribution: "adopt"
java-version: 19 java-version: 21
cache: "gradle" cache: "gradle"
- name: Compile - name: Compile

View File

@ -1,17 +1,11 @@
package app.myzel394.alibi.helpers package app.myzel394.alibi.helpers
import android.content.Context
import android.net.Uri
import android.util.Log import android.util.Log
import androidx.documentfile.provider.DocumentFile
import com.arthenica.ffmpegkit.FFmpegKit import com.arthenica.ffmpegkit.FFmpegKit
import com.arthenica.ffmpegkit.FFmpegKitConfig
import com.arthenica.ffmpegkit.ReturnCode import com.arthenica.ffmpegkit.ReturnCode
import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.CompletableDeferred
import java.io.File import java.io.File
import java.lang.Compiler.command
import java.util.UUID import java.util.UUID
import kotlin.math.log
// Abstract class for concatenating audio and video files // Abstract class for concatenating audio and video files
// The concatenator runs in its own thread to avoid unresponsiveness. // The concatenator runs in its own thread to avoid unresponsiveness.
@ -56,7 +50,7 @@ data class AudioConcatenator(
command command
) { session -> ) { session ->
if (!ReturnCode.isSuccess(session!!.returnCode)) { if (!ReturnCode.isSuccess(session!!.returnCode)) {
Log.d( Log.i(
"Audio Concatenation", "Audio Concatenation",
String.format( String.format(
"Command failed with state %s and rc %s.%s", "Command failed with state %s and rc %s.%s",
@ -100,7 +94,7 @@ class MediaConverter {
command, command,
{ session -> { session ->
if (!ReturnCode.isSuccess(session!!.returnCode)) { if (!ReturnCode.isSuccess(session!!.returnCode)) {
Log.d( Log.i(
"Audio Concatenation", "Audio Concatenation",
String.format( String.format(
"Command failed with state %s and rc %s.%s", "Command failed with state %s and rc %s.%s",
@ -162,7 +156,7 @@ class MediaConverter {
if (ReturnCode.isSuccess(session!!.returnCode)) { if (ReturnCode.isSuccess(session!!.returnCode)) {
completer.complete(Unit) completer.complete(Unit)
} else { } else {
Log.d( Log.i(
"Video Concatenation", "Video Concatenation",
String.format( String.format(
"Command failed with state %s and rc %s.%s", "Command failed with state %s and rc %s.%s",

View File

@ -244,25 +244,25 @@ fun _PrimitiveControls(videoRecorder: VideoRecorderModel) {
onSaveAndStop = { onSaveAndStop = {
println("User initiated video recording save and stop") println("User initiated video recording save and stop")
scope.launch { scope.launch {
Log.d("Alibi", "====== Asking to stop recording...") Log.i("Alibi", "====== Asking to stop recording...")
videoRecorder.stopRecording(context) 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 { dataStore.updateData {
it.saveLastRecording(videoRecorder as RecorderModel) 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() 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 { runCatching {
videoRecorder.destroyService(context) videoRecorder.destroyService(context)
} }
Log.d("Alibi", "===== Destroying service... done") Log.i("Alibi", "===== Destroying service... done")
} }
}, },
onSaveCurrent = { onSaveCurrent = {