Colton Idle
09/06/2021, 10:56 PMUNRELEASED.md
and when the CI goes off, it takes everything there and puts it in release notes (like how gitlab does it: https://about.gitlab.com/blog/2018/07/03/solving-gitlabs-changelog-conflict-crisis/)
I can't help to think that library developers (since releases are typically infrequent) have some sort of system in place as well where documentation/markdown is updated with a PR rather than just keeping track of changes in their notes and then writing out those notes fully just in time when a release is created.myanmarking
09/10/2021, 3:05 PMjw
09/14/2021, 1:14 AMWilliam Reed
09/23/2021, 9:09 PMTypeMirror.asTypeName()
from kotlin poet suggests using kotlinpoet-metadata
instead. looking through the docs i don’t really see how I can perform the same type of operation from within an annotation processor on an Element
to get a type name. any suggestions?Colton Idle
09/26/2021, 4:01 AMclass RollerToasterAuthInterceptor @Inject constructor(val userManager: UserManagerService) :
Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
val originalRequest: Request = chain.request()
val compressedRequest: Request =
originalRequest
.newBuilder()
.header("authorization", "Bearer " + userManager.authToken)
.method(originalRequest.method, originalRequest.body)
.build()
return chain.proceed(compressedRequest)
}
}
Colton Idle
09/27/2021, 10:41 PMaiidziis
10/04/2021, 8:32 AMgenerateFactories
is enabled and tried to replicate the same setup but stumbled on issue:
symbol: class CategoriesModule_GetFragmentFactory
location: package com.test.catalogcategories.dependency/Users/test/Desktop/Test/test-android/app/build/generated/source/kapt/debug/com/test/app/di/DaggerApplicationComponent.java:97: error: cannot find symbol
import com.test.catalogfavoriteproducts.dependency.FavoriteProductsModule_GetFragmentFactory;
itnoles
10/10/2021, 8:54 PMBenoit Quenaudon
10/19/2021, 1:11 PMjavaInterop = true
jean
10/22/2021, 9:33 AMexecuteNonQuery error | error code SQLITE_CONSTRAINT
co.touchlab.sqliter.interop.SQLiteExceptionErrorCode: executeNonQuery error
Invalid connection: com.apple.coresymbolicationd
I do clean up my test database after each test, should I do one more specific clean up at some point?jessewilson
10/23/2021, 6:56 PMSYSTEM
, RESOURCES
, Zip, Fake, and Forwarding)
• Path
• FileMetadata
• FileHandle
If you’d like to take a look at the API and offer feedback, now is the time! We’ll be very limited in what we can change once we ship 3.0 final! Send feedback directly to me or our issue tracker.jean
10/25/2021, 6:50 PMkotlin.native.concurrent.InvalidMutabilityException: mutation attempt of frozen kotlin.Array
@Test
fun `test transaction`() {
queries.transaction {
}
}
What am I missing here?mbonnin
10/27/2021, 2:35 PMFileSpec.builder(packagename, filename)
.addType(TypeSpec.interfaceBuilder("I").addTypeVariable(TypeVariableName("T")).build())
.addType(TypeSpec.classBuilder("C").addSuperinterface(ClassName(packageName, "I").parameterizedBy(String::class.java.asClassName())).build())
.build()
mbonnin
10/27/2021, 2:36 PMpackageName
in ClassName(packageName, "I")
aboveLastExceed
10/27/2021, 5:37 PMLastExceed
10/27/2021, 6:05 PMget
is a valid function namesmallshen
10/29/2021, 8:35 PMColton Idle
11/05/2021, 1:50 PMdimsuz
11/08/2021, 3:55 PMHttpLoggingInterceptor
sometimes I have to deal with polling `GET`s which get executed every 2 seconds, and they spam log a lot. I understand that there's no ready solution to disable logging on a per-url basis or to rate limit logs, but maybe I've missed something? Asking before I invent my own 🙂Hakob Astvacatryan
11/10/2021, 3:44 PMbenkuly
11/11/2021, 8:09 AMAndroidSqliteDriver
from creating the schema? My common code just wants a driver and uses it to create the schema and do migration stuff.rachael
11/16/2021, 8:45 PMjw
11/17/2021, 5:21 AMTrevor Stone
11/22/2021, 8:52 PMHumphrey
11/23/2021, 4:46 PMplugins {
kotlin("jvm") version "1.5.31"
id("org.jetbrains.compose") version "1.0.0-beta5"
id("com.squareup.sqldelight") version "1.5.2"
}
2. added the driver dependency
dependencies {
implementation(compose.desktop.currentOs)
implementation("com.squareup.sqldelight:sqlite-driver:1.5.2")
testImplementation(kotlin("test"))
}
3. now I'm trying to add the configuration for the gradle-plugin
sqldelight {
Database { // This will be the name of the generated database class.
packageName = "com.example"
}
}
But I get error
sqldelight {
sqldelight.com.squareup.sqlite.migrations.Database {
}
}
The error:
build.gradle.kts:47:16: Unresolved reference: com
SQLDelight Gradle plugin was applied but there are no databases set up.
Seems like I'm not able to add Database like that (com is pointing out to the package name and marked red in my Intellij). If I remove the package name (sqldelight.com
.squareup.sqlite.migrations) it does not work.
Hope someone can help me out with this?Philip Dukhov
11/24/2021, 1:22 AMvalue
kotlin generated name is value_
. In 1.5.2 it was value
SQL code:
CREATE TABLE Test (
value INTEGER NOT NULL
);
Produces:
public data class Test(
public val value_: Int
) {
public override fun toString(): String = """
|Test [
| value_: $value_
|]
""".trimMargin()
}
Is this expected behaviour?mbonnin
11/25/2021, 6:55 PMfun String.source(): Source
like there is fun File.source(): Source
?
// This works
File(path).source().buffer()
// This doesn't
"Hello World".source().buffer()
alec
11/26/2021, 12:36 PMRahul Rawat
11/29/2021, 2:52 PMankushg
11/30/2021, 1:37 AMankushg
11/30/2021, 1:37 AMalec
11/30/2021, 1:50 AMankushg
11/30/2021, 1:56 AMalec
11/30/2021, 2:34 AMankushg
11/30/2021, 2:45 AM