@capacitor/contacts 1.1.0 → 2.0.0-next.2

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.frameworks = 'Contacts', 'ContactsUI'
16
16
  s.dependency 'Capacitor'
17
17
  s.swift_version = '5.1'
package/Package.swift CHANGED
@@ -3,21 +3,20 @@ import PackageDescription
3
3
 
4
4
  let package = Package(
5
5
  name: "CapacitorContacts",
6
- platforms: [.iOS(.v15)],
6
+ platforms: [.iOS(.v16)],
7
7
  products: [
8
8
  .library(
9
9
  name: "CapacitorContacts",
10
10
  targets: ["ContactsPlugin"])
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-beta.0")
14
14
  ],
15
15
  targets: [
16
16
  .target(
17
17
  name: "ContactsPlugin",
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/ContactsPlugin"),
23
22
  .testTarget(
@@ -1,14 +1,13 @@
1
1
  ext {
2
2
  capacitorVersion = System.getenv('CAPACITOR_VERSION')
3
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
4
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
5
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
6
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
7
- androidxCoreKTXVersion = project.hasProperty('androidxCoreKTXVersion') ? rootProject.ext.androidxCoreKTXVersion : '1.17.0'
3
+ junitVersion = rootProject.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
4
+ androidxAppCompatVersion = rootProject.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.8.0'
5
+ androidxJunitVersion = rootProject.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
6
+ androidxEspressoCoreVersion = rootProject.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
7
+ androidxCoreVersion = rootProject.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.19.1'
8
8
  }
9
9
 
10
10
  buildscript {
11
- ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
12
11
  repositories {
13
12
  google()
14
13
  mavenCentral()
@@ -17,8 +16,7 @@ buildscript {
17
16
  }
18
17
  }
19
18
  dependencies {
20
- classpath 'com.android.tools.build:gradle:8.13.0'
21
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
19
+ classpath 'com.android.tools.build:gradle:9.4.1'
22
20
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
23
21
  classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
24
22
  }
@@ -27,9 +25,6 @@ buildscript {
27
25
 
28
26
 
29
27
  apply plugin: 'com.android.library'
30
- if (project.extensions.findByName('kotlin') == null) {
31
- apply plugin: 'kotlin-android'
32
- }
33
28
 
34
29
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
35
30
  apply plugin: 'io.github.gradle-nexus.publish-plugin'
@@ -39,10 +34,10 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
39
34
 
40
35
  android {
41
36
  namespace = "com.capacitorjs.plugins.contacts"
42
- compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
37
+ compileSdk = rootProject.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 37
43
38
  defaultConfig {
44
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
45
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
39
+ consumerProguardFiles "proguard-rules.pro"
40
+ minSdkVersion rootProject.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
46
41
  versionCode 1
47
42
  versionName "1.0"
48
43
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -83,7 +78,7 @@ dependencies {
83
78
  implementation project(':capacitor-android')
84
79
  }
85
80
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
86
- implementation "androidx.core:core-ktx:$androidxCoreKTXVersion"
81
+ implementation "androidx.core:core:$androidxCoreVersion"
87
82
  testImplementation "junit:junit:$junitVersion"
88
83
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
89
84
  androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
@@ -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": "@capacitor/contacts",
3
- "version": "1.1.0",
3
+ "version": "2.0.0-next.2",
4
4
  "description": "Access, search, pick, create, update and remove device contacts.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -15,7 +15,8 @@
15
15
  "android/src/main/",
16
16
  "dist/",
17
17
  "ios/Sources",
18
- "ios/Tests"
18
+ "ios/Tests",
19
+ "android/proguard-rules.pro"
19
20
  ],
20
21
  "author": "OutSystems <support@outsystems.com>",
21
22
  "license": "MIT",
@@ -38,26 +39,25 @@
38
39
  "verify:web": "npm run build",
39
40
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
40
41
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
41
- "eslint": "eslint . --ext ts",
42
+ "eslint": "eslint .",
42
43
  "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
43
44
  "swiftlint": "node-swiftlint",
44
45
  "docgen": "docgen --api ContactsPlugin --output-readme README.md --output-json dist/docs.json",
45
46
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
46
47
  "clean": "rimraf ./dist",
47
48
  "watch": "tsc --watch",
48
- "prepare": "npm run build",
49
49
  "prepublishOnly": "npm run build",
50
50
  "publish:cocoapod": "pod trunk push ./CapacitorContacts.podspec --allow-warnings"
51
51
  },
52
52
  "devDependencies": {
53
- "@capacitor/android": "^8.0.0",
54
- "@capacitor/core": "^8.0.0",
53
+ "@capacitor/android": "next",
54
+ "@capacitor/core": "next",
55
55
  "@capacitor/docgen": "^0.3.1",
56
- "@capacitor/ios": "^8.0.0",
57
- "@ionic/eslint-config": "^0.4.0",
56
+ "@capacitor/ios": "next",
57
+ "@ionic/eslint-config": "^0.5.0",
58
58
  "@ionic/prettier-config": "^4.0.0",
59
59
  "@ionic/swiftlint-config": "^2.0.0",
60
- "eslint": "^8.57.1",
60
+ "eslint": "^10.0.0",
61
61
  "prettier": "^3.6.2",
62
62
  "prettier-plugin-java": "^2.7.7",
63
63
  "rimraf": "^6.1.0",
@@ -71,13 +71,10 @@
71
71
  "semantic-release": "^25.0.2"
72
72
  },
73
73
  "peerDependencies": {
74
- "@capacitor/core": ">=8.0.0"
74
+ "@capacitor/core": ">=9.0.0-beta.0"
75
75
  },
76
76
  "prettier": "@ionic/prettier-config",
77
77
  "swiftlint": "@ionic/swiftlint-config",
78
- "eslintConfig": {
79
- "extends": "@ionic/eslint-config/recommended"
80
- },
81
78
  "capacitor": {
82
79
  "ios": {
83
80
  "src": "ios"