-
Notifications
You must be signed in to change notification settings - Fork 2
feat: 愚人节彩蛋 + 设置页修复 + GCK 安全加固 + CI/CodeRabbit #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3cd8c77
feat: 愚人节彩蛋 - 负延迟串流™
qiin2333 6928684
fix: 设置页版本号点击复制 + 背景图切换提示重启
qiin2333 e4fde27
ci: 接入 CodeRabbit AI 代码审查
qiin2333 ca07c9f
fix(ci): CI 编译修复合集
qiin2333 e509d43
refactor(ci): 回退ArkTS源码CI适配,workflow改为仅构建原生代码
qiin2333 5c192b6
fix: GCK helper 函数条件编译(原生代码必须)
qiin2333 866d057
fix: GCK 函数指针空值保护 + 初始化验证
qiin2333 2762b2f
fix(ci): 移除 workflow 末尾孤立 YAML 映射键
qiin2333 62e576e
fix: GameController_StopMonitor 竞态修复 - 分离加锁/无锁版本
qiin2333 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # CodeRabbit AI 代码审查配置 | ||
| # 文档: https://docs.coderabbit.ai/reference/configuration | ||
|
|
||
| language: "zh-CN" | ||
| tone_instructions: "使用简洁的中文进行代码审查,关注实际问题而非风格偏好。" | ||
| early_access: true | ||
|
|
||
| reviews: | ||
| profile: "chill" | ||
| high_level_summary: true | ||
| poem: false | ||
| sequence_diagrams: false | ||
| collapse_walkthrough: true | ||
| changed_files_summary: true | ||
| path_filters: | ||
| - "!build/**" | ||
| - "!oh_modules/**" | ||
| - "!entry/oh_modules/**" | ||
| - "!entry/build/**" | ||
| - "!nativelib/build/**" | ||
| - "!hvigor/**" | ||
| - "!oh-package-lock.json5" | ||
| - "!entry/oh-package-lock.json5" | ||
| - "!store-assets/**" | ||
| - "!nativelib/src/main/cpp/moonlight-common-c/**" | ||
| - "!nativelib/src/main/cpp/ohos-openssl/**" | ||
| path_instructions: | ||
| - path: "entry/src/main/ets/**" | ||
| instructions: | | ||
| 这是 HarmonyOS ArkTS 前端代码。使用 ArkUI 声明式 UI 框架,@Component/@State/@Prop/@Link 等装饰器。 | ||
| 关注线程安全(UI 线程 vs Worker)、内存泄漏(定时器/事件监听未清理)、空指针安全。 | ||
| - path: "nativelib/src/main/cpp/**" | ||
| instructions: | | ||
| C/C++ 原生层代码,通过 N-API 与 ArkTS 交互。关注内存管理、线程安全、JNI/N-API 生命周期。 | ||
| auto_review: | ||
| enabled: true | ||
| drafts: false | ||
|
|
||
| chat: | ||
| auto_reply: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| declare module '@kit.ScanKit' { | ||
| namespace scanCore { | ||
| enum ScanType { | ||
| QR_CODE = 0, | ||
| BARCODE_TYPE_EAN_13 = 1, | ||
| BARCODE_TYPE_EAN_8 = 2, | ||
| BARCODE_TYPE_CODE_128 = 3, | ||
| } | ||
| } | ||
| namespace scanBarcode { | ||
| interface ScanOptions { | ||
| scanTypes?: scanCore.ScanType[]; | ||
| enableMultiMode?: boolean; | ||
| enableAlbum?: boolean; | ||
| } | ||
| interface ScanResult { | ||
| originalValue?: string; | ||
| scanType?: number; | ||
| } | ||
| function startScanForResult(context: object, options?: ScanOptions): Promise<ScanResult>; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "symbols": { | ||
| "scanCore": { | ||
| "source": "@ohos.scan.scanCore.d.ts", | ||
| "bindings": "default" | ||
| }, | ||
| "scanBarcode": { | ||
| "source": "@ohos.scan.scanBarcode.d.ts", | ||
| "bindings": "default" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| declare module '@kit.ShareKit' { | ||
| namespace systemShare { | ||
| enum SelectionMode { | ||
| SINGLE = 0, | ||
| BATCH = 1, | ||
| } | ||
| enum SharePreviewMode { | ||
| DEFAULT = 0, | ||
| DETAIL = 1, | ||
| } | ||
| interface SharedDataRecord { | ||
| utd: string; | ||
| content?: string; | ||
| uri?: string; | ||
| data?: ArrayBuffer; | ||
| title?: string; | ||
| description?: string; | ||
| thumbnail?: object; | ||
| } | ||
| class SharedData { | ||
| constructor(record: SharedDataRecord); | ||
| addRecord(record: SharedDataRecord): void; | ||
| } | ||
| interface ShareControllerOptions { | ||
| selectionMode?: SelectionMode; | ||
| previewMode?: SharePreviewMode; | ||
| } | ||
| class ShareController { | ||
| constructor(data: SharedData); | ||
| show(context: object, options?: ShareControllerOptions): Promise<void>; | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| { | ||
| "symbols": { | ||
| "systemShare": { | ||
| "source": "@ohos.share.systemShare.d.ts", | ||
| "bindings": "default" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| declare namespace scanBarcode { | ||
| interface ScanOptions { | ||
| scanTypes?: number[]; | ||
| enableMultiMode?: boolean; | ||
| enableAlbum?: boolean; | ||
| } | ||
| interface ScanResult { | ||
| originalValue?: string; | ||
| scanType?: number; | ||
| } | ||
| function startScanForResult(context: object, options?: ScanOptions): Promise<ScanResult>; | ||
| } | ||
| export default scanBarcode; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| declare namespace scanCore { | ||
| enum ScanType { | ||
| QR_CODE = 0, | ||
| BARCODE_TYPE_EAN_13 = 1, | ||
| BARCODE_TYPE_EAN_8 = 2, | ||
| BARCODE_TYPE_CODE_128 = 3, | ||
| } | ||
| } | ||
| export default scanCore; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| declare namespace systemShare { | ||
| enum SelectionMode { | ||
| SINGLE = 0, | ||
| BATCH = 1, | ||
| } | ||
| enum SharePreviewMode { | ||
| DEFAULT = 0, | ||
| DETAIL = 1, | ||
| } | ||
| interface SharedDataRecord { | ||
| utd: string; | ||
| content?: string; | ||
| uri?: string; | ||
| data?: ArrayBuffer; | ||
| title?: string; | ||
| description?: string; | ||
| thumbnail?: object; | ||
| } | ||
| class SharedData { | ||
| constructor(record: SharedDataRecord); | ||
| addRecord(record: SharedDataRecord): void; | ||
| } | ||
| interface ShareControllerOptions { | ||
| selectionMode?: SelectionMode; | ||
| previewMode?: SharePreviewMode; | ||
| } | ||
| class ShareController { | ||
| constructor(data: SharedData); | ||
| show(context: object, options?: ShareControllerOptions): Promise<void>; | ||
| } | ||
| } | ||
| export default systemShare; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DevKeySecret使用相对路径会导致 CI 调用目录变化时失败Line 132 依赖当前工作目录是仓库根目录;如果从其他目录调用脚本,这里会找不到目标路径。并且 Line 135 在
.example缺失时会直接中断整个脚本(set -e)。建议改成基于脚本位置解析仓库根目录,并显式校验模板文件存在。🔧 建议修复
🤖 Prompt for AI Agents