DroidKaigi / conference-app-2024

The Official Conference App for DroidKaigi 2024
Apache License 2.0
453 stars 201 forks source link

[Suggestion] Suppresses KMP "actual" and "expect" class warnings #1008

Closed naoele closed 1 month ago

naoele commented 1 month ago

Overview

Although it may be a low priority, the official Kotlin documentation has a setting to suppress warnings for the "actual" and "expect" classes.

Screenshot 2024-09-08 20 27 00

Problem description:

'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573

https://kotlinlang.org/docs/multiplatform-expect-actual.html#expected-and-actual-classes

kotlin {
    compilerOptions {
        // Common compiler options applied to all Kotlin source sets
        freeCompilerArgs.add("-Xexpect-actual-classes")
    }
}

Can we apply this to this project?

naoele commented 1 month ago

I will do this task :raising_hand: