Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
0e0c07ef
Commit
0e0c07ef
authored
Mar 14, 2020
by
Him188
Committed by
GitHub
Mar 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update CONTRIBUTING.md
parent
27194cba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CONTRIBUTING.md
CONTRIBUTING.md
+2
-2
No files found.
CONTRIBUTING.md
View file @
0e0c07ef
...
...
@@ -18,9 +18,9 @@ mirai 欢迎一切形式的代码贡献。你可以通过以下几种途径向 m
-
mirai 为多平台项目, 请务必考虑多平台兼容性
-
mirai 为全协程实现, 请在有必要的时候考虑并发安全性
-
尽量不要引用新的库
-
遵守 Kotlin 代码规范(提交前使用 IDE 格式化代码)
-
遵守 Kotlin 代码规范(提交前使用 IDE 格式化代码
(commit 时勾选 'Reformat code')
)
-
熟悉
[
`PacketFactory`
](
https://github.com/mamoe/mirai/blob/master/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/PacketFactory.kt
)
架构
-
不要手动拆解数据包. 请一定使用
`kotlinx.serialization`
拆解 ProtoBuf
和使用 mirai 的
`Jce`
序列化器拆解 Jce 数据包
-
不要手动拆解数据包. 请一定使用
`kotlinx.serialization`
拆解 ProtoBuf
, 使用 mirai 的
`Jce`
序列化器拆解 Jce 数据包, 使用
`kotlinx.serialization`
拆解 Json 数据.
-
必须保证高代码效率(使用
`ByteArrayPool`
,
`WeakRef`
等)
## 社区
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment