mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-23 10:52:30 +01:00
remove unneeded properties from core manifest (#805)
extFactory, hasReadme, hasChangelog
This commit is contained in:
parent
29ab93bd8b
commit
d730231c8f
@ -25,22 +25,10 @@ android {
|
||||
base {
|
||||
archivesName = "tachiyomi-$applicationIdSuffix-v$versionName"
|
||||
}
|
||||
def readmes = project.projectDir.listFiles({ File file ->
|
||||
file.name == "README.md" || file.name == "CHANGELOG.md"
|
||||
} as FileFilter)
|
||||
def hasReadme = readmes != null && readmes.any { File file ->
|
||||
file.name.startsWith("README")
|
||||
}
|
||||
def hasChangelog = readmes != null && readmes.any { File file ->
|
||||
file.name.startsWith("CHANGELOG")
|
||||
}
|
||||
manifestPlaceholders = [
|
||||
appName : "Tachiyomi: $extName",
|
||||
extClass: extClass,
|
||||
extFactory: project.ext.properties.getOrDefault("extFactory", ""),
|
||||
nsfw: project.ext.properties.getOrDefault("isNsfw", false) ? 1 : 0,
|
||||
hasReadme: hasReadme ? 1 : 0,
|
||||
hasChangelog: hasChangelog ? 1 : 0,
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -6,10 +6,7 @@
|
||||
<application android:icon="@mipmap/ic_launcher" android:allowBackup="false" android:label="${appName}">
|
||||
|
||||
<meta-data android:name="tachiyomi.extension.class" android:value="${extClass}" />
|
||||
<meta-data android:name="tachiyomi.extension.factory" android:value="${extFactory}" />
|
||||
<meta-data android:name="tachiyomi.extension.nsfw" android:value="${nsfw}" />
|
||||
<meta-data android:name="tachiyomi.extension.hasReadme" android:value="${hasReadme}" />
|
||||
<meta-data android:name="tachiyomi.extension.hasChangelog" android:value="${hasChangelog}" />
|
||||
|
||||
</application>
|
||||
|
||||
|
@ -72,7 +72,6 @@ interface ThemeSourceGenerator {
|
||||
|ext {
|
||||
| extName = '${source.name}'
|
||||
| extClass = '.${source.className}'
|
||||
| extFactory = '$themePkg'
|
||||
| extVersionCode = ${baseVersionCode + source.overrideVersionCode + multisrcLibraryVersion}
|
||||
| ${if (source.isNsfw) "isNsfw = true\n" else ""}
|
||||
|}
|
||||
|
Loading…
Reference in New Issue
Block a user