mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-13 16:40:01 +00:00
Got 3rd party dependencies working in development mode
This commit is contained in:
@@ -10,7 +10,9 @@ repositories {
|
||||
|
||||
dependencies {
|
||||
// PF4J (shared)
|
||||
api("org.pf4j:pf4j:${rootProject.extra["pf4jVersion"]}")
|
||||
api("org.pf4j:pf4j:${rootProject.extra["pf4jVersion"]}") {
|
||||
exclude(group = "org.slf4j")
|
||||
}
|
||||
|
||||
implementation(kotlin("stdlib"))
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package de.grimsi.gameyfin.pluginapi.core
|
||||
|
||||
import org.pf4j.Plugin
|
||||
|
||||
abstract class GameyfinPlugin(protected val context: PluginContext) : Plugin()
|
||||
@@ -0,0 +1,3 @@
|
||||
package de.grimsi.gameyfin.pluginapi.core
|
||||
|
||||
class PluginConfigError(message: String) : RuntimeException(message)
|
||||
@@ -0,0 +1,9 @@
|
||||
package de.grimsi.gameyfin.pluginapi.core
|
||||
|
||||
import org.pf4j.RuntimeMode
|
||||
|
||||
class PluginContext(private val runtimeMode: RuntimeMode) {
|
||||
fun getRuntimeMode(): RuntimeMode {
|
||||
return runtimeMode
|
||||
}
|
||||
}
|
||||
-2
@@ -3,7 +3,5 @@ package de.grimsi.gameyfin.pluginapi.gamemetadata
|
||||
import org.pf4j.ExtensionPoint
|
||||
|
||||
interface GameMetadataFetcher : ExtensionPoint {
|
||||
fun getConfig(): Map<String, String>
|
||||
fun setConfig(config: Map<String, String>)
|
||||
fun fetchMetadata(gameId: String): GameMetadata
|
||||
}
|
||||
Reference in New Issue
Block a user