This commit is contained in:
Cloudburst 2022-08-11 10:54:32 +02:00 committed by GitHub
parent 3b9c8706d9
commit 2aeef21707
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View file

@ -43,6 +43,8 @@ abstract class CloudstreamExtension @Inject constructor(project: Project) {
var authors = listOf<String>() var authors = listOf<String>()
var adult = false var adult = false
var status = 3 var status = 3
var language: String? = null
var iconUrl: String? = null
} }
class ApkInfo(extension: CloudstreamExtension, release: String) { class ApkInfo(extension: CloudstreamExtension, release: String) {

View file

@ -45,6 +45,8 @@ fun Project.makePluginEntry(): PluginEntry {
description = extension.description, description = extension.description,
repositoryUrl = (if (repo == null) null else repo.url), repositoryUrl = (if (repo == null) null else repo.url),
adult = extension.adult, adult = extension.adult,
language = extension.language,
iconUrl = extension.iconUrl,
apiVersion = extension.apiVersion apiVersion = extension.apiVersion
) )
} }

View file

@ -10,5 +10,7 @@ data class PluginEntry(
val description: String?, val description: String?,
val repositoryUrl: String?, val repositoryUrl: String?,
val adult: Boolean, val adult: Boolean,
val language: String?,
val iconUrl: String?,
val apiVersion: Int val apiVersion: Int
) )