@capgo/capacitor-permissions 8.2.9 → 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.
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
11
11
  s.author = package['author']
12
12
  s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '15.0'
14
+ s.ios.deployment_target = '16.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
package/Package.swift CHANGED
@@ -3,21 +3,20 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapgoCapacitorPermissions",
6
- platforms: [.iOS(.v15)],
6
+ platforms: [.iOS(.v16)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapgoCapacitorPermissions",
10
10
  targets: ["PermissionsPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor.git", from: "9.0.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
17
17
  name: "PermissionsPlugin",
18
18
  dependencies: [
19
- .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
- .product(name: "Cordova", package: "capacitor-swift-pm")
19
+ .product(name: "Capacitor", package: "capacitor")
21
20
  ],
22
21
  path: "ios/Sources/PermissionsPlugin",
23
22
  linkerSettings: [
package/README.md CHANGED
@@ -32,12 +32,12 @@
32
32
 
33
33
  ## Built and maintained with AI
34
34
 
35
- 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.
35
+ 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.
36
36
 
37
37
  - 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.
38
38
  - Every pull request goes through our AI review system, usually within minutes.
39
- - Our AI pre-checks tests, code review, conventions and security, then a human validates and merges.
40
- - A human, Martin, reviews and merges 50+ pull requests every day.
39
+ - Our AI pre-checks tests, code review, conventions and security, then a human reviews, tests and merges.
40
+ - A human, Martin, reviews, tests and merges 50+ pull requests every day.
41
41
  - In the last 90 days, 95% of plugin issues were resolved.
42
42
 
43
43
  [Learn more about how we build with AI](https://capgo.app/docs/plugins/ai-engineering/)
@@ -57,15 +57,29 @@ We build, improve and fix our plugins with heavy use of AI, so issues usually ge
57
57
 
58
58
  | Plugin version | Capacitor compatibility | Maintained |
59
59
  | -------------- | ----------------------- | ---------- |
60
- | v8.\*.\* | v8.\*.\* | ✅ |
60
+ | v9.\*.\* | v9.\*.\* | ✅ |
61
+ | v8.\*.\* | v8.\*.\* | On demand |
61
62
  | v7.\*.\* | v7.\*.\* | On demand |
62
63
  | v6.\*.\* | v6.\*.\* | On demand |
63
64
 
64
65
  Policy:
65
66
 
66
- - New plugins start at version `8.0.0` (Capacitor 8 baseline).
67
+ - New plugins start at version `9.0.0` (Capacitor 9 baseline).
67
68
  - Backward compatibility for older Capacitor majors is supported on demand.
68
69
 
70
+ ## Migrating from v8 to v9
71
+
72
+ v9 of `@capgo/capacitor-permissions` targets Capacitor 9. Update Capacitor and this plugin together, then sync the native projects:
73
+
74
+ ```bash
75
+ npm install @capacitor/core@^9.0.0 @capacitor/cli@^9.0.0 @capacitor/ios@^9.0.0 @capacitor/android@^9.0.0 @capgo/capacitor-permissions@^9.0.0
76
+ npx cap sync
77
+ ```
78
+
79
+ 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.
80
+
81
+ No plugin API was removed: the JavaScript API of v9 is the same as v8.
82
+
69
83
  ## Install
70
84
 
71
85
  ```bash
@@ -1,34 +1,29 @@
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'
6
- androidxCoreKTXVersion = project.hasProperty('androidxCoreKTXVersion') ? rootProject.ext.androidxCoreKTXVersion : '1.17.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
+ androidxCoreVersion = rootProject.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.19.1'
7
7
  }
8
8
 
9
9
  buildscript {
10
- ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
11
10
  repositories {
12
11
  google()
13
12
  mavenCentral()
14
13
  }
15
14
  dependencies {
16
- classpath 'com.android.tools.build:gradle:8.13.0'
17
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15
+ classpath 'com.android.tools.build:gradle:9.4.1'
18
16
  }
19
17
  }
20
18
 
21
19
  apply plugin: 'com.android.library'
22
- apply plugin: 'kotlin-android'
23
20
 
24
21
  android {
25
22
  namespace = "app.capgo.permissions"
26
- compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
23
+ compileSdk = rootProject.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 37
27
24
  defaultConfig {
28
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
29
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
30
- versionCode 1
31
- versionName "1.0"
25
+ consumerProguardFiles "proguard-rules.pro"
26
+ minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
32
27
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
33
28
  }
34
29
  buildTypes {
@@ -59,7 +54,7 @@ dependencies {
59
54
  implementation fileTree(dir: 'libs', include: ['*.jar'])
60
55
  implementation project(':capacitor-android')
61
56
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
62
- implementation "androidx.core:core-ktx:$androidxCoreKTXVersion"
57
+ implementation "androidx.core:core:$androidxCoreVersion"
63
58
  testImplementation "junit:junit:$junitVersion"
64
59
  testImplementation 'org.robolectric:robolectric:4.14.1'
65
60
  testImplementation 'androidx.test:core:1.7.0'
@@ -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-permissions",
3
- "version": "8.2.9",
3
+ "version": "9.0.0",
4
4
  "description": "Capacitor plugin for checking and requesting app permissions.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -13,7 +13,8 @@
13
13
  "ios/Sources",
14
14
  "ios/Tests",
15
15
  "Package.swift",
16
- "CapgoCapacitorPermissions.podspec"
16
+ "CapgoCapacitorPermissions.podspec",
17
+ "android/proguard-rules.pro"
17
18
  ],
18
19
  "author": "Martin Donadieu <martin@capgo.app>",
19
20
  "license": "MPL-2.0",
@@ -57,11 +58,11 @@
57
58
  "changelog:ai": "node scripts/generate-ai-changelog.mjs"
58
59
  },
59
60
  "devDependencies": {
60
- "@capacitor/android": "^8.3.4",
61
- "@capacitor/cli": "^8.3.4",
62
- "@capacitor/core": "^8.3.4",
61
+ "@capacitor/android": "^9.0.0",
62
+ "@capacitor/cli": "^9.0.0",
63
+ "@capacitor/core": "^9.0.0",
63
64
  "@capacitor/docgen": "^0.3.1",
64
- "@capacitor/ios": "^8.3.4",
65
+ "@capacitor/ios": "^9.0.0",
65
66
  "@eslint/js": "^10.0.1",
66
67
  "@ionic/prettier-config": "^4.0.0",
67
68
  "@ionic/swiftlint-config": "^2.0.0",
@@ -80,7 +81,7 @@
80
81
  "typescript-eslint": "^8.59.4"
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",