Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
kritorをmasterブランチに設定する
Browse files Browse the repository at this point in the history
kritorをmasterブランチに設定する
  • Loading branch information
fuqiuluo committed Mar 21, 2024
1 parent 7782feb commit 680317d
Show file tree
Hide file tree
Showing 271 changed files with 295 additions and 25,693 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "kritor"]
path = kritor
url = https://github.com/KarinJS/kritor
20 changes: 2 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,8 @@
## 兼容|迁移|替代 说明

- 一键移植:本项目基于 go-cqhttp 的文档进行开发实现。
- 平行部署:可多平台部署,未来将会支持 Docker 部署的教程。

## 相关项目

<table>
<tr>
<td><a href="https://github.com/LagrangeDev/Lagrange.Core">Lagrange.Core</a></td>
<td>NTQQ 的协议实现</td>
</tr>
<tr>
<td><a href="https://github.com/whitechi73/OpenShamrock">OpenShamrock</a></td>
<td>基于 Xposed 实现 OneBot 标准的机器人框架(👈你在这里</td>
</tr>
<tr>
<td><a href="https://github.com/chrononeko/chronocat">Chronocat</a></td>
<td>基于 Electron 的、模块化的 Satori 框架</td>
</tr>
</table>
- 平行部署:可多平台部署,未来将会支持 Docker 部署的教程。
- 替代方案:[Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core)

## 权限声明

Expand Down
2 changes: 1 addition & 1 deletion annotations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ java {
}

dependencies {
implementation(DEPENDENCY_PROTOBUF)
//implementation(DEPENDENCY_PROTOBUF)
implementation(kotlinx("serialization-protobuf", "1.6.2"))
}
11 changes: 11 additions & 0 deletions annotations/src/main/java/kritor/service/Grpc.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package kritor.service

import kotlin.reflect.KClass

@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.FUNCTION)
annotation class Grpc(
val serviceName: String,
val funcName: String,

)
2 changes: 2 additions & 0 deletions annotations/src/main/java/moe/fuqiuluo/symbols/Protobuf.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import kotlinx.serialization.protobuf.ProtoBuf

import kotlin.reflect.KClass

val EMPTY_BYTE_ARRAY = ByteArray(0)

interface Protobuf<T: Protobuf<T>>

inline fun <reified T: Protobuf<T>> ByteArray.decodeProtobuf(to: KClass<T>? = null): T {
Expand Down
10 changes: 2 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ android {
minSdk = 27
targetSdk = 34
versionCode = getVersionCode()
versionName = "1.0.9" + ".r${getGitCommitCount()}." + getVersionName()
versionName = "1.1.0" + ".r${getGitCommitCount()}." + getVersionName()

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -201,14 +201,8 @@ dependencies {
implementation("io.coil-kt:coil-compose:2.4.0")

implementation(kotlinx("io-jvm", "0.1.16"))
implementation(ktor("server", "core"))
implementation(ktor("server", "host-common"))
implementation(ktor("server", "status-pages"))
implementation(ktor("server", "netty"))
implementation(ktor("server", "content-negotiation"))
implementation(ktor("client", "core"))
implementation(ktor("client", "content-negotiation"))
implementation(ktor("client", "cio"))
implementation(ktor("client", "okhttp"))
implementation(ktor("serialization", "kotlinx-json"))

implementation(project(":xposed"))
Expand Down
1 change: 0 additions & 1 deletion app/src/main/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ add_library(${CMAKE_PROJECT_NAME} SHARED
# List C/C++ source files with relative paths to this CMakeLists.txt.
${SRC_DIR}
md5.cpp
cqcode.cpp
silk.cpp
message.cpp
shamrock.cpp)
Expand Down
138 changes: 0 additions & 138 deletions app/src/main/cpp/cqcode.cpp

This file was deleted.

87 changes: 0 additions & 87 deletions app/src/main/cpp/group_honor.cpp

This file was deleted.

20 changes: 0 additions & 20 deletions app/src/main/cpp/interface/cqcode.h

This file was deleted.

Loading

0 comments on commit 680317d

Please sign in to comment.