This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExportCompilerTest { | |
@Test | |
fun classWithOneVal() { | |
assertCompilationOutput( | |
""" | |
package foo.bar | |
import deezer.kmp.Export | |
@Export | |
class BasicClass(val id: String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.database.sqlite.SQLiteAbortException | |
import android.database.sqlite.SQLiteAccessPermException | |
import android.database.sqlite.SQLiteBindOrColumnIndexOutOfRangeException | |
import android.database.sqlite.SQLiteBlobTooBigException | |
import android.database.sqlite.SQLiteCantOpenDatabaseException | |
import android.database.sqlite.SQLiteConstraintException | |
import android.database.sqlite.SQLiteDatabaseCorruptException | |
import android.database.sqlite.SQLiteDatabaseLockedException | |
import android.database.sqlite.SQLiteDatatypeMismatchException |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document$.subscribe(() => { | |
// this executes after each navigation | |
alert(25) | |
}) | |
function greg(){ | |
alert(33); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:OptIn(ExperimentalSerializationApi::class) // buildSerialDescriptor requires this annotation | |
package com.sumup.oms.pos.configuration | |
import kotlinx.serialization.Contextual | |
import kotlinx.serialization.ExperimentalSerializationApi | |
import kotlinx.serialization.InternalSerializationApi | |
import kotlinx.serialization.Polymorphic | |
import kotlinx.serialization.Serializable | |
import kotlinx.serialization.builtins.serializer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Group(val matches: Boolean, val testedVersions: MutableList<String>) { | |
val range: String get() = "[${testedVersions.first()} - ${testedVersions.last()}]" | |
} | |
fun main() { | |
val major = 2 | |
val minor = 62 | |
val patch = 103 | |
println("Input version: $major.$minor.$patch") |
OlderNewer