diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 6b29a419..938ceeb1 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -16,8 +16,8 @@ android { applicationId = "dev.jdtech.jellyfin" minSdk = 24 targetSdk = 31 - versionCode = 4 - versionName = "0.2.0" + versionCode = 5 + versionName = "0.2.1" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } @@ -26,15 +26,15 @@ android { getByName("debug") { applicationIdSuffix = ".debug" } - create("staging") { - initWith(getByName("release")) - applicationIdSuffix = ".staging" - } getByName("release") { isMinifyEnabled = true isShrinkResources = true proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") } + create("staging") { + initWith(getByName("release")) + applicationIdSuffix = ".staging" + } } compileOptions { diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 36d19cd8..97fdeba0 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -20,4 +20,9 @@ # hide the original source file name. #-renamesourcefileattribute SourceFile --keepnames class dev.jdtech.jellyfin.models.PlayerItem \ No newline at end of file +-keepnames class dev.jdtech.jellyfin.models.PlayerItem + +# Keep all mpvlib methods because proguard removes some which makes the app crash +-keep class is.xyz.libmpv.MPVLib { + *; +} \ No newline at end of file diff --git a/build.gradle.kts b/build.gradle.kts index 8c272304..08ebb2fe 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,6 +1,6 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - val kotlinVersion = "1.5.30" + val kotlinVersion = "1.5.31" repositories { google() mavenCentral()