sqldelight
sqldelight copied to clipboard
Incorrect package Name
SQLDelight Version
2.0.0-alpha003
Operating System
MacOS
Gradle Version
7.4.2
Kotlin Version
1.7.0
Dialect
SQLite
AGP Version
7.2.1
Describe the Bug
My Package name consists of a special reserved word: in
Its: in.shabinder.shared
package `in`.shabinder.shared.db
SqlDelight is generating : inshabindershareddb
Checkout Attached Image:
Stacktrace
No response
Gradle Build Script
sqldelight {
database("Database") {
packageName = "in.shabinder.shared.db"
}
}
On further diagnosing, the entity classes were being made in such package because IDE created a SINGLE folder name in.shabinder.shared.db, rather than subfolders and hence above issue I guess.
Strangely enough, 1.5.3 didn't showed such behaviour and worked as expected.
If this is what is intended then this issue can be closed.
this is the same problem as https://github.com/cashapp/sqldelight/issues/3332 and https://github.com/cashapp/sqldelight/issues/3346#issuecomment-1170676571