Commit Graph

8399 Commits

Author SHA1 Message Date
Him188
36d90c57fe [core] Add UtilsLogger in mirai-core-utils module to bridge logging,
also added delegations in mirai-core and mirai-core-api.
2023-05-04 16:36:28 +01:00
Him188
26ea98db6a [core] Extract SafeBotAuthSession implementation from AuthControl 2023-05-04 16:36:28 +01:00
Him188
0c24053198 [core] AuthControl: require explicit .start() instead of launching job in constructor 2023-05-04 16:36:28 +01:00
Him188
10e731f260 [core] CoroutineOnDemandValueScope: remove CreatingProducer state 2023-05-04 16:36:28 +01:00
Him188
d263a9ee29
[core] MiraiProtocolInternal: Use setters 2023-05-02 21:41:22 +01:00
Him188
64cfab6f0a [build] Publish android artifacts 2023-05-02 16:17:48 +01:00
Him188
84d03c9a71 [core] Set minimum Android API level to 21 2023-05-02 16:17:48 +01:00
Him188
193fedfc24 [docs] Improve docs for building the project and add instructions for building Android 2023-05-02 16:17:48 +01:00
Him188
2ef89d2b3f [build] Do not apply Android-relevant plugins if Android target is not enabled 2023-05-02 16:17:48 +01:00
Him188
438b58c717 [build] Binary validator: support Android 2023-05-02 16:17:48 +01:00
Him188
178ca6c1b5 [build] Rewrite shadow relocation; fix dependency graph issues with Android, and improve build performance:
- Generate relocated JARs with classifier `relocated`, instead of replacing the output of `:jar` task.

- Create `JvmRelocated` publications to publish relocated artifacts.

- Patch Kotlin Metadata and Maven Pom for the added publication.

- Updated deps test to be more strict
2023-05-02 16:17:48 +01:00
Him188
40d4957837 [core/android] Implement mirai-core tests for Android target with AndroidSDK 2023-05-02 16:17:48 +01:00
Him188
4ed551027a [build] Support both configuring Android targets by Android SDK or JVM
- try to fix sdk dir when android is desired
- Do not printAndroidNotInstalled multiple times
2023-05-02 16:17:48 +01:00
Him188
2cf97a181f [build] Use JUnit5 on Android 2023-05-02 16:17:48 +01:00
Him188
a2d50ec03a [build] Relocate ktor only for jvm, not for Android 2023-05-02 16:17:48 +01:00
Him188
164f621427 [build] Fully support Android target; Update to Gradle 8.0 2023-05-02 16:17:48 +01:00
Him188
fc549d380f
[core] Make properties mutable in MiraiProtocolInternal 2023-05-01 23:11:46 +01:00
Him188
a988d442e2
[core] Add PacketReplier DSL for core tests 2023-05-01 22:56:34 +01:00
Him188
e4ff4d108e
[build] Use language version 1.9 and enable Context Receivers for tests 2023-05-01 22:56:33 +01:00
Him188
7a5cbbcb88
[core] Add kotlinx-coroutines-debug in mirai-core-utils 2023-05-01 22:52:29 +01:00
Him188
0ea5503f3b
[core/testFramework] Add assertNoCoroutineSuspension 2023-05-01 22:52:11 +01:00
Him188
9995a2136c
[build] Publishing: remove install OpenSSL for macOS 2023-05-01 11:09:44 +01:00
Him188
c3a9511783
[core] Remove redundant AtomicFU runtime dependency from mirai-core-utils 2023-05-01 11:09:40 +01:00
Him188
f469e889d2
[build] Enable atomicfu compiler plugin for mirai-core and mirai-core-api, but disable transformations for JVM, #2315 2023-05-01 11:09:28 +01:00
Him188
38a98bbd98
[build] Print "SonaType is not available" using Gradle logger 2023-05-01 11:08:53 +01:00
Him188
1166f3d77a
[core] Make Services.registerAsOverride public to be used in tests 2023-05-01 11:08:26 +01:00
Him188
6798de8093
[core] Make ImageUploadedChecker not fun interface since Kotlin doesn't support suspend fun in that 2023-05-01 11:08:21 +01:00
Him188
111236e0be
[build] Create "local.properties" on build if not exists 2023-05-01 11:08:12 +01:00
Him188
d2d2f4844d
[core] Fix minor compiler warnings
- unused variables
- requires opt-in
2023-05-01 11:08:04 +01:00
Him188
3cbc253121
[core] Handle a nullable case in readResource from Java 2023-05-01 11:08:04 +01:00
Him188
959224cad2
[core] Throw ISE when "user.dir" is not available, instead of throwing NPE 2023-05-01 11:08:04 +01:00
Him188
cd18eb857d
[gradle] Suppress deprecation on compileKotlinTask since we still need to support older Kotlin versions 2023-05-01 11:08:03 +01:00
Samarium
f0bdd18d26
[idea] feat: provide an option for whether to use the proxy repo (#2636)
* feat(idea): set proxy repository for gradle plugins

* feat(idea): provide an option for whether to use the proxy repo

* chore: update copyright

* fix: rename the message key
2023-04-24 15:22:38 +01:00
Him188
b4bd1e74cf
[build] Use "kotlinx-datetime-jvm" for ci-release-helper to overcome missing dependency issue 2023-04-22 12:57:31 +01:00
Samarium
a397ee9959
[idea] feat: set jvmTarget version explicitly (#2631)
feat(idea): set jvmTarget version explicitly
2023-04-18 10:08:32 +01:00
Him188
578d1a9d48
[core] CoroutineOnDemandValueScope: fix exception message when emit/receive while producer is already finished 2023-04-16 10:31:03 +01:00
Him188
a1d8d744d0
[core] CoroutineOnDemandValueScope: fix emit when state is ProducerReady 2023-04-16 10:31:03 +01:00
Him188
1b122190f1
[core] CoroutineOnDemandValueScope: ignore multiple finishImpl 2023-04-16 10:31:03 +01:00
Karlatemp
e76cdfb5df
[console] Skip downloading mirai-console-compiler-annotations 2023-04-15 23:35:43 +08:00
Samarium
f28a1a0f0d
[idea] feat: generate gradle-wrapper.properties and src/test directory (#2622)
feat: generate gradle-wrapper.properties and src/test directory
2023-04-15 15:01:10 +01:00
Him188
30b3472460
[build] Fix macOS CI, use pre-installed OpenSSL 2023-04-15 14:58:57 +01:00
Him188
5297beeaec
[build] Fix .editorconfig for new IJ 2023-04-15 14:58:57 +01:00
cssxsh
71e9de3608
[core] 支持获取群公告图片 URL (#2619)
* fix: announcement protocol

* add: api dump
2023-04-13 11:57:04 +01:00
cssxsh
50d37c484a
[core] Fix group active protocol (#2610) 2023-04-05 11:06:16 +01:00
Karlatemp
0a60c5147e
[build] Use project lazy instead of global lazy 2023-04-05 13:10:47 +08:00
Him188
460275fc0f
[core] Allow using helper to use TxCaptchaHelper in CLI LoginSolver 2023-04-04 21:15:27 +01:00
Him188
8b84bd0aa3
[core] Add 'file://' to file paths in logs in LoginSolver 2023-04-04 21:08:31 +01:00
Him188
c29fe9d244
[core] Remove useless limitation on QR query, fix QR login for overseas users 2023-04-04 21:08:31 +01:00
Karlatemp
ecbb9b2672
[core/logging] Drop control characters in message log 2023-04-04 17:02:25 +08:00
Him188
bddee1fd20
[idea] Update to IDEA 2023.1, plugin version 231-2.15.0-182-1
close #2606
2023-04-01 18:26:17 +01:00