Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,9 @@ jobs:
run: |
chmod +x android/gradlew
cd android && ./gradlew :core:test :app:assembleDebug --no-daemon

- name: Upload debug APK
uses: actions/upload-artifact@v4
with:
name: android-debug-apk
path: android/app/build/outputs/apk/debug/app-debug.apk
2 changes: 2 additions & 0 deletions android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ android {

buildFeatures {
compose = true
// QA 测试通知入口依赖 BuildConfig.DEBUG 门控(仅 debug 构建显示,release 自动剔除)
buildConfig = true
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,19 @@ fun SettingsScreen(state: AppModel.State, controller: AppController, onLogin: ()
Text("打开系统通知设置")
}
}
// QA 入口(仅 debug 构建):低余额通知管线真机验证用——
// 渠道/权限/图标/文案/点击跳转与真实余额无关,无需真实低余额账户(#16 QA 矩阵)
if (BuildConfig.DEBUG) {
Spacer(Modifier.height(8.dp))
Text(
"QA:发送一条测试低余额通知(仅 debug 构建显示)",
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.outline
)
TextButton(onClick = { notifier.notifyLowBalance(0.5, "CNY") }) {
Text("发送测试通知")
}
}
}
}

Expand Down
Loading