Skip to content

Commit 2ca2617

Browse files
committed
chore: initialize AndroidTreeView
0 parents  commit 2ca2617

239 files changed

Lines changed: 17039 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.editorconfig‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
root = true
2+
3+
# ---- All files ----
4+
[*]
5+
charset = utf-8
6+
end_of_line = crlf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
indent_style = space
10+
indent_size = 4
11+
12+
# ---- Markdown ----
13+
[*.md]
14+
trim_trailing_whitespace = false
15+
16+
# ---- XML / project / config files ----
17+
[*.{csproj,props,targets,config,nuspec,xml}]
18+
indent_size = 2
19+
20+
[*.{json,yml,yaml}]
21+
indent_size = 2
22+
23+
# ---- XAML ----
24+
[*.{axaml,xaml}]
25+
indent_size = 4
26+
27+
# ---- C# ----
28+
[*.cs]
29+
indent_size = 4
30+
31+
# Language conventions
32+
dotnet_sort_system_directives_first = true
33+
dotnet_separate_import_directive_groups = false
34+
csharp_using_directive_placement = outside_namespace:warning
35+
36+
# 'this.' preferences
37+
dotnet_style_qualification_for_field = false:suggestion
38+
dotnet_style_qualification_for_property = false:suggestion
39+
dotnet_style_qualification_for_method = false:suggestion
40+
dotnet_style_qualification_for_event = false:suggestion
41+
42+
# Prefer language keywords over framework type names
43+
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
44+
dotnet_style_predefined_type_for_member_access = true:suggestion
45+
46+
# Modern C# style
47+
csharp_style_namespace_declarations = file_scoped:warning
48+
csharp_style_var_for_built_in_types = false:silent
49+
csharp_style_var_when_type_is_apparent = true:suggestion
50+
csharp_prefer_braces = true:suggestion
51+
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
52+
csharp_style_expression_bodied_properties = true:suggestion
53+
csharp_style_prefer_null_check_over_type_check = true:suggestion
54+
csharp_style_throw_expression = true:suggestion
55+
dotnet_style_object_initializer = true:suggestion
56+
dotnet_style_collection_initializer = true:suggestion
57+
dotnet_style_null_propagation = true:suggestion
58+
dotnet_style_coalesce_expression = true:suggestion
59+
60+
# Naming: interfaces begin with I
61+
dotnet_naming_rule.interfaces_start_with_i.symbols = interface_symbols
62+
dotnet_naming_rule.interfaces_start_with_i.style = begins_with_i
63+
dotnet_naming_rule.interfaces_start_with_i.severity = warning
64+
dotnet_naming_symbols.interface_symbols.applicable_kinds = interface
65+
dotnet_naming_symbols.interface_symbols.applicable_accessibilities = *
66+
dotnet_naming_style.begins_with_i.required_prefix = I
67+
dotnet_naming_style.begins_with_i.capitalization = pascal_case
68+
69+
# Analyzer noise reduction for a GUI/desktop app
70+
dotnet_diagnostic.CA1848.severity = none
71+
dotnet_diagnostic.CA1031.severity = none

‎.github/CODEOWNERS‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Repository maintainers
2+
* @Birditch
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
name: 缺陷反馈 (Bug report)
2+
description: 反馈可复现的异常行为 (Report reproducible behavior that is incorrect or broken).
3+
title: "[缺陷 Bug]: "
4+
labels: ["缺陷 (bug)", "状态:待分诊 (status: needs triage)"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
感谢你帮助改进 AndroidTreeView。
10+
11+
请尽量提供可复现信息,这会显著提高定位效率。
12+
13+
- type: input
14+
id: summary
15+
attributes:
16+
label: 摘要 (Summary)
17+
description: 用一句话说明问题 (Describe the issue in one sentence).
18+
placeholder: 设备卡片显示了错误的当前电量。
19+
validations:
20+
required: true
21+
22+
- type: dropdown
23+
id: area
24+
attributes:
25+
label: 影响范围 (Affected area)
26+
options:
27+
- ADB 检测 / 引导页 (ADB detection / setup)
28+
- 设备发现 (Device discovery)
29+
- 设备卡片 (Device card)
30+
- 详情页 (Detail page)
31+
- 当前电量 (Battery level)
32+
- 循环次数 (Cycle count)
33+
- 存储 (Storage)
34+
- 网络 (Network)
35+
- Root 状态 (Root status)
36+
- 日志 (Logcat)
37+
- 原始属性 (Raw properties)
38+
- 连接状态 (Connection state)
39+
- 刷新行为 (Refresh behavior)
40+
- 设置 (Settings)
41+
- 更新检查 (Update check)
42+
- 界面 / 主题 (UI / theme)
43+
- 本地化 / 语言 (Localization / language)
44+
- 安装 / MSI (Install / MSI)
45+
- 无障碍 (Accessibility)
46+
- 文档 (Documentation)
47+
- 不确定 (Unknown)
48+
validations:
49+
required: true
50+
51+
- type: dropdown
52+
id: install_method
53+
attributes:
54+
label: 安装方式 (Install method)
55+
options:
56+
- MSI 安装包 (MSI installer)
57+
- 源码自行编译 (Built from source)
58+
- 其他 (Other)
59+
validations:
60+
required: true
61+
62+
- type: textarea
63+
id: expected
64+
attributes:
65+
label: 期望行为 (Expected behavior)
66+
description: 你期望发生什么 (What did you expect to happen)?
67+
validations:
68+
required: true
69+
70+
- type: textarea
71+
id: actual
72+
attributes:
73+
label: 实际行为 (Actual behavior)
74+
description: 实际发生了什么 (What happened instead)?
75+
validations:
76+
required: true
77+
78+
- type: textarea
79+
id: reproduction
80+
attributes:
81+
label: 复现步骤 (Reproduction steps)
82+
description: 请提供尽可能小且稳定的复现步骤 (Provide the smallest reliable reproduction you can).
83+
placeholder: |
84+
1. 连接设备 ...
85+
2. 打开设备卡片列表 ...
86+
3. 点击设备卡片 ...
87+
4. 观察结果 ...
88+
validations:
89+
required: true
90+
91+
- type: textarea
92+
id: sample
93+
attributes:
94+
label: 最小示例 (Minimal sample)
95+
description: 如方便,请贴出相关 C# 或 XAML 片段 (Paste relevant C# or XAML snippets if available).
96+
render: csharp
97+
98+
- type: textarea
99+
id: environment
100+
attributes:
101+
label: 环境信息 (Environment)
102+
description: 应用、运行系统、ADB 与被连接的 Android 设备信息 (App, host OS, ADB, and connected Android device information).
103+
placeholder: |
104+
AndroidTreeView 版本 / 提交 (version / commit):
105+
运行系统 (host OS, e.g. Windows 11 24H2):
106+
ADB 版本 (adb version 输出):
107+
连接的 Android 设备型号 (connected device model):
108+
被连接设备的 Android 版本 (connected device Android version):
109+
连接设备地区 / 固件 (connected device region / firmware):
110+
连接方式 (connection type: USB / Wi-Fi):
111+
设备授权状态 (device authorization state):
112+
validations:
113+
required: true
114+
115+
- type: textarea
116+
id: logs
117+
attributes:
118+
label: 日志或截图 (Logs or screenshots)
119+
description: 如有帮助,请补充堆栈、截图、视频或布局检查信息 (Add stack traces, screenshots, videos, or layout inspector notes if useful).
120+
121+
- type: checkboxes
122+
id: checklist
123+
attributes:
124+
label: 检查清单 (Checklist)
125+
options:
126+
- label: 我已搜索过现有 Issue (I have searched existing issues).
127+
required: true
128+
- label: 我可以在最新代码或版本中复现 (I can reproduce this with the latest code or release).
129+
required: true
130+
- label: 我已提供足够的信息帮助维护者排查 (I have included enough information for maintainers to investigate).
131+
required: true

‎.github/ISSUE_TEMPLATE/config.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 安全漏洞 (Security vulnerability)
4+
url: https://github.com/Birditch/AndroidTreeView/security/advisories/new
5+
about: 请通过私密渠道报告安全漏洞,不要创建公开 Issue (Please report vulnerabilities privately instead of opening a public issue).
6+
- name: 贡献指南 (Contribution guide)
7+
url: https://github.com/Birditch/AndroidTreeView/blob/main/CONTRIBUTING.md
8+
about: 提交较大改动前,请先阅读贡献流程 (Read the contribution workflow before opening larger proposals).
9+
- name: 支持说明 (Support guide)
10+
url: https://github.com/Birditch/AndroidTreeView/blob/main/SUPPORT.md
11+
about: 查看使用问题的推荐求助路径 (Check the recommended support paths for usage questions).
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: 文档改进 (Documentation)
2+
description: 反馈缺失、不清晰或过期的文档 (Report missing, unclear, or outdated documentation).
3+
title: "[文档 Docs]: "
4+
labels: ["文档 (documentation)", "状态:待分诊 (status: needs triage)"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
清晰的文档也是产品体验的一部分,感谢你的改进建议。
10+
11+
- type: input
12+
id: summary
13+
attributes:
14+
label: 摘要 (Summary)
15+
placeholder: 安装方式需要补充更清晰的接入说明。
16+
validations:
17+
required: true
18+
19+
- type: dropdown
20+
id: doc_type
21+
attributes:
22+
label: 文档类型 (Documentation type)
23+
options:
24+
- README
25+
- API 参考 (API reference)
26+
- 示例应用 (Sample app)
27+
- 迁移指南 (Migration guide)
28+
- 无障碍 (Accessibility)
29+
- 其他 (Other)
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: current
35+
attributes:
36+
label: 当前问题 (Current problem)
37+
description: 哪些内容缺失、不清楚或已经过期 (What is missing, confusing, or outdated)?
38+
validations:
39+
required: true
40+
41+
- type: textarea
42+
id: proposal
43+
attributes:
44+
label: 改进建议 (Suggested improvement)
45+
description: 你希望文档如何改进 (What should the documentation say instead)?
46+
validations:
47+
required: true
48+
49+
- type: input
50+
id: location
51+
attributes:
52+
label: 相关页面或章节 (Related page or section)
53+
placeholder: README.md#installation
54+
55+
- type: checkboxes
56+
id: checklist
57+
attributes:
58+
label: 检查清单 (Checklist)
59+
options:
60+
- label: 我已搜索过现有 Issue (I have searched existing issues).
61+
required: true
62+
- label: 我愿意为此文档改进提交 PR (I am willing to open a pull request for this documentation change).
63+
required: false
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: 功能建议 (Feature request)
2+
description: 提出新能力或改进建议 (Suggest a new capability or improvement).
3+
title: "[功能 Feature]: "
4+
labels: ["功能增强 (enhancement)", "状态:待分诊 (status: needs triage)"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
好的功能建议会先解释产品问题,再说明期望的 API 或行为。
10+
11+
- type: input
12+
id: summary
13+
attributes:
14+
label: 摘要 (Summary)
15+
placeholder: 支持按电量或循环次数排序设备卡片。
16+
validations:
17+
required: true
18+
19+
- type: textarea
20+
id: problem
21+
attributes:
22+
label: 问题背景 (Problem)
23+
description: 当前有哪些使用场景很难实现 (What use case is difficult or impossible today)?
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
id: proposal
29+
attributes:
30+
label: 方案建议 (Proposed solution)
31+
description: 描述你希望的行为、API 或用户体验 (Describe the behavior, API, or user experience you want).
32+
validations:
33+
required: true
34+
35+
- type: textarea
36+
id: api
37+
attributes:
38+
label: API 草图 (API sketch)
39+
description: 如有必要,请展示调用侧可能的样子 (If relevant, show what the call site could look like).
40+
render: csharp
41+
42+
- type: textarea
43+
id: alternatives
44+
attributes:
45+
label: 备选方案 (Alternatives considered)
46+
description: 你考虑过哪些替代方案 (What workarounds or alternative designs have you considered)?
47+
48+
- type: dropdown
49+
id: priority
50+
attributes:
51+
label: 优先级 (Priority)
52+
options:
53+
- 锦上添花 (Nice to have)
54+
- 对接入很重要 (Important for adoption)
55+
- 阻塞生产使用 (Blocking production use)
56+
validations:
57+
required: true
58+
59+
- type: checkboxes
60+
id: checklist
61+
attributes:
62+
label: 检查清单 (Checklist)
63+
options:
64+
- label: 我已搜索过现有 Issue 和 PR (I have searched existing issues and pull requests).
65+
required: true
66+
- label: 这个请求属于 AndroidTreeView 的连接设备体验范畴,而不是业务应用专属逻辑 (This request is about AndroidTreeView's connected-device experience).
67+
required: true
68+
- label: 我愿意参与设计或实现这个功能 (I am willing to help design or implement this feature).
69+
required: false

0 commit comments

Comments
 (0)