Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-12-01 00:19:34 +00:00
chore: Include app version codes in patches-list.json
This commit is contained in:
1 parent
031b1eb376
commit
e21c61d4b0
1 file changed
+2
@@ -60,6 +60,7 @@ private fun generatePatchList(version: String, patches: Set<Patch<*>>) {
|
|||||||
targets = compat.targets.map { target ->
|
targets = compat.targets.map { target ->
|
||||||
JsonCompatibility.Target(
|
JsonCompatibility.Target(
|
||||||
version = target.version,
|
version = target.version,
|
||||||
|
versionCodes = target.versionCodes?.mapKeys { it.key.name },
|
||||||
isExperimental = target.isExperimental,
|
isExperimental = target.isExperimental,
|
||||||
minSdk = target.minSdk,
|
minSdk = target.minSdk,
|
||||||
description = target.description,
|
description = target.description,
|
||||||
@@ -141,6 +142,7 @@ private class JsonCompatibility(
|
|||||||
) {
|
) {
|
||||||
class Target(
|
class Target(
|
||||||
val version: String?,
|
val version: String?,
|
||||||
|
val versionCodes: Map<String, Int>?,
|
||||||
val isExperimental: Boolean,
|
val isExperimental: Boolean,
|
||||||
/** Minimum device SDK version. Null means any SDK version. */
|
/** Minimum device SDK version. Null means any SDK version. */
|
||||||
val minSdk: Int?,
|
val minSdk: Int?,
|
||||||
|
|||||||
Reference in new issue
Block a user