Hi! _This is more a "Help me understand" than a bug report._
I tried a migration from 1.2.1 to 1.2.2. (ios-driver to native-driver)
I posted a project were the problem can be reproduced here: https://github.com/Gorcyn/sqldelightupgrade
sqldelight is on its 1.2.1 version and everything is OK
./gradlew :local:packForXCode
Task :local:linkDebugFrameworkIos
BUILD SUCCESSFUL in 52s
sqldelight is on its 1.2.2 version and several problems can be seen
./gradlew :local:packForXCode
Task :local:compileKotlinIos FAILED
Unresolved reference: squareup
Unresolved reference: SqlDriver
BUILD FAILED in 8s
Android Studio goes "crazy":
native-driver in .idea/libraries nor Project > External LibrariesUnresolved reference on sqldelight classes (generated as well) in commonMain and iosMainI'm having the same issue. A simple update from 1.2.1 to 1.2.2 causes the NativeSqliteDriver to go missing.
1.2.1 is the latest published version of the native drivers https://mvnrepository.com/artifact/com.squareup.sqldelight/ios-driver . I did a quick search and I don't see a public repository for native-driver:1.2.2 yet. If you deploy to a local maven repository, use native-driver:1.2.2. If you are using maven central, then I suggest using ios-driver:1.2.1
I tried again yesterday.
Despite native-driver:1.2.2 availability, I got the same result.
But upgrading to 1.3.0 solved all the problems mentionned regarding CLI and Android Studio.
I updated the sample project : 27d3ff5
In case anyone sees this, i had similar issue, the actual solution was to upgrade android gradle plugin to 4.0 which @Gorcyn did in his commit 27d3ff5
Most helpful comment
In case anyone sees this, i had similar issue, the actual solution was to upgrade android gradle plugin to 4.0 which @Gorcyn did in his commit 27d3ff5