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
1565d4b7
Commit
1565d4b7
authored
Feb 18, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README
parent
866a5ac6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
README.md
README.md
+6
-6
gradle/publish.gradle
gradle/publish.gradle
+2
-0
mirai-japt/README.md
mirai-japt/README.md
+2
-2
No files found.
README.md
View file @
1565d4b7
...
@@ -71,7 +71,7 @@ Kotlin 在 Maven 上只支持 JVM 平台.
...
@@ -71,7 +71,7 @@ Kotlin 在 Maven 上只支持 JVM 平台.
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
net.mamoe
</groupId>
<groupId>
net.mamoe
</groupId>
<artifactId>
mirai-core-qqandroid
-jvm
</artifactId>
<artifactId>
mirai-core-qqandroid
</artifactId>
<version>
0.15.1
</version>
<!-- 替换版本为最新版本 -->
<version>
0.15.1
</version>
<!-- 替换版本为最新版本 -->
</dependency>
</dependency>
</dependencies>
</dependencies>
...
@@ -85,7 +85,7 @@ repositories{
...
@@ -85,7 +85,7 @@ repositories{
}
}
```
```
若您需要使用在跨平台项目, 则要对各个目标平台添加不同的依赖,这与 kotlin 相关多平台库的依赖是类似的。
若您需要使用在跨平台项目, 则要对各个目标平台添加不同的依赖,这与 kotlin 相关多平台库的依赖是类似的。
**若您只需要使用在单一平台, 则只需要添加一项该平台的依赖.
如只在 JVM 运行则只需要`-jvm`的依赖**
**若您只需要使用在单一平台, 则只需要添加一项该平台的依赖.
**
请将
`VERSION`
替换为最新的版本(如
`0.15.0`
):
请将
`VERSION`
替换为最新的版本(如
`0.15.0`
):
[

](https://bintray.com/him188moe/mirai/mirai-core/)
[

](https://bintray.com/him188moe/mirai/mirai-core/)
...
@@ -96,13 +96,13 @@ Mirai 核心由 API 模块(`mirai-core`)和协议模块组成。
...
@@ -96,13 +96,13 @@ Mirai 核心由 API 模块(`mirai-core`)和协议模块组成。
只添加 API 模块将无法正常工作。
只添加 API 模块将无法正常工作。
现在只推荐使用 QQAndroid 协议,请参照下文选择对应目标平台的依赖添加。
现在只推荐使用 QQAndroid 协议,请参照下文选择对应目标平台的依赖添加。
**
common**
(通用
平台)
**
jvm**
(JVM
平台)
```
kotlin
```
kotlin
implementation
(
"net.mamoe:mirai-core-qqandroid
-common
:VERSION"
)
implementation
(
"net.mamoe:mirai-core-qqandroid:VERSION"
)
```
```
**
jvm**
(JVM
平台)
**
common**
(通用
平台)
```
kotlin
```
kotlin
implementation
(
"net.mamoe:mirai-core-qqandroid-
jvm
:VERSION"
)
implementation
(
"net.mamoe:mirai-core-qqandroid-
common
:VERSION"
)
```
```
**android**
(Android 平台)
**android**
(Android 平台)
```
kotlin
```
kotlin
...
...
gradle/publish.gradle
View file @
1565d4b7
// 部分源码来自 kotlinx.coroutines
// 部分源码来自 kotlinx.coroutines
// Source code from kotlinx.coroutines
def
pomConfig
=
{
def
pomConfig
=
{
licenses
{
licenses
{
...
@@ -12,6 +13,7 @@ def pomConfig = {
...
@@ -12,6 +13,7 @@ def pomConfig = {
developer
{
developer
{
id
"mamoe"
id
"mamoe"
name
"Mamoe Technologies"
name
"Mamoe Technologies"
email
"support@mamoe.net"
}
}
}
}
scm
{
scm
{
...
...
mirai-japt/README.md
View file @
1565d4b7
...
@@ -32,7 +32,7 @@ Mirai Java Apt
...
@@ -32,7 +32,7 @@ Mirai Java Apt
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
net.mamoe
</groupId>
<groupId>
net.mamoe
</groupId>
<artifactId>
mirai-core-qqandroid
-jvm
</artifactId>
<artifactId>
mirai-core-qqandroid
</artifactId>
<version>
CORE_VERSION
</version>
<!-- 替换版本为最新版本 -->
<version>
CORE_VERSION
</version>
<!-- 替换版本为最新版本 -->
</dependency>
</dependency>
...
@@ -51,7 +51,7 @@ repositories {
...
@@ -51,7 +51,7 @@ repositories {
}
}
dependencies
{
dependencies
{
implementation
(
"net.mamoe:mirai-core-qqandroid
-jvm
:CORE_VERSION"
)
implementation
(
"net.mamoe:mirai-core-qqandroid:CORE_VERSION"
)
implementation
(
"net.mamoe:mirai-japt:JAPT_VERSION"
)
implementation
(
"net.mamoe:mirai-japt:JAPT_VERSION"
)
}
}
```
```
...
...
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