saket
09/01/2019, 8:16 PMsaket
09/01/2019, 10:54 PMimplementation project(':featureA')
implementation project(':featureB')
JoakimForslund
09/02/2019, 8:40 AMimplementation(project(":SharedGlobals"))
?cafonsomota
09/02/2019, 4:49 PMoverride fun insertItem(city_name: String, country: String?) {
driver.execute(117,
"""INSERT OR FAIL INTO locationModel(city_name, country) VALUES (?1, ?2)""", 2) {
bindString(1, city_name)
bindString(2, country)
}
notifyQueries(database.locationModelQueries.selectAll)
}
and error:
e: ...DbImpl.kt: (163, 23): Type mismatch: inferred type is MutableList<Query<*>> but Int was expected
e: ...DbImpl.kt: (163, 62): No value passed for parameter 'queryList'
and the .sq example that I’m trying to run is from a sample:
CREATE TABLE locationModel (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
city_name TEXT NOT NULL,
country TEXT
);
insertItem:
INSERT OR FAIL INTO locationModel(city_name, country) VALUES (?, ?);
selectAll:
SELECT *
FROM locationModel;
deleteItem:
DELETE FROM locationModel WHERE city_name = ?;
any ideia what I might be doing wrong?darkmoon_uk
09/03/2019, 2:30 AMSam Garfinkel
09/03/2019, 7:51 PMMichael Bryant
09/03/2019, 9:41 PMkotlin-multiplatform
gradle plugin to compile a k/n app into iOS, android, and javascript. i just tried to update from 1.3.40
to 1.3.50
and my javascript build broke, since the compileKotlinJs
and compileTestKotlinJs
tasks stopped producing a package.json
file. is there a way to get this file to be produced again? i can tell from the 1.3.50 release notes that the “structure and naming of generated artifacts” for JS has changed, but I can’t find these new artifacts anywhereJurriaan Mous
09/04/2019, 9:19 AMCannot access 'Class': it is internal in 'package.name'
.Kris Wong
09/06/2019, 1:43 PMlouiscad
09/06/2019, 3:42 PMwuseal
09/07/2019, 1:36 PMimplementation
in dependencies config?
https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#building-final-native-binariesegorand
09/08/2019, 1:06 PMJustin
09/08/2019, 9:09 PMlouiscad
09/09/2019, 9:06 AMKonstantin Petrukhnov
09/10/2019, 10:17 AMDominaezzz
09/10/2019, 11:44 AM*.module
files?Kris Wong
09/10/2019, 1:24 PMDarmaheev
09/11/2019, 7:52 AMimport android.content.Context
import com.squareup.sqldelight.android.AndroidSqliteDriver
lateinit var appContext: Context
actual fun createDb(): MobileDatabase {
val driver = AndroidSqliteDriver(MobileDatabase.Schema, appContext, "mobileDatabase.db")
return MobileDatabase(driver)
}
My question is how to drag classes from SDKs into multiplatform libraries.
My build.gradle: plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.50'
id 'kotlinx-serialization' version '1.3.50'
id 'net.researchgate.release' version '2.6.0'
id 'com.squareup.sqldelight' version '1.2.0'
id 'com.android.library' version '3.5.0'
}
repositories {
mavenLocal()
google()
mavenCentral()
}
group '***'
version = "$version"
apply plugin: "com.squareup.sqldelight"
sqldelight {
MobileDatabase{
packageName = "***"
sourceFolders = ["sqldelight"]
schemaOutputDirectory = file("src/main/sqldelight/migrations")
}
}
apply plugin: 'maven-publish'
kotlin {
def coroutine_version = "1.3.0"
def ktor_version = "1.2.4"
def serializer_version = "0.12.0"
def sqldelight_version = "1.2.0"
sourceSets {
commonMain {
dependencies {
api 'org.jetbrains.kotlin:kotlin-stdlib-common'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serializer_version"
implementation "io.ktor:ktor-client-core:$ktor_version"
implementation "io.ktor:ktor-client-logging:$ktor_version"
implementation "com.squareup.sqldelight:runtime:$sqldelight_version"
}
}
androidMain {
dependencies {
api 'org.jetbrains.kotlin:kotlin-stdlib'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializer_version"
implementation "io.ktor:ktor-client-android:$ktor_version"
implementation "io.ktor:ktor-client-logging-jvm:$ktor_version"
implementation "com.squareup.sqldelight:android-driver:$sqldelight_version"
}
}
jsMain {
dependencies {
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serializer_version"
implementation "io.ktor:ktor-client-js:$ktor_version"
implementation "io.ktor:ktor-client-logging-js:$ktor_version"
}
}
iosMain {
dependencies {
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-native:$coroutine_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:$serializer_version"
implementation "io.ktor:ktor-client-ios:$ktor_version"
implementation "io.ktor:ktor-client-logging-native:$ktor_version"
implementation "com.squareup.sqldelight:ios-driver:$sqldelight_version"
}
}
}
}}
I will be very grateful for any ideasErik Christensen
09/11/2019, 12:51 PMgonzooin
09/11/2019, 2:04 PMJurriaan Mous
09/11/2019, 2:28 PMkotlin {
macosX64('macos') {
compilations.all {
kotlinOptions {
freeCompilerArgs += "-Xdisable-phases=Devirtualization,BuildDFG"
}
}
}
}
(I had a problem too in an earlier version)
To debug you could try the steps I described in another issue I had before: https://github.com/JetBrains/kotlin-native/issues/2864#issuecomment-504641546Fail
09/11/2019, 2:55 PMArkadii Ivanov
09/12/2019, 4:50 PMexpect class AtomicReference<T>(value: T)
jvmMain: actual typealias AtomicReference<T> = java.util.concurrent.atomic.AtomicReference<T>
In Kotlin docs it's stated as possible. Is it so by design?SrSouza
09/12/2019, 9:18 PMimplementation(project(":shared"))
But I don't know what Gradle plugin I use in the shared module because exist js and jvm plugins but doesn't exist CommonKonstantin Petrukhnov
09/13/2019, 7:49 AMansman
09/14/2019, 2:38 AMDico
09/14/2019, 12:37 PMNicholas Bilyk
09/14/2019, 2:21 PMJan Stoltman
09/14/2019, 3:21 PM@TestOnly
or @VisibleForTesting
annotations for K/Mp out there?ansman
09/15/2019, 6:32 PMactual
stuff for every iOS target