ZIP 目录与交付坐标
cleaner-push-profile.zip
├── profile.json
├── routes.json
├── strings/
│ ├── default.json
│ └── zh-CN.json
└── res/
├── drawable/ic_notify_small.xml
└── drawable-nodpi/
├── ic_clean.webp
├── ic_files.webp
└── ic_apps.webp
# routes.json 示例
{"routeIds":["home","clean","large_files","apps"]}
# CI 发布示例
team:cleaner-push-profile:1.0.0
└── team:push-sdk:<locked-version>
# 宿主 Gradle
implementation("team:cleaner-push-profile:1.0.0")
profile.json · 模板示例
{
"schemaVersion": 1,
"productId": "cleaner",
"system": {
"smallIcon": "ic_notify_small",
"ongoing": {
"template": "SHORTCUT_GRID",
"defaultRoute": "home",
"items": [
{"id":"clean","icon":"ic_clean","labelKey":"clean","routeId":"clean"},
{"id":"large","icon":"ic_files","labelKey":"large_files","routeId":"large_files"},
{"id":"apps","icon":"ic_apps","labelKey":"apps","routeId":"apps"}
]
},
"triggers": {
"timer": {"content":"clean_reminder","intervalMinutes":20},
"unlock": {"content":"clean_reminder","minIntervalMinutes":20},
"background": {"content":"clean_reminder"}
},
"content": {
"clean_reminder": {"titleKey":"app_name","bodyKey":"clean_body","routeId":"clean"}
}
},
"desktop": {
"style":"CARD",
"icon":"ic_clean",
"titleKey":"app_name",
"bodyKey":"clean_body",
"routeId":"clean",
"autoDismissSeconds":0,
"policy":{"minIntervalMinutes":60,"maxPerDay":3}
}
}