mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2025-05-17 19:36:03 +08:00
Add (empty) playback module and CODEOWNERS (#1072)
* Add (empty) playback module * Add CODEOWNERS file
This commit is contained in:
15
CODEOWNERS
Normal file
15
CODEOWNERS
Normal 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
|
@ -71,7 +71,8 @@ val versionTxt by tasks.registering {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Jellyfin apiclient & SDK
|
// Jellyfin
|
||||||
|
implementation(projects.playback)
|
||||||
implementation(libs.jellyfin.apiclient)
|
implementation(libs.jellyfin.apiclient)
|
||||||
implementation(libs.jellyfin.sdk) {
|
implementation(libs.jellyfin.sdk) {
|
||||||
// Change version if desired
|
// Change version if desired
|
||||||
|
@ -31,7 +31,7 @@ fun Project.getVersionName(fallback: String = "0.0.0-dev.1") =
|
|||||||
* 2.0.0 -> 2000099
|
* 2.0.0 -> 2000099
|
||||||
* 99.99.99-rc.1 -> 99999901
|
* 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)
|
// Split to core and pre release parts with a default for pre release (null)
|
||||||
val (versionCore, versionPreRelease) =
|
val (versionCore, versionPreRelease) =
|
||||||
when (val index = versionName.indexOf('-')) {
|
when (val index = versionName.indexOf('-')) {
|
||||||
|
24
playback/build.gradle.kts
Normal file
24
playback/build.gradle.kts
Normal 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 {
|
||||||
|
|
||||||
|
}
|
7
playback/src/main/AndroidManifest.xml
Normal file
7
playback/src/main/AndroidManifest.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
package="org.jellyfin.playback">
|
||||||
|
|
||||||
|
<application>
|
||||||
|
|
||||||
|
</application>
|
||||||
|
</manifest>
|
@ -3,3 +3,6 @@ enableFeaturePreview("VERSION_CATALOGS")
|
|||||||
|
|
||||||
// Application
|
// Application
|
||||||
include(":app")
|
include(":app")
|
||||||
|
|
||||||
|
// Modules
|
||||||
|
include(":playback")
|
||||||
|
Reference in New Issue
Block a user