From eb0831893d81cdabc3d9f5fde9217651a9baf775 Mon Sep 17 00:00:00 2001 From: funman300 Date: Thu, 14 May 2026 19:59:18 -0700 Subject: [PATCH] fix(readme): pass apkUrls/otherAssetUrls as JSON-encoded strings in Obtainium badge Obtainium's fromJson calls jsonDecode(json['apkUrls']), so the field must be a JSON-encoded string ("[]") not a raw array ([]). Passing a raw array caused the Dart runtime error: List is not a subtype of String. Also adds allowIdChange and otherAssetUrls fields required by v1.4.3. Co-Authored-By: Claude Sonnet 4.6 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ab65ac..c263674 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ optional self-hosted sync so your stats follow you across machines. 1. Install [Obtainium](https://github.com/ImranR98/Obtainium/releases) on your device 2. Tap the badge below on your Android device — the source type is pre-configured, no manual selection needed: - [Get it on Obtainium](https://apps.obtainium.imranr.dev/redirect?r=obtainium://app/%7B%22id%22%3A%22com.ferrousapp.solitaire%22%2C%22url%22%3A%22https%3A//git.aleshym.co/funman300/Ferrous-Solitaire%22%2C%22author%22%3A%22funman300%22%2C%22name%22%3A%22Ferrous%20Solitaire%22%2C%22installedVersion%22%3Anull%2C%22latestVersion%22%3Anull%2C%22apkUrls%22%3A%5B%5D%2C%22preferredApkIndex%22%3A0%2C%22additionalSettings%22%3A%22%7B%7D%22%2C%22lastUpdateCheck%22%3Anull%2C%22pinned%22%3Afalse%2C%22categories%22%3A%5B%5D%2C%22releaseDate%22%3Anull%2C%22changeLog%22%3Anull%2C%22overrideSource%22%3A%22Forgejo%20%28Codeberg%29%22%7D) + [Get it on Obtainium](https://apps.obtainium.imranr.dev/redirect?r=obtainium://app/%7B%22id%22%3A%22com.ferrousapp.solitaire%22%2C%22url%22%3A%22https%3A//git.aleshym.co/funman300/Ferrous-Solitaire%22%2C%22author%22%3A%22funman300%22%2C%22name%22%3A%22Ferrous%20Solitaire%22%2C%22installedVersion%22%3Anull%2C%22latestVersion%22%3Anull%2C%22apkUrls%22%3A%22%5B%5D%22%2C%22preferredApkIndex%22%3A0%2C%22additionalSettings%22%3A%22%7B%7D%22%2C%22lastUpdateCheck%22%3Anull%2C%22pinned%22%3Afalse%2C%22categories%22%3A%5B%5D%2C%22releaseDate%22%3Anull%2C%22changeLog%22%3Anull%2C%22overrideSource%22%3A%22Forgejo%20%28Codeberg%29%22%2C%22allowIdChange%22%3Afalse%2C%22otherAssetUrls%22%3A%22%5B%5D%22%7D) 3. Tap **Install** to download the current release — Obtainium will notify you when updates are available.