Skip to content

Commit

Permalink
Merge pull request #120 from nielsvanvelzen/fix-proguard
Browse files Browse the repository at this point in the history
Fix ProGuard configuration
  • Loading branch information
Maxr1998 authored Sep 12, 2020
2 parents 927f201 + b83729f commit c06f7fc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ dependencies {
implementation(Dependencies.UI.modernAndroidPreferences)

// Network
implementation(Dependencies.Network.apiClient)
implementation(Dependencies.Network.apiclient)
implementation(Dependencies.Network.okHttp)
implementation(Dependencies.Network.coil)
implementation(Dependencies.Network.exoPlayerHLS)
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ object Dependencies {
const val modernAndroidPreferences = "1.1.0-alpha3"

// Network
const val apiClient = "0.7.2"
const val apiclient = "0.7.4"
const val okHttp = "4.8.0"
const val coil = "0.11.0"

Expand Down Expand Up @@ -80,7 +80,7 @@ object Dependencies {
}

object Network {
const val apiClient = "org.jellyfin.apiclient:android:${Versions.apiClient}"
const val apiclient = "org.jellyfin.apiclient:android:${Versions.apiclient}"
const val okHttp = "com.squareup.okhttp3:okhttp:${Versions.okHttp}"
const val coil = "io.coil-kt:coil-base:${Versions.coil}"
val exoPlayerHLS = exoPlayer("hls")
Expand Down
22 changes: 22 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import java.util.Properties

include(":app")

pluginManagement {
Expand All @@ -9,3 +11,23 @@ pluginManagement {
}
}
}

// Load properties from local.properties
val properties = Properties().apply {
val location = File("local.properties")
if (location.exists())
load(location.inputStream())
}

// Get value for dependency substitution
val enableDependencySubstitution = properties.getProperty("enable.dependency.substitution", "true").equals("true", true)

// Replace apiclient dependency with local version
val apiclientLocation = "../jellyfin-apiclient-java"
if (File(apiclientLocation).exists() && enableDependencySubstitution) {
includeBuild(apiclientLocation) {
dependencySubstitution {
substitute(module("org.jellyfin.apiclient:android")).with(project(":android"))
}
}
}

0 comments on commit c06f7fc

Please sign in to comment.