Skip to content

Commit 6c4906f

Browse files
初次提交
0 parents  commit 6c4906f

174 files changed

Lines changed: 27218 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.

.gitattributes

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text eol=lf
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
# *.c text
7+
# *.h text
8+
9+
# Declare files that will always have CRLF line endings on checkout.
10+
*.cmd text eol=crlf
11+
*.bat text eol=crlf
12+
13+
# Denote all files that are truly binary and should not be modified.
14+
tools/** binary
15+
*.jar binary
16+
*.exe binary
17+
*.apk binary
18+
*.png binary
19+
*.jpg binary
20+
*.ttf binary
21+
*.so binary
22+
23+
# Help GitHub detect languages
24+
native/jni/external/** linguist-vendored
25+
native/jni/systemproperties/** linguist-language=C++
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
name: Bug report | 反馈 Bug
2+
description: Report bugs or unexpected behavior | 报告错误或未预料的行为
3+
labels: [bug]
4+
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for reporting issues of APatch!
10+
To better assist you, please provide the following information.
11+
To avoid duplicate issues, please use English in the title.
12+
13+
感谢给 APatch 汇报问题!
14+
为了使我们更好地帮助你,请提供以下信息。
15+
为了防止重复汇报,标题请务必使用英文。
16+
17+
- type: checkboxes
18+
attributes:
19+
label: Please check before submitting an issue | 在提交 Issue 前请检查
20+
options:
21+
- label: I searched the issues and didn't found anything relevant | 我已经搜索了 Issues 列表,没有发现于本问题相关内容
22+
required: true
23+
24+
- label: If the patch fails or the image cannot be booted after flashing the new boot.img, visit KernelPatch to clarify your doubts | 修复失败或刷入修补后镜像不能启动,请前往 KernelPatch 提问
25+
required: true
26+
27+
- label: I will upload the bug report file in APatch Manager > Settings > Send logs | 我会上传 Bug Report 文件从 APatch 管理器 > 设置 > 发送日志
28+
required: true
29+
30+
- label: I know how to reproduce the issue, which might not be specific to my device | 我知道如何重新复现这个问题
31+
required: false
32+
33+
- type: checkboxes
34+
id: latest
35+
attributes:
36+
label: Version requirements | 版本要求
37+
options:
38+
- label: I'm using the latest CI version of APatch Manager | 我正在使用最新 CI 版本
39+
required: true
40+
41+
- type: textarea
42+
attributes:
43+
label: Bug description | 描述 Bug
44+
description: |
45+
Please enter a clear and concise description of the bug.
46+
对 Bug 的清晰简洁的描述。
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
attributes:
52+
label: Reproduce method | 复现方法
53+
description: |
54+
Steps to reproduce the bug.
55+
复现的步骤。
56+
placeholder: |
57+
- 1. Go to...
58+
- 2. Click on...
59+
- 3. Scroll down to...
60+
- 4. See error
61+
validations:
62+
required: true
63+
64+
- type: textarea
65+
attributes:
66+
label: Expected behavior | 预期行为
67+
description: |
68+
Please enter a clear and concise description of what you expected to happen.
69+
对你期望发生的行为进行清晰简洁的描述。
70+
validations:
71+
required: true
72+
73+
- type: textarea
74+
attributes:
75+
label: Actual behavior | 实际行为
76+
description: |
77+
Tell us what actually happened.
78+
告诉我们实际发生了什么。
79+
validations:
80+
required: true
81+
82+
- type: textarea
83+
attributes:
84+
label: Screenshots | 截图
85+
description: |
86+
If possible, add screenshots to help explain your issue.
87+
如果可以的话,添加截图可以帮你解释问题。
88+
89+
- type: textarea
90+
attributes:
91+
label: Logs | 日志
92+
description: |
93+
If possible, add the crash log to help us find your issue.
94+
如果可以的话,添加崩溃日志可以帮助我们找到问题。
95+
96+
- type: input
97+
attributes:
98+
label: Device name | 设备名称
99+
validations:
100+
required: true
101+
102+
- type: input
103+
attributes:
104+
label: OS version | 系统版本
105+
validations:
106+
required: true
107+
108+
- type: input
109+
attributes:
110+
label: APatch version | APatch 版本
111+
validations:
112+
required: true
113+
114+
- type: input
115+
attributes:
116+
label: Kernel version | 内核版本
117+
validations:
118+
required: true
119+
120+
- type: input
121+
attributes:
122+
label: KernelPatch version | KernelPatch 版本
123+
validations:
124+
required: true
125+
126+
- type: textarea
127+
attributes:
128+
label: Other information | 其他信息
129+
description: |
130+
Add any information about the issue.
131+
添加关于问题的任何信息。
132+
placeholder: |
133+
Upload logs in .zip format by clicking the bottom bar. Uploading logs to other websites or using external links isn't allowed
134+
点击文本框底栏上传日志压缩包,禁止上传到其它网站或使用外链提供日志
135+
validations:
136+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question | 提问
4+
url: https://github.com/bmax121/APatch/discussions/new?category=Q-A
5+
about: If you've any questions, ask them here | 如果有任何疑问请在这里提问
6+
- name: Official Telegram channel | 官方 Telegram 频道
7+
url: https://t.me/APatchChannel
8+
about: Subscribe to receive releases and announcements | 可以订阅通知和发行版
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Feature request | 新特性请求
3+
description: Suggest an idea for this project | 提出建议
4+
labels: [enhancement]
5+
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Is your request related to a specific issue? | 你的请求是否与某个问题相关?
10+
description: |
11+
Please enter a clear and concise description of the issue.
12+
请清晰准确表述该问题。
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
attributes:
18+
label: Describe the solution you'd like | 描述你想要的解决方案
19+
description: |
20+
Please enter a clear and concise description of what you'd like.
21+
请清晰准确描述新特性的预期行为。
22+
validations:
23+
required: true
24+
25+
- type: textarea
26+
attributes:
27+
label: Describe the alternatives you've considered | 描述您考虑过的备选方案
28+
description: |
29+
Please enter a clear and concise description of any alternative solutions or features you've considered.
30+
对您考虑过的任何替代解决方案或功能的清晰简洁的描述。
31+
validations:
32+
required: true
33+
34+
- type: textarea
35+
attributes:
36+
label: Other information | 其他信息
37+
description: |
38+
Add any information or screenshots about the feature request.
39+
其他关于新特性的信息或者截图。
40+
validations:
41+
required: false

.github/dependabot.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: gradle
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
target-branch: main
8+
registries:
9+
- maven-google
10+
- gradle-plugin
11+
groups:
12+
maven-dependencies:
13+
patterns:
14+
- "*"
15+
16+
- package-ecosystem: github-actions
17+
target-branch: main
18+
directory: /
19+
schedule:
20+
interval: daily
21+
groups:
22+
action-dependencies:
23+
patterns:
24+
- "*"
25+
26+
- package-ecosystem: cargo
27+
target-branch: main
28+
directory: apd/
29+
schedule:
30+
interval: daily
31+
allow:
32+
- dependency-type: "all"
33+
groups:
34+
rust-dependencies:
35+
patterns:
36+
- "*"
37+
38+
registries:
39+
maven-google:
40+
type: maven-repository
41+
url: "https://dl.google.com/dl/android/maven2/"
42+
gradle-plugin:
43+
type: maven-repository
44+
url: "https://plugins.gradle.org/m2/"

.github/scripts/telegram_url.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import json
2+
import os
3+
import sys
4+
import urllib.parse
5+
6+
7+
url = f'https://api.telegram.org/bot{os.environ["BOT_TOKEN"]}'
8+
url += f'/sendMediaGroup?chat_id={urllib.parse.quote(sys.argv[1])}&media='
9+
10+
# https://core.telegram.org/bots/api#markdownv2-style
11+
msg = os.environ["COMMIT_MESSAGE"]
12+
for c in ['\\', '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!']:
13+
msg = msg.replace(c, f'\\{c}')
14+
commit_url = os.environ["COMMIT_URL"]
15+
commit_id = os.environ["COMMIT_ID"][:7]
16+
17+
caption = f"[{commit_id}]({commit_url})\n{msg}"[:1024]
18+
19+
data = json.dumps([
20+
{"type": "document", "media": "attach://Release","caption": caption,"parse_mode":"MarkdownV2"}
21+
])
22+
23+
url += urllib.parse.quote(data)
24+
print(url)

0 commit comments

Comments
 (0)