{
    "id": "Reven",
    "name": "Reven",
    "author": "@Reven",
    "icon": "https://raw.githubusercontent.com/fishdown/Icon/refs/heads/master/app/RevenueCat.png",
    "repo": "https://reven.jsforbaby.workers.dev/reven/reven.conf",
    "apps": [
        {
            "id": "RevenSettings",
            "name": "Reven 解锁设置",
            "keys": [
                "reven_mock",
                "reven_bypass",
                "reven_strategy"
            ],
            "settings": [
                {
                    "id": "reven_mock",
                    "name": "Mock 网关地址",
                    "val": "https://reven.jsforbaby.workers.dev/reven",
                    "type": "text",
                    "autoGrow": true,
                    "rows": 2,
                    "persistentHint": true,
                    "desc": "Reven 网关地址，一般无需修改。"
                },
                {
                    "id": "reven_bypass",
                    "name": "Bypass 跳过 App",
                    "val": "-",
                    "type": "text",
                    "autoGrow": true,
                    "rows": 2,
                    "persistentHint": true,
                    "desc": "跳过指定 App (绕过解锁)。遇到修改响应会报错/闪退的 App (如 Filebar) 可在此填入其 UA 关键词 (不区分大小写)。多个 App 请用英文逗号 , 分隔，例如: Filebar,XXX,YYY。填 - 表示全部 App 正常解锁。"
                },
                {
                    "id": "reven_strategy",
                    "name": "注入策略",
                    "val": "auto",
                    "type": "selects",
                    "items": [
                        { "key": "auto",         "label": "auto" },
                        { "key": "lifetime_sub", "label": "lifetime_sub" },
                        { "key": "year",         "label": "year" },
                        { "key": "month",        "label": "month" },
                        { "key": "all",          "label": "all" }
                    ],
                    "desc": "auto = lifetime 优先 (官方规范, 大部分 App 适用)\nlifetime_sub = lifetime 塞 subscriptions + 2099 (auto 模式 lifetime 解锁失败时换它)\nyear / month = 跳过 lifetime, 改塞年/月订阅\nall = 注入所有 PID (兜底, 可能有副作用)"
                }
            ],
            "author": "@Reven",
            "repo": "https://reven.jsforbaby.workers.dev/reven/reven.conf",
            "icons": [
                "https://raw.githubusercontent.com/fishdown/Icon/refs/heads/master/app/RevenueCat.png",
                "https://raw.githubusercontent.com/fishdown/Icon/refs/heads/master/app/RevenueCat.png"
            ],
            "script": "https://reven.jsforbaby.workers.dev/reven/qx-response.js"
        },
        {
            "id": "RevenITunesSettings",
            "name": "buy.iTunes 解锁设置",
            "keys": [
                "iap_enabled",
                "iap_expires",
                "iap_country"
            ],
            "settings": [
                {
                    "id": "iap_enabled",
                    "name": "启用 iTunes 解锁",
                    "val": "true",
                    "type": "selects",
                    "items": [
                        { "key": "true",  "label": "true (拦截并注入凭证)" },
                        { "key": "false", "label": "false (不修改, 直接放行)" }
                    ],
                    "desc": "是否拦截 buy.itunes.apple.com/verifyReceipt 并注入订阅凭证。"
                },
                {
                    "id": "iap_expires",
                    "name": "订阅到期日期",
                    "val": "2099-09-09",
                    "type": "text",
                    "autoGrow": true,
                    "rows": 2,
                    "persistentHint": true,
                    "desc": "格式 YYYY-MM-DD，默认 2099-09-09 (永久)。"
                },
                {
                    "id": "iap_country",
                    "name": "App Store 国家/地区",
                    "val": "HK",
                    "type": "text",
                    "autoGrow": true,
                    "rows": 2,
                    "persistentHint": true,
                    "desc": "App Store 国家/地区代码 (两位大写字母, ISO 3166-1)，用于查询内购商品 ID。建议填该 App 在 App Store 的所属区域 (即你从哪个区下载的它): 国区 CN / 港区 HK / 美区 US。默认 HK 兼容性最好；但国区独占或国区限定促销 App 必须填 CN，否则注入的产品在该区未上架可能导致解锁失败。"
                }
            ],
            "author": "@Reven",
            "repo": "https://reven.jsforbaby.workers.dev/reven/reven.conf",
            "icons": [
                "https://raw.githubusercontent.com/fishdown/Icon/refs/heads/master/app/RevenueCat.png",
                "https://raw.githubusercontent.com/fishdown/Icon/refs/heads/master/app/RevenueCat.png"
            ],
            "script": "https://reven.jsforbaby.workers.dev/reven/qx-response.js"
        }
    ]
}
