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 78 commits into
base: main
Choose a base branch
from
Open

Support Kotlin/Native #855

wants to merge 78 commits into from

Conversation

DRSchlaubi
Copy link
Member

@DRSchlaubi DRSchlaubi commented Aug 5, 2023

This PR aims at implementing Kotlin/Native for the following platforms:

  • linuxX64
  • linuxArm64
  • mingwX64
  • macosArm64
  • macosX64
  • iosArm64
  • iosX64
  • iosSimulatorArm64
  • watchosX64
  • watchosArm64
  • watchosSimulatorArm64
  • tvosX64
  • tvosArm64
  • tvosSimulatorArm64

Experimental Snapshot

There currently is an experimental snapshot on OSSRH under the feature-native-SNAPSHOT for you to try

An example implementation can be found here

Please note that you need to configure our custom repository:

Gradle Configuration
repositories {
    // Required for custom Ktor build
    maven("https://europe-west3-maven.pkg.dev/mik-music/kord")
    maven("https://oss.sonatype.org/content/repositories/snapshots/")
    mavenCentral()
}

kotlin {
  sourceSets {
    commonMain {
      dependencies {
        implementation("dev.kord:kord-core:feature-native-SNAPSHOT")
      }
    }
  }
}
  

Current limitations

Checklist

Blocked by

@lukellmann
Copy link
Member

can't wait to run my bot on an apple watch

@lukellmann
Copy link
Member

what's this commit? seems to be related to #836 but that is already on main.

@DRSchlaubi
Copy link
Member Author

When I compiled these files were generated

@DRSchlaubi
Copy link
Member Author

can't wait to run my bot on an apple watch

Need to buy one again for this, or ask @melike2d

@viztea
Copy link
Contributor

viztea commented Aug 6, 2023

can't wait to run my bot on an apple watch

Need to buy one again for this, or ask @melike2d

can't believe you think i have enough money for that

@lukellmann
Copy link
Member

When I compiled these files were generated

the one in the build dir, sure, but the other ones?

@DRSchlaubi DRSchlaubi linked an issue Aug 6, 2023 that may be closed by this pull request
8 tasks
lukellmann added a commit that referenced this pull request Sep 3, 2023
The use of value classes for the Reset class has already caused issues
implementing #855. However, it was isolated to native platforms.
Unfortunately, this behavior will become a compiler error soon, so we
need to change it. This can be achieved by simply using the backing
Instant instead of Reset with AtomicRef.

Related Issues:
#855
#69
Kotlin/kotlinx-atomicfu#291
https://youtrack.jetbrains.com/issue/KT-61584

Co-authored-by: lukellmann <lukellmann@gmail.com>
@DRSchlaubi DRSchlaubi marked this pull request as ready for review January 30, 2024 18:55
@DRSchlaubi DRSchlaubi changed the title Add support for Kotlin/Native Support Kotlin/Native Jan 30, 2024
This was referenced Feb 6, 2024
@DRSchlaubi
Copy link
Member Author

A workaround for the blocking teamcity bug has been implemented, snapshots are now published to feature-native-SNAPSHOT

lukellmann and others added 8 commits April 4, 2024 21:27
# Conflicts:
#	buildSrc/src/main/kotlin/kord-multiplatform-module.gradle.kts
#	gradle/libs.versions.toml
#	voice/src/commonMain/kotlin/gateway/DefaultVoiceGatewayBuilder.kt
Co-authored-by: Michael Rittmeister <michael@rittmeister.in>
* chore: configure gradle for js voice

* fix(samples/voice): support js

* fix(voice/non-jvm): use correct nonce length

* feat(voice): support js

* chore(voice): api dump

* chore: requested changes

* fix(gradle): use correct kotlin-node version

* feat(voice): configurable dispatcher

* chore: api dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support kord-voice on Kotlin/JS and Windows
3 participants