4
0
Fork
You've already forked TestPlugin
0
No description
  • Kotlin 100%
Find a file
2022年08月07日 17:02:17 +02:00
.vscode initial commit 2022年08月04日 14:17:43 +02:00
Builds Added test plugin and json 2022年08月06日 20:04:35 +02:00
gradle/wrapper initial commit 2022年08月04日 14:17:43 +02:00
src/main address #1 2022年08月06日 16:18:01 +02:00
.gitignore initial commit 2022年08月04日 14:17:43 +02:00
build.gradle.kts address #1 2022年08月06日 16:18:01 +02:00
gradle.properties initial commit 2022年08月04日 14:17:43 +02:00
gradlew Added test plugin and json 2022年08月06日 20:04:35 +02:00
gradlew.bat initial commit 2022年08月04日 14:17:43 +02:00
plugins.json update plugin json 2022年08月07日 17:02:17 +02:00
README.md update plugin json 2022年08月07日 17:02:17 +02:00
repo.json Added test plugin and json 2022年08月06日 20:04:35 +02:00
settings.gradle.kts address #1 2022年08月06日 16:18:01 +02:00

TestPlugin

./gradlew make to compile the plugin

repo.json is defined as:

(? means optional parameter)

data class Repository(
 @JsonProperty("name") val name: String,
 @JsonProperty("description") val description: String?,
 @JsonProperty("manifestVersion") val manifestVersion: Int,
 @JsonProperty("pluginLists") val pluginLists: List<String>
)

while plugins.json follows this json format:

/**
 * Status int as the following:
 * 0: Down
 * 1: Ok
 * 2: Slow
 * 3: Beta only
 * */
data class SitePlugin(
 // Url to the .cs3 file
 @JsonProperty("url") val url: String,
 // Status to remotely disable the provider
 @JsonProperty("status") val status: Int,
 // Integer over 0, any change of this will trigger an auto update
 @JsonProperty("version") val version: Int,
 // Unused currently, used to make the api backwards compatible?
 // Set to 1
 @JsonProperty("apiVersion") val apiVersion: Int,
 // Name to be shown in app
 @JsonProperty("name") val name: String,
 // Name to be referenced internally. Separate to make name and url changes possible
 @JsonProperty("internalName") val internalName: String,
 @JsonProperty("authors") val authors: List<String>,
 @JsonProperty("description") val description: String?,
 // Might be used to go directly to the plugin repo in the future
 @JsonProperty("repositoryUrl") val repositoryUrl: String?,
 // These types are yet to be mapped and used, ignore for now
 @JsonProperty("tvTypes") val tvTypes: List<String>?,
 @JsonProperty("language") val language: String?,
 @JsonProperty("iconUrl") val iconUrl: String?,
 // Set to true to get an 18+ symbol next to the plugin
 @JsonProperty("isAdult") val isAdult: Boolean?,
)

Click this link from the app to automatically install the repository: Repo download