@capgo/capacitor-widget-kit 8.2.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Package.swift CHANGED
@@ -15,7 +15,7 @@ let package = Package(
15
15
  )
16
16
  ],
17
17
  dependencies: [
18
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0"),
18
+ .package(url: "https://github.com/ionic-team/capacitor.git", from: "9.0.0"),
19
19
  .package(url: "https://github.com/swhitty/SwiftDraw.git", .upToNextMinor(from: "0.29.0"))
20
20
  ],
21
21
  targets: [
@@ -31,8 +31,7 @@ let package = Package(
31
31
  name: "CapgoWidgetKitPlugin",
32
32
  dependencies: [
33
33
  "CapgoWidgetKitShared",
34
- .product(name: "Capacitor", package: "capacitor-swift-pm"),
35
- .product(name: "Cordova", package: "capacitor-swift-pm")
34
+ .product(name: "Capacitor", package: "capacitor")
36
35
  ],
37
36
  path: "ios/Sources/CapgoWidgetKitPlugin",
38
37
  sources: ["CapgoWidgetKitPlugin.swift"]
package/README.md CHANGED
@@ -18,12 +18,12 @@ Build iOS Home Screen widgets, Lock Screen Live Activities and Android widgets f
18
18
 
19
19
  ## Built and maintained with AI
20
20
 
21
- We build, improve and fix our plugins with heavy use of AI, so issues usually get fixed in under a day and pull requests get feedback the same day. A human still reviews and merges 50+ pull requests daily.
21
+ We build, improve and fix our plugins with heavy use of AI, so issues usually get fixed in under a day and pull requests get feedback the same day. A human still reviews, tests and merges 50+ pull requests daily.
22
22
 
23
23
  - Most plugin issues get a fix pull request the same day, often within a couple of hours, and are usually resolved in one to two days.
24
24
  - Every pull request goes through our AI review system, usually within minutes.
25
- - Our AI pre-checks tests, code review, conventions and security, then a human validates and merges.
26
- - A human, Martin, reviews and merges 50+ pull requests every day.
25
+ - Our AI pre-checks tests, code review, conventions and security, then a human reviews, tests and merges.
26
+ - A human, Martin, reviews, tests and merges 50+ pull requests every day.
27
27
  - In the last 90 days, 95% of plugin issues were resolved.
28
28
 
29
29
  [Learn more about how we build with AI](https://capgo.app/docs/plugins/ai-engineering/)
@@ -61,6 +61,28 @@ The plugin has two implementation paths:
61
61
 
62
62
  The included workout flow is only an example helper built on top of the generic SVG abstraction.
63
63
 
64
+ ## Compatibility
65
+
66
+ | Plugin version | Capacitor compatibility | Maintained |
67
+ | -------------- | ----------------------- | ---------- |
68
+ | v9.\*.\* | v9.\*.\* | ✅ |
69
+ | v8.\*.\* | v8.\*.\* | On demand |
70
+
71
+ > **Note:** The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (for example, plugin v9 for Capacitor 9).
72
+
73
+ ## Migrating from v8 to v9
74
+
75
+ v9 of `@capgo/capacitor-widget-kit` targets Capacitor 9. Update Capacitor and this plugin together, then sync the native projects:
76
+
77
+ ```bash
78
+ npm install @capacitor/core@^9.0.0 @capacitor/cli@^9.0.0 @capacitor/ios@^9.0.0 @capacitor/android@^9.0.0 @capgo/capacitor-widget-kit@^9.0.0
79
+ npx cap sync
80
+ ```
81
+
82
+ Capacitor 9 needs Node.js 24+, iOS 16+ (Xcode 27) and Android minSdk 26 / compileSdk 37. Follow the official [Capacitor 9 update guide](https://capacitorjs.com/docs/updating/9-0) for the app side changes.
83
+
84
+ No plugin API was removed: the JavaScript API of v9 is the same as v8.
85
+
64
86
  ## Install
65
87
 
66
88
  You can use our AI-Assisted Setup to install the plugin. Add the Capgo skills to your AI tool using the following command:
@@ -86,7 +108,7 @@ bunx cap sync android
86
108
  ## iOS Requirements
87
109
 
88
110
  - Add a Widget Extension target for Home Screen / SpringBoard widgets.
89
- - Xcode 26 or later (the Capacitor 8 baseline). The built-in SVG renderer depends on SwiftDraw, which needs a Swift 6 toolchain through both SwiftPM and CocoaPods.
111
+ - Xcode 27 or later (the Capacitor 9 baseline). The built-in SVG renderer depends on SwiftDraw, which needs a Swift 6 toolchain through both SwiftPM and CocoaPods.
90
112
  - iOS 17+ is recommended for interactive Home Screen widget and Live Activity buttons.
91
113
  - Add `NSSupportsLiveActivities` to the app `Info.plist` when using ActivityKit.
92
114
  - Add the same App Group to the app target and the widget extension target.
@@ -1,8 +1,8 @@
1
1
  ext {
2
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
2
+ junitVersion = rootProject.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = rootProject.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.8.0'
4
+ androidxJunitVersion = rootProject.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
5
+ androidxEspressoCoreVersion = rootProject.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
6
6
  }
7
7
 
8
8
  buildscript {
@@ -11,7 +11,7 @@ buildscript {
11
11
  mavenCentral()
12
12
  }
13
13
  dependencies {
14
- classpath 'com.android.tools.build:gradle:8.13.0'
14
+ classpath 'com.android.tools.build:gradle:9.4.1'
15
15
  }
16
16
  }
17
17
 
@@ -19,12 +19,10 @@ apply plugin: 'com.android.library'
19
19
 
20
20
  android {
21
21
  namespace = "app.capgo.widgetkit"
22
- compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
22
+ compileSdk = rootProject.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 37
23
23
  defaultConfig {
24
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
25
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
26
- versionCode 1
27
- versionName "1.0"
24
+ consumerProguardFiles "proguard-rules.pro"
25
+ minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
28
26
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
29
27
  }
30
28
  buildTypes {
@@ -0,0 +1,21 @@
1
+ # Add project specific ProGuard rules here.
2
+ # You can control the set of applied configuration files using the
3
+ # proguardFiles setting in build.gradle.
4
+ #
5
+ # For more details, see
6
+ # http://developer.android.com/guide/developing/tools/proguard.html
7
+
8
+ # If your project uses WebView with JS, uncomment the following
9
+ # and specify the fully qualified class name to the JavaScript interface
10
+ # class:
11
+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12
+ # public *;
13
+ #}
14
+
15
+ # Uncomment this to preserve the line number information for
16
+ # debugging stack traces.
17
+ #-keepattributes SourceFile,LineNumberTable
18
+
19
+ # If you keep the line number information, uncomment this to
20
+ # hide the original source file name.
21
+ #-renamesourcefileattribute SourceFile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-widget-kit",
3
- "version": "8.2.1",
3
+ "version": "9.0.0",
4
4
  "private": false,
5
5
  "description": "Capacitor plugin for generic iOS Home Screen widgets, WidgetKit, and Live Activities using SVG templates, declarative actions, and shared App Group persistence.",
6
6
  "main": "dist/plugin.cjs.js",
@@ -14,7 +14,8 @@
14
14
  "ios/Sources",
15
15
  "ios/Tests",
16
16
  "Package.swift",
17
- "CapgoCapacitorWidgetKit.podspec"
17
+ "CapgoCapacitorWidgetKit.podspec",
18
+ "android/proguard-rules.pro"
18
19
  ],
19
20
  "author": "Martin Donadieu <martin@capgo.app>",
20
21
  "license": "MPL-2.0",
@@ -60,11 +61,11 @@
60
61
  "changelog:ai": "node scripts/generate-ai-changelog.mjs"
61
62
  },
62
63
  "devDependencies": {
63
- "@capacitor/android": "^8.0.0",
64
- "@capacitor/cli": "^8.0.0",
65
- "@capacitor/core": "^8.0.0",
64
+ "@capacitor/android": "^9.0.0",
65
+ "@capacitor/cli": "^9.0.0",
66
+ "@capacitor/core": "^9.0.0",
66
67
  "@capacitor/docgen": "^0.3.1",
67
- "@capacitor/ios": "^8.0.0",
68
+ "@capacitor/ios": "^9.0.0",
68
69
  "@ionic/eslint-config": "^0.5.0",
69
70
  "@ionic/prettier-config": "^4.0.0",
70
71
  "@ionic/swiftlint-config": "^2.0.0",
@@ -80,7 +81,7 @@
80
81
  "typescript": "^6.0.3"
81
82
  },
82
83
  "peerDependencies": {
83
- "@capacitor/core": ">=8.0.0"
84
+ "@capacitor/core": "^9.0.0"
84
85
  },
85
86
  "prettier": "@ionic/prettier-config",
86
87
  "swiftlint": "@ionic/swiftlint-config",