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
c68628f5
Commit
c68628f5
authored
Dec 23, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create mirai-core-qqandroid
parent
46b38899
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
117 additions
and
0 deletions
+117
-0
mirai-core-qqandroid/README.md
mirai-core-qqandroid/README.md
+5
-0
mirai-core-qqandroid/build.gradle.kts
mirai-core-qqandroid/build.gradle.kts
+111
-0
settings.gradle
settings.gradle
+1
-0
No files found.
mirai-core-qqandroid/README.md
0 → 100644
View file @
c68628f5
# mirai-core-qqandroid
Protocol support for QQ for Android for Mirai.
Not yet available to work.
\ No newline at end of file
mirai-core-qqandroid/build.gradle.kts
0 → 100644
View file @
c68628f5
@
file
:
Suppress
(
"UNUSED_VARIABLE"
)
plugins
{
kotlin
(
"multiplatform"
)
id
(
"kotlinx-atomicfu"
)
id
(
"com.android.library"
)
id
(
"kotlinx-serialization"
)
`maven-publish`
id
(
"com.jfrog.bintray"
)
version
"1.8.4-jetbrains-3"
// DO NOT CHANGE THIS VERSION UNLESS YOU WANT TO WASTE YOUR TIME
}
apply
(
from
=
rootProject
.
file
(
"gradle/publish.gradle"
))
val
kotlinVersion
:
String
by
rootProject
.
ext
val
atomicFuVersion
:
String
by
rootProject
.
ext
val
coroutinesVersion
:
String
by
rootProject
.
ext
val
kotlinXIoVersion
:
String
by
rootProject
.
ext
val
coroutinesIoVersion
:
String
by
rootProject
.
ext
val
klockVersion
:
String
by
rootProject
.
ext
val
ktorVersion
:
String
by
rootProject
.
ext
val
serializationVersion
:
String
by
rootProject
.
ext
fun
kotlinx
(
id
:
String
,
version
:
String
)
=
"org.jetbrains.kotlinx:kotlinx-$id:$version"
fun
ktor
(
id
:
String
,
version
:
String
)
=
"io.ktor:ktor-$id:$version"
description
=
"QQ protocol library"
version
=
rootProject
.
ext
.
get
(
"mirai_version"
)
!!
.
toString
()
kotlin
{
android
(
"android"
)
{
publishAllLibraryVariants
()
project
.
android
{
compileSdkVersion
(
29
)
defaultConfig
{
minSdkVersion
(
15
)
}
// sourceSets.filterIsInstance(com.android.build.gradle.api.AndroidSourceSet::class.java).forEach {
// it.manifest.srcFile("src/androidMain/res/AndroidManifest.xml")
// it.res.srcDirs(file("src/androidMain/res"))
// }
//(sourceSets["main"] as AndroidSourceSet).java.srcDirs(file("src/androidMain/kotlin"))
}
}
jvm
(
"jvm"
)
{
}
sourceSets
{
all
{
languageSettings
.
enableLanguageFeature
(
"InlineClasses"
)
languageSettings
.
useExperimentalAnnotation
(
"kotlin.Experimental"
)
dependencies
{
api
(
project
(
":mirai-core"
))
api
(
kotlin
(
"stdlib"
,
kotlinVersion
))
api
(
kotlin
(
"serialization"
,
kotlinVersion
))
api
(
"org.jetbrains.kotlinx:atomicfu:$atomicFuVersion"
)
api
(
kotlinx
(
"io"
,
kotlinXIoVersion
))
api
(
kotlinx
(
"coroutines-io"
,
coroutinesIoVersion
))
api
(
kotlinx
(
"coroutines-core"
,
coroutinesVersion
))
}
}
commonMain
{
dependencies
{
}
}
commonTest
{
dependencies
{
api
(
kotlin
(
"test-annotations-common"
))
api
(
kotlin
(
"test-common"
))
}
}
val
androidMain
by
getting
{
dependencies
{
}
}
val
androidTest
by
getting
{
dependencies
{
api
(
kotlin
(
"test"
,
kotlinVersion
))
api
(
kotlin
(
"test-junit"
,
kotlinVersion
))
api
(
kotlin
(
"test-annotations-common"
))
api
(
kotlin
(
"test-common"
))
}
}
val
jvmMain
by
getting
{
dependencies
{
}
}
val
jvmTest
by
getting
{
dependencies
{
api
(
kotlin
(
"test"
,
kotlinVersion
))
api
(
kotlin
(
"test-junit"
,
kotlinVersion
))
implementation
(
"org.pcap4j:pcap4j-distribution:1.8.2"
)
//runtimeOnly(files("build/classes/kotlin/jvm/test")) // classpath is not properly set by IDE
}
}
}
}
\ No newline at end of file
settings.gradle
View file @
c68628f5
...
...
@@ -23,6 +23,7 @@ rootProject.name = 'mirai'
include
(
':mirai-core'
)
include
(
':mirai-core-timpc'
)
include
(
':mirai-core-qqandroid'
)
include
(
':mirai-console'
)
//include(':mirai-api')
...
...
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