pniederw
12/02/2020, 12:41 AMNew: Generated code is now compatible with the explicit API mode by default.How do I change this default? It's not helpful for my use cases (I don't generate APIs) and adds a lot of boilerplate.
jw
12/02/2020, 1:31 AMpniederw
12/02/2020, 1:33 AMpniederw
12/02/2020, 1:41 AMjw
12/02/2020, 1:45 AMpniederw
12/02/2020, 1:50 AMegorand
12/02/2020, 1:58 AMpniederw
12/02/2020, 2:04 AMpublic
, and I don't think a simple script will get this right. For example, what if a generated comment (which can contain any text) contains public
?egorand
12/02/2020, 2:06 AMpniederw
12/02/2020, 2:08 AMjw
12/02/2020, 2:10 AMpniederw
12/02/2020, 2:13 AMLilly
12/02/2020, 2:14 AMval buffer = Buffer()
but without consuming it, i.e. without removing the bytes from the buffer. How would I do it?jw
12/02/2020, 2:17 AMclone().hex().toString()
should workjw
12/02/2020, 2:18 AMpeek()
that gives you a BufferedSource
that doesn't consumeLilly
12/02/2020, 2:19 AMMaurice Jouvet
12/04/2020, 3:40 PMbindString(2, FieldSet.visibility?.let { database.FieldSetAdapter.visibilityAdapter.encode(it)}) --> ERROR_BAD_ACCESS. (It's from the bindString method that the crash occurs)
I tried a simple string like that and same result:
bindString(2, FieldSet.visibility?.let { "Hello" }) --> ERROR_BAD_ACCESS. (It's from the bindString method that the crash occurs)
Maurice Jouvet
12/04/2020, 3:41 PMCicero
12/04/2020, 10:36 PMid("com.squareup.sqldelight")
to your plugins and synchronising? For some reason it’s not going trough for me.
Changed to my 4G internet to see if it was the issue but nothing.
This is popping on me:
Plugin [id: 'com.squareup.sqldelight'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number
jw
12/04/2020, 10:42 PMCicero
12/04/2020, 10:51 PMbuildscript {
repositories {
google()
mavenCentral()
jcenter()
}
dependencies {
classpath("com.android.tools.build:gradle:7.0.0-alpha02")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$1.4.20")
classpath("org.jetbrains.kotlin:kotlin-serialization:$1.4.20")
classpath("com.squareup.sqldelight:gradle-plugin:$1.4.2")
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven(url = "<https://dl.bintray.com/ekito/koin>")
maven(url = "<https://kotlin.bintray.com/kotlin-js-wrappers/>")
maven(url = "<https://jitpack.io>")
}
}
Commons gradle:
plugins {
kotlin("multiplatform")
id("kotlinx-serialization")
id("com.android.library")
id("com.squareup.sqldelight")
}
jw
12/04/2020, 10:52 PMCicero
12/04/2020, 11:00 PMCicero
12/04/2020, 11:26 PMCicero
12/04/2020, 11:26 PMCicero
12/04/2020, 11:29 PMCicero
12/04/2020, 11:33 PMCicero
12/04/2020, 11:40 PMCicero
12/04/2020, 11:55 PMHarun
12/05/2020, 8:25 AM