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
f3278c8a
Commit
f3278c8a
authored
Nov 08, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dependencies for mirai-debug
parent
3eca212b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
59 additions
and
41 deletions
+59
-41
mirai-console/build.gradle
mirai-console/build.gradle
+3
-2
mirai-core/build.gradle.kts
mirai-core/build.gradle.kts
+5
-2
mirai-debug/build.gradle
mirai-debug/build.gradle
+0
-36
mirai-debug/build.gradle.kts
mirai-debug/build.gradle.kts
+49
-0
mirai-debug/src/main/kotlin/DecryptTest.kt
mirai-debug/src/main/kotlin/DecryptTest.kt
+0
-0
mirai-debug/src/main/kotlin/HexDebuggerGui.kt
mirai-debug/src/main/kotlin/HexDebuggerGui.kt
+0
-0
mirai-debug/src/main/kotlin/PacketDebuger.kt
mirai-debug/src/main/kotlin/PacketDebuger.kt
+1
-0
settings.gradle
settings.gradle
+1
-1
No files found.
mirai-console/build.gradle
View file @
f3278c8a
...
...
@@ -2,6 +2,7 @@ apply plugin: "kotlin"
apply
plugin:
"java"
dependencies
{
api
project
(
":mirai-core"
)
runtime
files
(
"../../mirai-core/build/classes/kotlin/jvm/main"
)
// mpp targeting android limitation
api
project
(
':mirai-core'
)
implementation
files
(
'../../mirai-core/build/classes/kotlin/jvm/main'
)
// mpp targeting android limitation
}
mirai-core/build.gradle.kts
View file @
f3278c8a
...
...
@@ -66,7 +66,8 @@ kotlin {
sourceSets
[
"androidMain"
].
apply
{
dependencies
{
dependsOn
(
commonMain
)
implementation
(
"org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
)
api
(
"org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
)
implementation
(
"org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
)
...
...
@@ -79,12 +80,14 @@ kotlin {
sourceSets
[
"jvmMain"
].
apply
{
dependencies
{
dependsOn
(
commonMain
)
implementation
(
"org.jetbrains.kotlin:kotlin-stdlib-jdk8"
)
implementation
(
"org.jetbrains.kotlin:kotlin-stdlib-jdk7"
)
implementation
(
"org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
)
api
(
"org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
)
implementation
(
"io.ktor:ktor-client-core-jvm:$ktorVersion"
)
implementation
(
"org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinXIoVersion"
)
}
}
...
...
mirai-debug/build.gradle
deleted
100644 → 0
View file @
3eca212b
plugins
{
id
'application'
id
'org.openjfx.javafxplugin'
version
'0.0.8'
}
apply
plugin:
"kotlin"
apply
plugin:
"java"
javafx
{
version
=
"11"
modules
=
[
'javafx.controls'
]
}
dependencies
{
implementation
project
(
':mirai-core'
)
implementation
files
(
'./lib/jpcap.jar'
)
api
group:
'org.jetbrains.kotlin'
,
name:
'kotlin-stdlib-jdk8'
,
version:
kotlin_version
api
group:
'org.jetbrains.kotlinx'
,
name:
'kotlinx-io'
,
version:
kotlinxio_version
api
group:
'org.jetbrains.kotlin'
,
name:
'kotlin-reflect'
,
version:
kotlin_version
// https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-javafx
compile
group:
'org.jetbrains.kotlinx'
,
name:
'kotlinx-coroutines-javafx'
,
version:
'1.3.2'
implementation
'org.pcap4j:pcap4j-distribution:1.8.2'
implementation
'no.tornado:tornadofx:1.7.17'
}
mainClassName
=
'Application'
tasks
.
withType
(
JavaCompile
)
{
options
.
encoding
=
"UTF-8"
}
mirai-debug/build.gradle.kts
0 → 100644
View file @
f3278c8a
plugins
{
id
(
"application"
)
id
(
"org.openjfx.javafxplugin"
)
version
"0.0.8"
kotlin
(
"jvm"
)
java
}
javafx
{
version
=
"11"
modules
=
listOf
(
"javafx.controls"
)
//mainClassName = "Application"
}
val
kotlinVersion
=
rootProject
.
ext
[
"kotlin_version"
].
toString
()
val
atomicFuVersion
=
rootProject
.
ext
[
"atomicfu_version"
].
toString
()
val
coroutinesVersion
=
rootProject
.
ext
[
"coroutines_version"
].
toString
()
val
kotlinXIoVersion
=
rootProject
.
ext
[
"kotlinxio_version"
].
toString
()
val
coroutinesIoVersion
=
rootProject
.
ext
[
"coroutinesio_version"
].
toString
()
val
klockVersion
=
rootProject
.
ext
[
"klock_version"
].
toString
()
val
ktorVersion
=
rootProject
.
ext
[
"ktor_version"
].
toString
()
kotlin
{
sourceSets
{
all
{
languageSettings
.
enableLanguageFeature
(
"InlineClasses"
)
}
}
}
dependencies
{
api
(
project
(
":mirai-core"
))
runtimeOnly
(
files
(
"../../mirai-core/build/classes/kotlin/jvm/main"
))
// mpp targeting android limitation
api
(
"org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
)
implementation
(
"org.pcap4j:pcap4j-distribution:1.8.2"
)
implementation
(
"no.tornado:tornadofx:1.7.17"
)
compile
(
group
=
"org.jetbrains.kotlinx"
,
name
=
"kotlinx-coroutines-javafx"
,
version
=
"1.3.2"
)
implementation
(
files
(
"./lib/jpcap.jar"
))
implementation
(
"org.jetbrains.kotlin:kotlin-stdlib"
)
implementation
(
"org.jetbrains.kotlinx:atomicfu:$atomicFuVersion"
)
implementation
(
"org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinXIoVersion"
)
implementation
(
"org.jetbrains.kotlinx:kotlinx-io:$kotlinXIoVersion"
)
implementation
(
"org.jetbrains.kotlinx:kotlinx-coroutines-io:$coroutinesIoVersion"
)
implementation
(
"org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
)
}
\ No newline at end of file
mirai-debug/src/main/
java
/DecryptTest.kt
→
mirai-debug/src/main/
kotlin
/DecryptTest.kt
View file @
f3278c8a
File moved
mirai-debug/src/main/
java
/HexDebuggerGui.kt
→
mirai-debug/src/main/
kotlin
/HexDebuggerGui.kt
View file @
f3278c8a
File moved
mirai-debug/src/main/
java
/PacketDebuger.kt
→
mirai-debug/src/main/
kotlin
/PacketDebuger.kt
View file @
f3278c8a
...
...
@@ -6,6 +6,7 @@ import Main.localIp
import
Main.qq
import
Main.sessionKey
import
kotlinx.coroutines.*
import
kotlinx.coroutines.io.packet.ByteReadPacket
import
kotlinx.io.core.discardExact
import
kotlinx.io.core.readBytes
import
kotlinx.io.core.readUInt
...
...
settings.gradle
View file @
f3278c8a
...
...
@@ -8,7 +8,7 @@ include(':mirai-demos:mirai-demo-1')
include
(
':mirai-demos:mirai-demo-gentleman'
)
include
(
':mirai-demos'
)
include
(
':mirai-demos:mirai-demo-android'
)
//
include(':mirai-debug')
include
(
':mirai-debug'
)
project
(
':mirai-demos:mirai-demo-1'
).
projectDir
=
file
(
'mirai-demos/mirai-demo-1'
)
project
(
':mirai-demos:mirai-demo-gentleman'
).
projectDir
=
file
(
'mirai-demos/mirai-demo-gentleman'
)
project
(
':mirai-demos:mirai-demo-android'
).
projectDir
=
file
(
'mirai-demos/mirai-demo-android'
)
...
...
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