Vivek Modi
05/10/2022, 1:03 PM/gradlew publishToMavenLocal
. I am getting error
Execution failed for task ':generateMetadataFileForIosArm64Publication'.
> java.io.FileNotFoundException: /Users/vmodi/IdeaProjects/AndroidModule/build/classes/kotlin/iosArm64/main/klib/AndroidModule.klib (No such file or directory)
Trey
05/10/2022, 1:25 PMHasan Nagizade
05/10/2022, 2:31 PMAnders Kielsholm
05/10/2022, 11:16 PMMarc Javier
05/11/2022, 2:25 AMlilypuchi
05/11/2022, 8:37 AMAlejandro Moya
05/11/2022, 2:18 PMJochem Verboom
05/12/2022, 6:34 AMRan
05/12/2022, 8:36 AMCharles Prado
05/12/2022, 10:53 AMcagdas
05/12/2022, 4:53 PMlinkReleaseFrameworkIosFat
gradle task to build the shared framework. However when I run it (both from the terminal or from the gradle tasks section of Android studio), I get this error.
class org.jetbrains.kotlin.gradle.tasks.FrameworkDescriptor cannot be cast to class org.jetbrains.kotlin.gradle.plugin.mpp.Framework (org.jetbrains.kotlin.gradle.tasks.FrameworkDescriptor and org.jetbrains.kotlin.gradle.plugin.mpp.Framework are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @334f46fa)
I can’t find any mention of this issue anywhere. Has anyone run into such problem? Any suggestions on what to check?Pavel Repkin
05/13/2022, 5:31 AMvar width: Int = 0
var height: Int = 0
They turn to width_ and height_ in Swift.
Do you have any idea why the underscore was added at the end of the property names?
@property (getter=width__) int32_t width_ __attribute__((swift_name("width_")));
@property (getter=height__) int32_t height_ __attribute__((swift_name("height_")));
Any help appreciated!Hasan Nagizade
05/13/2022, 6:21 AMVivek Modi
05/13/2022, 10:42 AMmavelLocal
. I want to learn more. Thankssamuele794
05/13/2022, 12:32 PMxiaobailong24
05/13/2022, 2:32 PMmkrussel
05/13/2022, 6:19 PMcolintheshots
05/13/2022, 6:53 PMlilypuchi
05/14/2022, 6:07 AM0.sqm
CREATE TABLE IF NOT EXISTS entry(
...
);
1.sqm
PRAGMA foreign_keys=off;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS entry_temp(
...
key INTEGER,
FOREIGN KEY(key) REFERENCES ...
);
INSERT INTO entry_temp (...) SELECT * FROM entry;
DROP TABLE entry;
ALTER TABLE entry_temp RENAME TO entry;
COMMIT;
PRAGMA foreign_keys=on;
But upon running generateCommonMainDBInterface
task I get an error for with the following stacktrace.
> A failure occurred while executing com.squareup.sqldelight.gradle.SqlDelightTask$GenerateInterfaces
> Failed to compile SqlInsertStmtImpl(INSERT_STMT): [] :
INSERT INTO entry(...)
VALUES (?, ?, ?, ...)
java.lang.IllegalStateException: Cannot get reference table for psi type class sqldelight.com.alecstrong.sql.psi.core.psi.impl.SqlNewTableNameImpl
This INSERT
statement is written in the .sq
file and is syntactically correct.
However if I don’t rename the table and use entry_temp
as it is (with necessary changes in .sq
file as well), the task runs successfully.
Am I missing something here? :blob-thinking-fast:Hasan Nagizade
05/14/2022, 6:23 AMAndroid75
05/14/2022, 3:28 PM'pod install' command failed with code 134.
Error message:
Analyzing dependencies
Please, check that podfile contains following lines in header:
source '<https://cdn.cocoapods.org>'
Please, check that each target depended on shared contains following dependencies:
I installed cocoapods with command sudo gem install cocoapods
eygraber
05/15/2022, 6:27 AMexpect fun test()
and 1 target, which already has a fun test() {}
(and doesn't have the actual
keyword), is that supposed to work, or does actual
need to be specified?Jason5lee
05/16/2022, 4:13 AM> Could not resolve all files for configuration ':linuxArm64CompileKlibraries'.
> Could not resolve io.ktor:ktor-io:1.6.7.
Required by:
project :
> No matching variant of io.ktor:ktor-io:1.6.7 was found. The consumer was configured to find a usage of 'kotlin-api' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native', attribute 'org.jetbrains.kotlin.native.target' with value 'linux_arm64' but:
- Variant 'commonMainMetadataElements' capability io.ktor:ktor-io:1.6.7 declares a usage of 'kotlin-api' of a library:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'common' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'native'
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.native.target (required 'linux_arm64')
when I tried to publish a multiplatform library. How should I fix it?Jason5lee
05/16/2022, 8:12 AMSebastian Sellmair [JB]
05/16/2022, 11:40 AMvanniktech
05/16/2022, 4:08 PM.idea
& .gradle
directories and then re-opening the project - but now no modules are listed at all: https://youtrack.jetbrains.com/issue/IDEA-294148/eygraber
05/16/2022, 4:19 PMisCompatibilityMetadataVariantEnabled
in kotlin-tooling-metadata.json
?
I'm seeing it set to true
in all of the dependencies that I use (e.g. coroutines), except for a library that I publish (e.g. portal), where it is false
.eygraber
05/16/2022, 5:45 PMeygraber
05/16/2022, 6:54 PMKotlinSourceSet
with a specific KotlinTarget
? e.g.:
kotlin.targets.configureEach {
kotlin.sourceSets.configureEach {
// only do something with this source set if it is associated with the target
}
}
eygraber
05/17/2022, 8:48 AMThe project has just one target (Android) defined. The Kotlin IDE plugin will detect that this is Android, and that commonMain is effectively an Android source set as well (that's the intersection of all platforms)
Is there a reason the plugin does this? I've occasionally run into issues because this allows Android/jvm code in common which can be a big pain when I add more targets later. I usually start off my projects only targeting Android or JVM (because that's where I'm most comfortable so I can move faster), and later adding support for the other targets (native, js, etc...).
eygraber
05/17/2022, 8:48 AMThe project has just one target (Android) defined. The Kotlin IDE plugin will detect that this is Android, and that commonMain is effectively an Android source set as well (that's the intersection of all platforms)
Is there a reason the plugin does this? I've occasionally run into issues because this allows Android/jvm code in common which can be a big pain when I add more targets later. I usually start off my projects only targeting Android or JVM (because that's where I'm most comfortable so I can move faster), and later adding support for the other targets (native, js, etc...).
darkmoon_uk
05/17/2022, 9:22 AMSebastian Sellmair [JB]
05/17/2022, 9:47 AMMichael Paus
05/17/2022, 10:32 AMdarkmoon_uk
05/17/2022, 11:08 AMSebastian Sellmair [JB]
05/17/2022, 11:29 AMdarkmoon_uk
05/17/2022, 12:30 PM1.6.20
'common' was a fixed API
• In 1.6.20
and beyond this has changed (improved) so that 'common' is the dynamically computed union of targetsSebastian Sellmair [JB]
05/17/2022, 12:33 PMMichael Paus
05/17/2022, 12:51 PMeygraber
05/17/2022, 2:10 PMSebastian Sellmair [JB]
05/17/2022, 2:28 PMeygraber
05/18/2022, 1:01 AMhandstandsam
05/31/2022, 4:27 PMeygraber
06/01/2022, 7:03 AMexpect
that isn't actualized for the non-android target it wouldn't compile.