Zac Sweers
09/19/2023, 6:11 PMw: `KotlinCompilation.source(KotlinSourceSet)` method is deprecated
and will be removed in upcoming Kotlin releases.
See <https://kotl.in/compilation-source-deprecation> for details.
Zac Sweers
09/20/2023, 7:24 PM> Configure project :circuit-retained
w: Following Kotlin Source Set groups can't depend on 'commonJvmTest' together as they belong to different Kotlin Source Set Trees.
Source Sets from 'instrumentedTest' Tree:
* 'androidInstrumentedTest'
Source Sets from 'test' Tree:
* 'jvmTest'
Please keep dependsOn edges only from one group and remove the others.
Screenshot of the snippet is below. I don't fully understand what "they belong to different Kotlin Source Set Trees" means in this context, and I'm not sure how else we can reuse compatible shared dependencies across jvm/android source sets. Is it just no longer possible now? And if so... why not? I think it'd be helpful if this warning linked an issue or doc like some of the others do
Edit: it also appears to be specific to instrumented test, no warning for unit tests.Josh Friend
09/20/2023, 7:31 PMe: kotlin.NotImplementedError: An operation is not implemented: Missing package reporting
at org.jetbrains.kotlin.fir.descriptors.FirModuleDescriptor.getPackage(FirModuleDescriptor.kt:35)
at com.squareup.anvil.compiler.codegen.reference.RealAnvilModuleDescriptor.getPackage(RealAnvilModuleDescriptor.kt)
at com.squareup.anvil.compiler.ClassScanner.findContributedClasses(ClassScanner.kt:39)
at com.squareup.anvil.compiler.ClassScannerIrKt.findContributedClasses(ClassScannerIr.kt:23)
at com.squareup.anvil.compiler.ModuleMergerIr.generateDaggerAnnotation(ModuleMergerIr.kt:88)
at com.squareup.anvil.compiler.ModuleMergerIr.access$generateDaggerAnnotation(ModuleMergerIr.kt:34)
at com.squareup.anvil.compiler.ModuleMergerIr$generate$1.visitClass(ModuleMergerIr.kt:57)
Zac Sweers
09/20/2023, 8:19 PMKathrin Petrova
09/22/2023, 7:23 AMaltavir
09/22/2023, 10:39 AMZac Sweers
09/27/2023, 3:48 PMCreator
classes. Working on a public repro
edit: went ahead and filed this for now https://youtrack.jetbrains.com/issue/KT-62196Thomas
09/30/2023, 10:26 PMembedAndSignAppleFrameworkForXcode
task is broken. Instead of only copying the kotlin framework it also copies the dsym file. That causes the following error when uploading to the store:
Asset validation failed (90432) Unexpected file found in Frameworks. The "HueEssentials.app/Frameworks/common.framework.dSYM" file is in the Frameworks directory, but the Swift runtime libraries are the only files permitted in that directory. Please remove this file and upload a new build.
Kathrin Petrova
10/12/2023, 9:07 AMwasm-wasi
⭐️ Support for the WASI API in the standard library for Kotlin/WasmJeff Lockhart
10/13/2023, 5:53 PM-Xexpect-actual-classes
flag to the compiler in 1.9.20-RC? Previously in 1.9.20-Beta2 I had:
kotlin {
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
But this top-level compilerOptions
has been removed now.
I've tried
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
}
and
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xexpect-actual-classes"
}
}
but still get the warning
'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. You can use -Xexpect-actual-classes flag to suppress this warning. Also see: https://youtrack.jetbrains.com/issue/KT-61573during compilation.
Jeff Lockhart
10/13/2023, 6:43 PMRick Clephas
10/16/2023, 7:28 AM1.9.20-RC-1.0.13
it’s now required to explicitly apply the default hierarchy template. https://github.com/google/ksp/issues/1569
At the moment the warning is a little misleading as it doesn’t mention the option to explicitly apply the template.Zac Sweers
10/24/2023, 4:43 PMKotlinMultiplatformExtension.compilerOptions
is internal
now in 1.9.20-RC(2)?Margarita Bobova
10/25/2023, 11:03 AMJeff Lockhart
10/25/2023, 8:07 PMRick Clephas
11/16/2023, 2:32 PMKathrin Petrova
11/16/2023, 5:26 PMZac Sweers
11/20/2023, 7:55 PMJosh Friend
11/20/2023, 11:25 PM1.5.5-dev-k2.0.0-Beta1-06b8ae672a4
), i see lots of Cannot access class 'androidx.compose.runtime.internal.ComposableFunction1'.
errors in builds. Seems to happen when setting languageVersion = '1.9'
for a project.Josh Friend
11/21/2023, 3:07 AMKathrin Petrova
12/15/2023, 12:52 PMbod
01/08/2024, 9:39 AM.kotlin
folder is created with a bunch of files in it when building. Should we expect this to be there for good, or just a fluke of this beta? (Just so I know if it's worth adding to .gitignore
)Kathrin Petrova
01/19/2024, 2:40 PMJosh Friend
01/23/2024, 4:25 PMZac Sweers
02/05/2024, 2:50 AMNOTHING_TO_INLINE
on this, but since it has function parameters this seems like a reasonable candidate. I wanted to check here if this is expected before filing a bug
@Composable
inline fun <S> Transition<S>.animateColorList(
targetColorListByState: @Composable (state: S) -> ImmutableList<Color>,
label: String,
noinline transitionSpec:
@Composable
Transition.Segment<ImmutableList<Color>>.() -> FiniteAnimationSpec<Color> =
{
spring()
},
): State<ImmutableList<Color>> {
val colorSpace = targetColorListByState(currentState).first().colorSpace
val typeConverter = remember(colorSpace) { Color.VectorConverter(colorSpace) }
return animateValueList(
typeConverter = typeConverter,
targetValueListByState = targetColorListByState,
label = label,
transitionSpec = transitionSpec,
)
}
Alyona Chernyaeva
02/05/2024, 4:43 PMKathrin Petrova
02/15/2024, 12:29 PMhfhbd
02/16/2024, 9:48 AMK2=true
fails due the pre-release check?Zac Sweers
02/19/2024, 3:58 AM-Xproper-ieee754-comparisons
in our builds but K2 reports this is no longer a valid argument. I couldn't find any references in release notes about this, are there details on the change?