version: "3"
internal: true

tasks:
  update:
    desc: "Update Kotlin/Android dependencies within major versions (gradlew dependencyUpdates)"
    silent: false
    cmds:
      - cmd: |
          cd packages/kotlin-android && ./gradlew dependencyUpdates
        ignore_error: false

  upgrade:
    desc: "Upgrade Kotlin/Android dependencies to latest including breaking changes (gradlew useLatestVersions)"
    silent: false
    cmds:
      - cmd: |
          test -f packages/kotlin-android/gradlew || { echo "Kotlin-Android gradlew not found, skipping upgrade"; exit 0; }
          cd packages/kotlin-android && ./gradlew useLatestVersions
        ignore_error: false
