Commit Graph

409 Commits

Author SHA1 Message Date
Karlatemp
64f4f8c208
[build] Fix android binary validator 2023-07-11 02:22:54 +08:00
Karlatemp
1903d10333
[build] Fix android source set not depends on jvmBaseMain when using jvm android target 2023-07-11 01:35:19 +08:00
Him188
8ff64d4a7f
Remove native (#2700)
* Remove native target

* Add foojay-resolver-convention

* disable windows
2023-06-16 13:40:46 +01:00
ヒューマンワーキン
9a6b9cc900
[core/android] Fix wrong publication of androidRelease (#2699) 2023-06-15 22:59:54 +08:00
Him188
e89d245ca0
[build] Fix build sync when ENABLE_ANDROID_INSTRUMENTED_TESTS is false 2023-05-27 16:00:29 +01:00
Him188
363d1f7ece
Remove module-level opt-ins, add @OptIn explicit in use-sites;
added some opt-in markers on API which should have:

- `appendMiraiCodeTo`

Made API stable (otherwise they require too heavy opt-ins):
- MiraiConsoleImplementation$ConsoleLaunchOptions
- LowLevelApi
2023-05-06 11:04:31 +01:00
Karlatemp
96a772c5ca
Add mirai.enable.jvmtoolchain.special=false to disable jvmToolchain 2023-05-05 23:26:52 +08:00
Karlatemp
bc8ff18b07
[build] Reload local.properties when file modified 2023-05-05 23:26:12 +08: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
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
e4ff4d108e
[build] Use language version 1.9 and enable Context Receivers for tests 2023-05-01 22:56:33 +01:00
Him188
38a98bbd98
[build] Print "SonaType is not available" using Gradle logger 2023-05-01 11:08:53 +01:00
Karlatemp
0a60c5147e
[build] Use project lazy instead of global lazy 2023-04-05 13:10:47 +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
Him188
4238d00407
[build] Set Kotlin compiler back to 1.8.10
(Mistake by dca39f9b60)
2023-03-21 23:12:21 +00:00
Him188
dca39f9b60
[build] Resolve compiler warnings in buildSrc 2023-03-21 20:52:07 +00:00
Him188
c74e9d2858
[build] Make mirai-core AbstractTest public, and add dependsOnCoreJvmTest in buildSrc 2023-03-21 18:12:04 +00:00
Him188
427c37e649
[build] Update to Kotlin 1.8.10 2023-03-19 03:18:34 +00:00
Karlatemp
1d515b92c3
Prepare for 2.15.0 dev 2023-02-06 12:24:13 +08:00
sandtechnology
cc7f35519e
Update login protocol (#2433)
* Update login protocol
Still need testing

* Turn off debug option and make t547 null when failed

* Fix wrong convert method and improve tips

* Remove unused part and improve tips

* Fix typo

* Inline resultStatus for performance

* Rename pow to PoW, the name should be "Proof of Work"

* Add shadow and deps-test for kt-bignum

* Try to fix deps-test

* Fix deps-test again
2023-01-18 17:41:21 +08:00
Him188
0a60535d46
[console] Ignore APIs marked with @ExperimentalCommandDescriptors in ABI compatibility checks 2022-12-27 16:01:03 +00:00
Him188
c2611dda94
[idea] Change mirai-console-intellij version to 223-$project-172-1 2022-12-27 14:04:19 +00:00
Him188
eb0891fe24
[idea] Support IDEA 2022.3 2022-12-22 13:27:45 +00:00
Him188
4545489eef
[idea] Bump IDEA and kotlin-idea version to 2022.3 2022-12-22 13:27:44 +00:00
Karlatemp
a42efdb93d [core/logging] Dump logback to 1.3.4 2022-12-17 20:33:33 +00:00
Karlatemp
1844d19602 [core/logging] Bind slf4j to 2.x; Bump log4j to 2.19.0 2022-12-17 20:33:33 +00:00
Karlatemp
6c295723db [console/logging] slf4j binding support 2022-12-17 20:33:33 +00:00
Karlatemp
889a78e572
[publish] Delete GpgSigner 2022-11-29 15:27:37 +08:00
Karlatemp
4215ae4605
[publish] Create MiraiStageRepo 2022-11-29 15:24:46 +08:00
Him188
4b794feecb
[terminal] Use the more concise way to add and shadow dependencies 2022-11-27 19:58:28 +00:00
Him188
146d737b42
[build] Add a more concise way to add and shadow dependencies for JVM-only projects 2022-11-27 19:56:44 +00:00
Him188
6da947430e
[build] Set version to 2.14.0 2022-11-27 15:25:58 +00:00
Him188
2e2bb44797 [build] Use capitalized target name for shadow*Jar tasks 2022-11-27 15:25:18 +00:00
Him188
3360347ca2 [build] Fix dependency exclusion for builds when IDEA_ACTIVE 2022-11-27 15:25:18 +00:00
Him188
7830207b81 [build] Add more notes for relocation 2022-11-27 15:25:18 +00:00
Him188
e9c12eb4a8 [build+docs] Use mirai.native.binaries to enable binaries, update relevant docs. 2022-11-27 15:25:18 +00:00
Him188
9f7face6eb [build] Disable KotlinNativeLink by default. Can be enabled by -Dmirai.native.link=true 2022-11-27 15:25:18 +00:00
Him188
9540bc95c5 [gradle+deps] Adjust memory limit for test Gradle instances 2022-11-27 15:25:18 +00:00
Him188
5c4a3aeb38 [build] Support '~' in disabling build targets. e.g. '~others' 2022-11-27 15:25:18 +00:00
Him188
a6af7e82ea [build] Fix check-publishing actions 2022-11-27 15:25:18 +00:00
Him188
76cee371a9 [build] Register native binaries for mirai-core only to speed up builds 2022-11-27 15:25:18 +00:00
Him188
4c8a18edb7 [build] Fix shadow task dependencies and check-publishing actions 2022-11-27 15:25:18 +00:00