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

kritorをmasterブランチに設定する #310

Merged
merged 20 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
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