Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Tukajo authored Sep 1, 2024
2 parents 992be5d + 3d7f2f9 commit 7a7e90f
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 37 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
*.iml
.gradle
/.kotlin
/local.properties
/.idea
.DS_Store
build
/captures
.externalNativeBuild
.cxx
.cxx
23 changes: 10 additions & 13 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.android.app)
Expand All @@ -18,6 +18,13 @@ detekt {
autoCorrect = true
}

kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_11
optIn.add("kotlin.RequiresOptIn")
}
}

android {
namespace = "org.jellyfin.mobile"
compileSdk = 34
Expand Down Expand Up @@ -84,10 +91,6 @@ android {
viewBinding = true
compose = true
}
kotlinOptions {
@Suppress("SuspiciousCollectionReassignment")
freeCompilerArgs += listOf("-Xopt-in=kotlin.RequiresOptIn")
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
Expand Down Expand Up @@ -177,12 +180,6 @@ dependencies {
}

tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}

withType<Detekt> {
jvmTarget = JavaVersion.VERSION_11.toString()

Expand All @@ -204,9 +201,9 @@ tasks {
}

register("versionTxt") {
val path = buildDir.resolve("version.txt")

doLast {
val path = layout.buildDirectory.file("version.txt").get().asFile

val versionString = "v${android.defaultConfig.versionName}=${android.defaultConfig.versionCode}"
println("Writing [$versionString] to $path")
path.writeText("$versionString\n")
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/assets/native/nativeshell.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,6 @@ function getDeviceProfile(profileBuilder, item) {
return i.Type === "Audio";
});

profile.SubtitleProfiles.push(
{
Format: "ssa",
Method: "External"
},
{
Format: "ass",
Method: "External"
}
);

profile.CodecProfiles.push({
Type: "Video",
Container: "avi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class DeviceProfileBuilder(
*/
private val AVAILABLE_AUDIO_CODECS = arrayOf(
// mp4
arrayOf("mp1", "mp2", "mp3", "aac", "alac", "ac3"),
arrayOf("mp1", "mp2", "mp3", "aac", "alac", "ac3", "opus"),
// fmp4
arrayOf("mp3", "aac", "ac3", "eac3"),
// webm
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/values-es-rMX/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<string name="mobile_data_and_roaming">Datos móviles e itinerancia</string>
<string name="mobile_data">Datos móviles</string>
<string name="wifi_only">Solo WiFi</string>
<string name="network_message">¿Quieres permitir que la descarga se realice a través de redes de datos móviles o de itinerancia? Podrían generarse costos por parte del proveedor.</string>
<string name="network_message">¿Quieres permitir que la descarga se realice a través de redes de datos móviles o de itinerancia? Podrían generarse costos por parte del proveedor. Puedes cambiar esta opción después en la configuración.</string>
<string name="network_title">Tipos de red permitidos</string>
<string name="battery_optimizations_message">Por favor, desactiva la optimización de la batería para la reproducción de medios mientras la pantalla está apagada.</string>
<string name="connect_button_text">Conectar</string>
Expand Down Expand Up @@ -109,4 +109,7 @@
<string name="bluetooth_permission_message">Para detectar la desconexión de audífonos y bocinas, la aplicación requiere acceso al Bluetooth. En Android, este permiso es descrito como acceso a dispositivos cercanos, y advierte que los dispositivos Bluetooth pueden ser usados para inferir la ubicación actual. Sin embargo, Jellifyn nunca usará el permiso para detectar su ubicación.</string>
<string name="bluetooth_permission_continue">Continuar</string>
<string name="bluetooth_permission_granted">El permiso Bluetooth fue concedido</string>
<string name="wifi_only_summary">Los medios se descargarán solamente a través de WiFi.</string>
<string name="mobile_data_summary">Los medios se descargarán a través de WiFi y redes móviles.</string>
<string name="mobile_data_and_roaming_summary">Los medios se descargarán a través de redes WiFi, móviles y de itineracia.</string>
</resources>
6 changes: 1 addition & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ allprojects {
}
}

tasks.wrapper {
distributionType = Wrapper.DistributionType.ALL
}

tasks.create<Delete>("clean") {
delete(rootProject.buildDir)
delete(rootProject.layout.buildDirectory)
}
7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[versions]
# Plugins
android-plugin = "8.5.2"
kotlin = "2.0.0"
kotlin-ksp = "2.0.0-1.0.22"

android-plugin = "8.5.0"
kotlin = "2.0.20"
kotlin-ksp = "2.0.20-1.0.24"
detekt = "1.22.0"
android-junit5 = "1.10.0.0"

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=f8b4f4772d302c8ff580bc40d0f56e715de69b163546944f787c87abf209c961
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
distributionSha256Sum=a4b4158601f8636cdeeab09bd76afb640030bb5b144aafe261a5e8af027dc612
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit 7a7e90f

Please sign in to comment.