https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
s

Shubham Singh

02/24/2023, 5:41 AM
Hi folks I'm using SQLDelight in my KMP app, everything works fine on the local machine but the following task breaks when running in the CI/CD pipeline:
Copy code
* What went wrong:
Execution failed for task ':shared:verifyCommonMainPTDatabaseMigration'.
> There was a failure while executing work items
   > A failure occurred while executing app.cash.sqldelight.gradle.VerifyMigrationTask$VerifyMigrationAction

      > Error migrating from 1.db, fresh database looks different from migration database:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
        /tables[Settings]/columns[Settings.isDarkModeOn]/defaultValue - CHANGED

          BEFORE:
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See <https://docs.gradle.org/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings>
198 actionable tasks: 198 executed
            1
          AFTER:
            0
        /tables[Settings]/definition - CHANGED
          BEFORE:
            CREATE TABLE Settings(
                isDarkModeOn INTEGER DEFAULT 1
            )
          AFTER:
            CREATE TABLE Settings(
                isDarkModeOn INTEGER DEFAULT 0
            )
This is how my current GitHub workflow looks like:
Copy code
name: My Deployment Task
on:
  push:
    branches:
      - main
jobs:
  deployment:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@master
        name: Checking out code...

      - uses: actions/setup-java@v3
        name: Setting up Java 19 environment...
        with:
          distribution: 'corretto'
          java-version: 19

      - name: Building project...
        run: ./gradlew build

      - name: Assembling Release Bundle...
        run: ./gradlew assembleRelease

      - uses: r0adkll/sign-android-release@v1
        name: Signing APK...
        id: signed_apk
        with:
          releaseDirectory: android/build/outputs/apk/release
          signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY_BASE64 }}
          alias: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
          keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
          keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}

      - uses: wzieba/Firebase-Distribution-Github-Action@v1
        name: Uploading APK to Firebase App Distribution...
        with:
          appId: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
          serviceCredentialsFileContent: ${{ secrets.GC_CREDENTIAL_FILE_CONTENT }}
          groups: internal
          file: ${{ steps.sign_app.outputs.signed_apk }}
I'm just trying to create a release APK, sign it, and upload it to Firebase App distribution Any thoughts on what might be going wrong here?
10 Views