Skip to content

Commit

Permalink
Add (empty) playback module and CODEOWNERS (#1072)
Browse files Browse the repository at this point in the history
* Add (empty) playback module

* Add CODEOWNERS file
  • Loading branch information
nielsvanvelzen authored Aug 8, 2021
1 parent 4e9a239 commit 6f3943c
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 2 deletions.
15 changes: 15 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Build files
/.github/workflows/ @nielsvanvelzen
/.github/dependabot.yml @nielsvanvelzen
/gradle/ @nielsvanvelzen
/buildSrc/ @nielsvanvelzen
settings.gradle.ts @nielsvanvelzen
build.gradle.kts @nielsvanvelzen
gradle.properties @nielsvanvelzen

# Linting
android-lint.xml @nielsvanvelzen
detekt.yaml @nielsvanvelzen

# Playback code
/playback/ @nielsvanvelzen
3 changes: 2 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ val versionTxt by tasks.registering {
}

dependencies {
// Jellyfin apiclient & SDK
// Jellyfin
implementation(projects.playback)
implementation(libs.jellyfin.apiclient)
implementation(libs.jellyfin.sdk) {
// Change version if desired
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/VersionUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun Project.getVersionName(fallback: String = "0.0.0-dev.1") =
* 2.0.0 -> 2000099
* 99.99.99-rc.1 -> 99999901
*/
fun getVersionCode(versionName: String): Int? {
fun getVersionCode(versionName: String): Int {
// Split to core and pre release parts with a default for pre release (null)
val (versionCore, versionPreRelease) =
when (val index = versionName.indexOf('-')) {
Expand Down
24 changes: 24 additions & 0 deletions playback/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
plugins {
id("com.android.library")
kotlin("android")
}

android {
compileSdkVersion(30)

defaultConfig {
minSdkVersion(21)
targetSdkVersion(30)
}

buildFeatures {
viewBinding = true
}

sourceSets["main"].java.srcDirs("src/main/kotlin")
sourceSets["test"].java.srcDirs("src/test/kotlin")
}

dependencies {

}
7 changes: 7 additions & 0 deletions playback/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.jellyfin.playback">

<application>

</application>
</manifest>
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ enableFeaturePreview("VERSION_CATALOGS")

// Application
include(":app")

// Modules
include(":playback")

0 comments on commit 6f3943c

Please sign in to comment.