remove unneeded properties from core manifest (#805)
extFactory, hasReadme, hasChangelog
This commit is contained in:
parent
3f2882c523
commit
c1c0886c0d
|
@ -25,22 +25,10 @@ android {
|
||||||
base {
|
base {
|
||||||
archivesName = "tachiyomi-$applicationIdSuffix-v$versionName"
|
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 = [
|
manifestPlaceholders = [
|
||||||
appName : "Tachiyomi: $extName",
|
appName : "Tachiyomi: $extName",
|
||||||
extClass: extClass,
|
extClass: extClass,
|
||||||
extFactory: project.ext.properties.getOrDefault("extFactory", ""),
|
|
||||||
nsfw: project.ext.properties.getOrDefault("isNsfw", false) ? 1 : 0,
|
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}">
|
<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.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.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>
|
</application>
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,6 @@ interface ThemeSourceGenerator {
|
||||||
|ext {
|
|ext {
|
||||||
| extName = '${source.name}'
|
| extName = '${source.name}'
|
||||||
| extClass = '.${source.className}'
|
| extClass = '.${source.className}'
|
||||||
| extFactory = '$themePkg'
|
|
||||||
| extVersionCode = ${baseVersionCode + source.overrideVersionCode + multisrcLibraryVersion}
|
| extVersionCode = ${baseVersionCode + source.overrideVersionCode + multisrcLibraryVersion}
|
||||||
| ${if (source.isNsfw) "isNsfw = true\n" else ""}
|
| ${if (source.isNsfw) "isNsfw = true\n" else ""}
|
||||||
|}
|
|}
|
||||||
|
|
Loading…
Reference in New Issue