Closed GianfrancoMS closed 4 years ago
Probably related to #1880
From kotlinlang.org:
Libraries published with the hierarchical project structure are compatible with all kinds of projects, both with and without the hierarchical project structure. However, libraries published without the hierarchical project structure can’t be used in a shared native source set. So, for example, users with ios() shortcuts in their gradle.build files won’t be able to use your library in their iOS-shared code.
Same here. When I set enableGranularSourceSetsMetadata
to false
, it however compiles fine but shows warnings in the IDE that the database is not resolved.
Same problem. I had to temporarily downgrade Kotlin to 1.3.72 and SQLDelight to 1.4.0 and wait for library fixes.
please try latest snapshot release to see if it fixes
I can check
I can confirm that I'm no longer seeing the issue in my project. 🎉
That's quite some issue for us as well (also cf. #1906). :(
Any change we can see this thingy released without the need to wait for the current milestone 1.4.2
to be finished? 🚀
@benjohnde you can use 1.5.0-SNAPSHOT
in the meantime.
Oweeee that's so perfect :) Thanks @saket ❤️
@AlecStrong @saket how do I access 1.5.0-SNAPSHOT, I am currently having the same issue
It looks like 1.4.2 has been released, which includes the fix. So no need for snapshot and the snapshot repo
I'm still having this with 1.4.4.
With:
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
I have a database' module where the sqldelight database gets generated and it gets consumed by another module. After the very first build, the database fails to resolve:
./gradlew database:clean && ./gradlew consumer:buildthe database does not exist. When I run another
./gradlew consumer:build`, the database gets is there.
When I set enableGranularSourceSetsMetadata to false, it works on the first build.
Build Environment SQLDelight version: 1.4.1 OS: macOS 10.15.6 Gradle version: 6.6 Kotlin version: 1.4.0 IDE: Android Studio 4.0.1 and IntelliJ IDEA 2020.2 AGP Version (if applicable): 4.0.1
Describe the bug After migrating and building my project, I can not import the generated database from the commonMain nor androidMain source sets. However, I can import it from the iosMain source set.
When I try to import the database from the commonMain source set, the IDE says "Add dependency on module 'common_iosMain'". Similarly, on the androidMain source set, it says "Add dependency on on module 'common_iosMain'" and "Import", but the option "Import" does not work.
Additionally, after building, the IDE gives a warning:
build.gradle
gradle.properties