I've just implemented Tetris using Jetpack Compose...
# compose
p
I've just implemented Tetris using Jetpack Compose. Check it out! https://t.co/198aK53XLB https://twitter.com/devpopalay/status/1316789701508911105?s=19
👍 1
❤️ 3
🔥 32
🤘 4
💪 5
🎉 10
v
Nice job. In the build.gradle(Module) the following: comment
Copy code
android{  ...                                                                    //    kotlinOptions {
//        jvmTarget = '1.8'
//        useIR = true
//    }                     ...}
and add
Copy code
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
    kotlinOptions {
        // Treat all Kotlin warnings as errors
        allWarningsAsErrors = true
        freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
        // Enable experimental coroutines APIs, including Flow
        freeCompilerArgs += '-Xopt-in=kotlin.Experimental'
        freeCompilerArgs += '-Xallow-jvm-ir-dependencies'

        // Set JVM target to 1.8
        jvmTarget = "1.8"                                                                          useIR= true
    }
}
and upgrade to compose 1.0.0-alpha05 (Color.Unset to Color.Unspecified, LaunchInComposition to LaunchedTask).