Add (empty) playback module and CODEOWNERS (#1072)

* Add (empty) playback module

* Add CODEOWNERS file
This commit is contained in:
Niels van Velzen 2021-08-08 17:28:56 +02:00 committed by GitHub
parent 4e9a239b2c
commit 6f3943cdb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 52 additions and 2 deletions

15
CODEOWNERS Normal file
View File

@ -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

View File

@ -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

View File

@ -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('-')) {

24
playback/build.gradle.kts Normal file
View File

@ -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 {
}

View File

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.jellyfin.playback">
<application>
</application>
</manifest>

View File

@ -3,3 +3,6 @@ enableFeaturePreview("VERSION_CATALOGS")
// Application
include(":app")
// Modules
include(":playback")