Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Kotlin/Native #855

Open
wants to merge 102 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
ab37ea3
Add native targets to KMP modules
DRSchlaubi Aug 5, 2023
537a01b
Disable CI for now
DRSchlaubi Aug 5, 2023
540aee2
Use hierarchies for all KMP targets
DRSchlaubi Aug 5, 2023
e019272
Add missing generated files
DRSchlaubi Aug 5, 2023
6d91b32
Add missing generated types
DRSchlaubi Aug 5, 2023
1ed902e
Fix tests
DRSchlaubi Aug 5, 2023
92ab453
Fix weird atomic issues on native
DRSchlaubi Aug 5, 2023
e8007c1
Implement Throwable.isTimeout() on native
DRSchlaubi Apr 15, 2023
850b2d8
Add publishing utility functions
DRSchlaubi Aug 5, 2023
cc1eca9
Fix darwin compilation
DRSchlaubi Aug 5, 2023
4c4d38a
Fix darwin compilation v2
DRSchlaubi Aug 5, 2023
7bca8ba
Enable signing if possible
DRSchlaubi Aug 5, 2023
bc672ad
Add simulator targets
DRSchlaubi Aug 6, 2023
1599a8e
Replace toInt() with convert()
DRSchlaubi Aug 6, 2023
996bd00
Rebase on main
DRSchlaubi Jan 24, 2024
e42dbea
Remove wrongly added classes
DRSchlaubi Jan 24, 2024
640141d
Linux support
Jan 24, 2024
9cbd7d7
Code cleanup
Jan 24, 2024
bb2acbe
Add voice support on native
Jan 25, 2024
45ef6fc
Use zError in inflater for proper error codes
Jan 25, 2024
855733c
Print error of inflateEnd
Jan 25, 2024
45bb300
Update to published cache library
Jan 29, 2024
ba758c9
Sadly the Ktor bug is not fixed yet
Jan 29, 2024
30f072c
Finalize snapshot builds
Jan 29, 2024
79dfd50
Ignore file based tests on Apple Simulators
Jan 29, 2024
dfaae75
Fix resolution of test files on Kotlin/Native
Jan 29, 2024
091f1a8
Replace withWasm() with withWatchos() as intended
Jan 29, 2024
f5f3d10
Fix build
Jan 29, 2024
7580dd7
Disable flaky tests
Jan 29, 2024
3ffd8c8
Fix stack trace recovery tests on Kotlin/Native
Jan 29, 2024
3dbc6dc
Fix build agian
Jan 29, 2024
7227398
Fix build again
Jan 29, 2024
3d145e6
Fix broken StackTraceRecovery test on Windows
Jan 29, 2024
1ca3ea6
Api dump
Jan 29, 2024
c584c6d
Fix invalid coordinates
Jan 29, 2024
0745018
Enable linuxArm64 & disable broken test
DRSchlaubi Jan 30, 2024
1f64eff
ci test
DRSchlaubi Jan 31, 2024
91b6de5
Remove workaround for ktor
Jan 31, 2024
70c6458
Update libs.versions.toml
DRSchlaubi Jan 31, 2024
9a270ea
Upgrade gradle-tools to 1.3.0
DRSchlaubi Feb 29, 2024
0066b28
Fix dokka jar not being generated
DRSchlaubi Mar 4, 2024
19c809f
Merge branch 'main' into feature/native
lukellmann Mar 4, 2024
1200bd6
Merge branch 'main' into feature/native
lukellmann Mar 4, 2024
3b3dbb5
Remove kotlin-logging-old version
lukellmann Mar 4, 2024
dd69ed9
Apply suggestions from code review
DRSchlaubi Mar 4, 2024
5869b9a
Suggestions
DRSchlaubi Mar 4, 2024
92d05e7
Replace kotlin-targets with Targets.kt
DRSchlaubi Mar 4, 2024
2e1f52e
Apply gradle plugin everywhere
DRSchlaubi Mar 5, 2024
3dfbe1c
Really apply gradle plugin everywhere
DRSchlaubi Mar 5, 2024
3d90b89
Update gradle-tools
DRSchlaubi Mar 5, 2024
7a1f87a
Configure targets compiler options in Targets.kt
DRSchlaubi Mar 10, 2024
0b3848c
Improve native inflater
DRSchlaubi Mar 11, 2024
0053079
Switch to OkHttp as http client on jvm
DRSchlaubi Mar 20, 2024
450323e
Revert "Switch to OkHttp as http client on jvm"
DRSchlaubi Mar 20, 2024
3944b8d
Improve initializing and ending z_stream
lukellmann Mar 25, 2024
89cf26e
Merge branch 'refs/heads/main' into feature/native
lukellmann Apr 4, 2024
0f4df33
More inflater improvements
lukellmann Apr 5, 2024
9baf82f
Fix duplicate jvm class name
lukellmann Apr 6, 2024
b8021fe
Update libsodium
DRSchlaubi Apr 9, 2024
35227fc
feat(voice)!: add support for node.js (#931)
viztea Apr 12, 2024
dc42c76
Add stubs for Windows
DRSchlaubi Apr 12, 2024
078dce7
Minor cleanup
DRSchlaubi Apr 12, 2024
6c49fbd
Update target chart
DRSchlaubi Apr 12, 2024
c6d35ee
Merge remote-tracking branch 'origin/main' into feature/native
DRSchlaubi Apr 12, 2024
644f5a7
Fix compilation
DRSchlaubi Apr 12, 2024
6ba4d9b
API dump
DRSchlaubi Apr 12, 2024
5e97756
Ignore empty string returned by zError
lukellmann Apr 17, 2024
ecf227a
Merge branch 'refs/heads/main' into feature/native
lukellmann Apr 17, 2024
b655c64
Fix compilation
lukellmann Apr 17, 2024
6a139e3
Prevent use after free and double free
lukellmann Apr 17, 2024
f5ce70a
Pedantic exception handling in init and close
lukellmann Apr 17, 2024
3500c53
Fix warnings again that were fixed in #936
lukellmann Apr 17, 2024
0796312
Actually build voice on Windows and fix KLib dump
lukellmann Apr 17, 2024
379c7f6
Fix file location warning
lukellmann Apr 17, 2024
26aa8db
Trailing , ❤️
lukellmann Apr 22, 2024
4dd54e7
decompressedLen can be a local variable
lukellmann Apr 22, 2024
e7583a2
Merge branch 'refs/heads/main' into feature/native
lukellmann Apr 22, 2024
c598338
Tweaks to native Inflater
lukellmann Apr 22, 2024
3a4c92a
Merge remote-tracking branch 'origin/main' into feature/native
DRSchlaubi Jul 2, 2024
fa06f85
Remaining upgrades
DRSchlaubi Jul 2, 2024
00d8b98
Add missing opt ins
DRSchlaubi Jul 2, 2024
0bb2550
Fix build
DRSchlaubi Jul 2, 2024
9d86e31
Fix build
DRSchlaubi Jul 2, 2024
fc4007a
Merge remote-tracking branch 'origin/main' into feature/native
DRSchlaubi Jul 18, 2024
4ea3199
Update to Ktor 3.0.0-beta-2
DRSchlaubi Jul 18, 2024
8c8b869
Merge remote-tracking branch 'origin/main' into feature/native
DRSchlaubi Sep 12, 2024
6cf5769
More fixes in regards to merge
DRSchlaubi Sep 12, 2024
a08068b
Remove duplicate -Xexpect-actual-classes
lukellmann Sep 12, 2024
10834bf
Imports, formatting
lukellmann Sep 12, 2024
3dd43e1
Remove unused version
lukellmann Sep 12, 2024
86ddabb
Remove unused -Xcontext-receivers in buildSrc
lukellmann Sep 12, 2024
d4d792c
Merge remote-tracking branch 'origin/main' into feature/native
DRSchlaubi Oct 21, 2024
1362153
Update to current state of main
DRSchlaubi Oct 21, 2024
1fdb05c
Merge branch 'main' into feature/native
DRSchlaubi Feb 1, 2025
1a96b25
Update dependencies
DRSchlaubi Feb 1, 2025
1e89839
Use ktor-network for all targets
DRSchlaubi Feb 1, 2025
7d65aa9
Update Gradle to 8.12
DRSchlaubi Feb 1, 2025
5dc199d
Update Gradle to 8.12.1
DRSchlaubi Feb 1, 2025
b43ff98
Upgrade yarn.lock
DRSchlaubi Feb 1, 2025
dee7dd8
Fix build
DRSchlaubi Feb 1, 2025
e15c143
API dump
DRSchlaubi Feb 1, 2025
209fefc
Use Ktor release build
DRSchlaubi Feb 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
API dump
DRSchlaubi committed Apr 12, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
kylekurz Kyle Kurz
commit 6ba4d9be233c6e389f506bc7b3e875ab37dcb170
2 changes: 1 addition & 1 deletion common/api/common.klib.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Klib ABI Dump
// Targets: [js]
// Targets: [iosArm64, iosSimulatorArm64, iosX64, js, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm64, watchosSimulatorArm64]
// Rendering settings:
// - Signature version: 2
// - Show manifest properties: true
9 changes: 9 additions & 0 deletions core-voice/api/core-voice.klib.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Klib ABI Dump
// Targets: [iosArm64, iosSimulatorArm64, iosX64, js, macosArm64, macosX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm64, watchosSimulatorArm64]
// Rendering settings:
// - Signature version: 2
// - Show manifest properties: true
// - Show declarations: true

// Library unique name: <kord:core-voice>
final suspend fun (dev.kord.core.behavior.channel/BaseVoiceChannelBehavior).dev.kord.core.behavior.channel/connect(kotlin/Function1<dev.kord.voice/VoiceConnectionBuilder, kotlin/Unit>): dev.kord.voice/VoiceConnection // dev.kord.core.behavior.channel/connect|connect@dev.kord.core.behavior.channel.BaseVoiceChannelBehavior(kotlin.Function1<dev.kord.voice.VoiceConnectionBuilder,kotlin.Unit>){}[0]
4 changes: 1 addition & 3 deletions core/api/core.klib.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Klib ABI Dump
// Targets: [js]
// Targets: [iosArm64, iosSimulatorArm64, iosX64, js, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm64, watchosSimulatorArm64]
// Rendering settings:
// - Signature version: 2
// - Show manifest properties: true
@@ -9632,8 +9632,6 @@ final val dev.kord.core.cache.data/id // dev.kord.core.cache.data/id|@dev.kord.c
final fun (dev.kord.core.cache.data/VoiceStateData).<get-id>(): kotlin/String // dev.kord.core.cache.data/id.<get-id>|<get-id>@dev.kord.core.cache.data.VoiceStateData(){}[0]
final val dev.kord.core.entity/effectiveName // dev.kord.core.entity/effectiveName|@dev.kord.core.entity.User{}effectiveName[0]
final fun (dev.kord.core.entity/User).<get-effectiveName>(): kotlin/String // dev.kord.core.entity/effectiveName.<get-effectiveName>|<get-effectiveName>@dev.kord.core.entity.User(){}[0]
final val dev.kord.core/kordLogger // dev.kord.core/kordLogger|{}kordLogger[0]
final fun <get-kordLogger>(): mu/KLogger // dev.kord.core/kordLogger.<get-kordLogger>|<get-kordLogger>(){}[0]
open class dev.kord.core.entity.interaction/UserOptionValue : dev.kord.core.entity.interaction/ResolvableOptionValue<dev.kord.core.entity/User> { // dev.kord.core.entity.interaction/UserOptionValue|null[0]
constructor <init>(dev.kord.common.entity/Snowflake, kotlin/Boolean, dev.kord.core.entity/User?) // dev.kord.core.entity.interaction/UserOptionValue.<init>|<init>(dev.kord.common.entity.Snowflake;kotlin.Boolean;dev.kord.core.entity.User?){}[0]
open fun toString(): kotlin/String // dev.kord.core.entity.interaction/UserOptionValue.toString|toString(){}[0]
5 changes: 1 addition & 4 deletions gateway/api/gateway.klib.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Klib ABI Dump
// Targets: [js]
// Targets: [iosArm64, iosSimulatorArm64, iosX64, js, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm64, watchosSimulatorArm64]
// Rendering settings:
// - Signature version: 2
// - Show manifest properties: true
@@ -1740,7 +1740,6 @@ final enum class dev.kord.gateway/OpCode : kotlin/Enum<dev.kord.gateway/OpCode>
}
final fun (dev.kord.gateway/Gateway).dev.kord.gateway/requestGuildMembers(dev.kord.common.entity/Snowflake, kotlin/Function1<dev.kord.gateway.builder/RequestGuildMembersBuilder, kotlin/Unit> =...): kotlinx.coroutines.flow/Flow<dev.kord.gateway/GuildMembersChunk> // dev.kord.gateway/requestGuildMembers|requestGuildMembers@dev.kord.gateway.Gateway(dev.kord.common.entity.Snowflake;kotlin.Function1<dev.kord.gateway.builder.RequestGuildMembersBuilder,kotlin.Unit>){}[0]
final fun (dev.kord.gateway/Gateway).dev.kord.gateway/requestGuildMembers(dev.kord.gateway/RequestGuildMembers): kotlinx.coroutines.flow/Flow<dev.kord.gateway/GuildMembersChunk> // dev.kord.gateway/requestGuildMembers|requestGuildMembers@dev.kord.gateway.Gateway(dev.kord.gateway.RequestGuildMembers){}[0]
final fun (mu/KLogger).dev.kord.gateway/error(kotlin/Throwable) // dev.kord.gateway/error|error@mu.KLogger(kotlin.Throwable){}[0]
final fun dev.kord.gateway.ratelimit/IdentifyRateLimiter(kotlin/Int, kotlinx.coroutines/CoroutineDispatcher =...): dev.kord.gateway.ratelimit/IdentifyRateLimiter // dev.kord.gateway.ratelimit/IdentifyRateLimiter|IdentifyRateLimiter(kotlin.Int;kotlinx.coroutines.CoroutineDispatcher){}[0]
final fun dev.kord.gateway/Intents(kotlin.collections/Iterable<dev.kord.gateway/Intent>): dev.kord.gateway/Intents // dev.kord.gateway/Intents|Intents(kotlin.collections.Iterable<dev.kord.gateway.Intent>){}[0]
final fun dev.kord.gateway/Intents(kotlin.collections/Iterable<dev.kord.gateway/Intents>): dev.kord.gateway/Intents // dev.kord.gateway/Intents|Intents(kotlin.collections.Iterable<dev.kord.gateway.Intents>){}[0]
@@ -1763,8 +1762,6 @@ final val dev.kord.gateway/NON_PRIVILEGED // dev.kord.gateway/NON_PRIVILEGED|@de
final fun (dev.kord.gateway/Intents.Companion).<get-NON_PRIVILEGED>(): dev.kord.gateway/Intents // dev.kord.gateway/NON_PRIVILEGED.<get-NON_PRIVILEGED>|<get-NON_PRIVILEGED>@dev.kord.gateway.Intents.Companion(){}[0]
final val dev.kord.gateway/PRIVILEGED // dev.kord.gateway/PRIVILEGED|<get-PRIVILEGED>@dev.kord.gateway.Intents.Companion(){}[0]
final fun (dev.kord.gateway/Intents.Companion).<get-PRIVILEGED>(): dev.kord.gateway/Intents // dev.kord.gateway/PRIVILEGED.<get-PRIVILEGED>|<get-PRIVILEGED>@dev.kord.gateway.Intents.Companion(){}[0]
final val dev.kord.gateway/gatewayOnLogger // dev.kord.gateway/gatewayOnLogger|{}gatewayOnLogger[0]
final fun <get-gatewayOnLogger>(): mu/KLogger // dev.kord.gateway/gatewayOnLogger.<get-gatewayOnLogger>|<get-gatewayOnLogger>(){}[0]
open annotation class dev.kord.gateway/PrivilegedIntent : kotlin/Annotation { // dev.kord.gateway/PrivilegedIntent|null[0]
constructor <init>() // dev.kord.gateway/PrivilegedIntent.<init>|<init>(){}[0]
}
4 changes: 2 additions & 2 deletions rest/api/rest.klib.api
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Klib ABI Dump
// Targets: [js]
// Targets: [iosArm64, iosSimulatorArm64, iosX64, js, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, watchosArm64, watchosSimulatorArm64]
// Rendering settings:
// - Signature version: 2
// - Show manifest properties: true
@@ -769,8 +769,8 @@ final class dev.kord.rest.builder.channel/MediaChannelCreateBuilder : dev.kord.r
}
final class dev.kord.rest.builder.channel/MediaChannelModifyBuilder : dev.kord.rest.builder.channel/PermissionOverwritesModifyBuilder, dev.kord.rest.builder/AuditRequestBuilder<dev.kord.rest.json.request/ChannelModifyPatchRequest> { // dev.kord.rest.builder.channel/MediaChannelModifyBuilder|null[0]
constructor <init>() // dev.kord.rest.builder.channel/MediaChannelModifyBuilder.<init>|<init>(){}[0]
final fun tag(kotlin/String, kotlin/Function1<dev.kord.rest.builder.channel/ForumTagBuilder, kotlin/Unit> =...) // dev.kord.rest.builder.channel/MediaChannelModifyBuilder.tag|tag(kotlin.String;kotlin.Function1<dev.kord.rest.builder.channel.ForumTagBuilder,kotlin.Unit>){}[0]
final fun toRequest(): dev.kord.rest.json.request/ChannelModifyPatchRequest // dev.kord.rest.builder.channel/MediaChannelModifyBuilder.toRequest|toRequest(){}[0]
final inline fun tag(kotlin/String, kotlin/Function1<dev.kord.rest.builder.channel/ForumTagBuilder, kotlin/Unit> =...) // dev.kord.rest.builder.channel/MediaChannelModifyBuilder.tag|tag(kotlin.String;kotlin.Function1<dev.kord.rest.builder.channel.ForumTagBuilder,kotlin.Unit>){}[0]
final var availableTags // dev.kord.rest.builder.channel/MediaChannelModifyBuilder.availableTags|{}availableTags[0]
final fun <get-availableTags>(): kotlin.collections/MutableList<dev.kord.rest.json.request/ForumTagRequest>? // dev.kord.rest.builder.channel/MediaChannelModifyBuilder.availableTags.<get-availableTags>|<get-availableTags>(){}[0]
final fun <set-availableTags>(kotlin.collections/MutableList<dev.kord.rest.json.request/ForumTagRequest>?) // dev.kord.rest.builder.channel/MediaChannelModifyBuilder.availableTags.<set-availableTags>|<set-availableTags>(kotlin.collections.MutableList<dev.kord.rest.json.request.ForumTagRequest>?){}[0]
2 changes: 1 addition & 1 deletion voice/api/voice.api
Original file line number Diff line number Diff line change
@@ -1257,7 +1257,7 @@ public final class dev/kord/voice/udp/VoiceUdpSocketKt {
public static final fun recv (Ldev/kord/voice/udp/VoiceUdpSocket;Lio/ktor/network/sockets/InetSocketAddress;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

public final class dev/kord/voice/udp/VoiceUdpSocket_nonJsKt {
public final class dev/kord/voice/udp/VoiceUdpSocket_ktorKt {
public static final fun getGlobalVoiceUdpSocket ()Ldev/kord/voice/udp/VoiceUdpSocket;
}

Loading