Sqldelight: Upgrading from 1.2.1 to 1.2.2

Created on 9 Mar 2020  路  4Comments  路  Source: cashapp/sqldelight

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

First commit

sqldelight is on its 1.2.1 version and everything is OK

./gradlew :local:packForXCode
Task :local:linkDebugFrameworkIos
BUILD SUCCESSFUL in 52s

Second commit

sqldelight is on its 1.2.2 version and several problems can be seen

CLI

./gradlew :local:packForXCode
Task :local:compileKotlinIos FAILED
Unresolved reference: squareup
Unresolved reference: SqlDriver
BUILD FAILED in 8s

Android Studio

Android Studio goes "crazy":

  • no mention of native-driver in .idea/libraries nor Project > External Libraries
  • Unresolved reference on sqldelight classes (generated as well) in commonMain and iosMain

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

All 4 comments

I'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

Was this page helpful?
0 / 5 - 0 ratings