移动开发

capacitor-plugin-upgrade-v7-to-v8

cap-go/capgo-skills

Upgrades a Capacitor plugin library from v7 to v8 using `npx @capacitor/plugin-migration-v7-to-v8@latest`, then the manual checklist - dev deps `^8.0.0` and peer `@capacitor/core` `>=8.0.0`, minSdk 24 and compile/target SDK 36 defaults, AndroidX dependency defaults, AGP 8.13.0, Gradle 8.14.3, Gradle `=` property assignment syntax, Java 21, Kotlin 2.2.20 (`kotlinOptions` to `compilerOptions`, no `kotlin-android-extensions`), google-services 4.4.4, iOS 15 in podspec and `Package.swift`, `capacitor-swift-pm` `from: "8.0.0"`, and the renamed `capacitor_bridge_layout_main` resource. Use when a plugin targets Capacitor 7 and must support 8, or on Kotlin 2 / Gradle space-assignment errors. Points to the v8-to-v9 next step. Do not use for app upgrades, other major versions, or non-Capacitor libraries.

  • 653 次安装
  • 74 星标
  • 收录于

安装命令

npx skills add https://github.com/cap-go/capgo-skills --skill capacitor-plugin-upgrade-v7-to-v8

SKILL.md

Capacitor Plugin Upgrade v7 to v8

Move a plugin library to Capacitor 8. Source of truth: https://capacitorjs.com/docs/updating/plugins/8-0

When to Use

  • Snapshot shows @capacitor/core 7.x and the plugin must work in Capacitor 8 apps.
  • Building the plugin against Kotlin 2.2 fails on kotlinOptions or kotlin-android-extensions.
  • Gradle warns Properties should be assigned using the 'propName = value' syntax.

Do not use:

  • Upgrading an app -> capacitor-app-upgrade-v7-to-v8.
  • Plugin on 6.x -> capacitor-plugin-upgrade-v6-to-v7 first. Multi-hop -> capacitor-plugin-upgrades.
  • Plugin already on 8.x -> capacitor-plugin-upgrade-v8-to-v9.
  • Adding SPM -> capacitor-plugin-spm-support.

Live Project Snapshot

Capacitor Plugin Upgrade v7 to v8

Move a plugin library to Capacitor 8. Source of truth: https://capacitorjs.com/docs/updating/plugins/8-0

When to Use

  • Snapshot shows @capacitor/core 7.x and the plugin must work in Capacitor 8 apps.
  • Building the plugin against Kotlin 2.2 fails on kotlinOptions or kotlin-android-extensions.
  • Gradle warns Properties should be assigned using the 'propName = value' syntax.

Do not use:

  • Upgrading an app -> capacitor-app-upgrade-v7-to-v8.
  • Plugin on 6.x -> capacitor-plugin-upgrade-v6-to-v7 first. Multi-hop -> capacitor-plugin-upgrades.
  • Plugin already on 8.x -> capacitor-plugin-upgrade-v8-to-v9.
  • Adding SPM -> capacitor-plugin-spm-support.

Live Project Snapshot