@carviz/capacitor-camera-preview 7.4.0 → 8.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 => 'https://github.com/GetCarviz/capacitor-camera-preview.git', :tag => s.version.to_s }
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '14.0'
14
+ s.ios.deployment_target = '15.0'
15
15
  s.dependency 'Capacitor'
16
16
  s.swift_version = '5.1'
17
17
  end
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  <h3 align="center">Capacitor Camera Preview</h3>
4
4
  <p align="center"><strong><code>@carviz/capacitor-camera-preview</code></strong></p>
5
5
  <br>
6
- <p align="center"><strong>CAPACITOR 7</strong></p><br>
6
+ <p align="center"><strong>CAPACITOR 8</strong></p><br>
7
7
 
8
8
  <p align="center">
9
9
  Capacitor plugin that allows camera interaction from Javascript and HTML<br>(based on <a href="https://github.com/capacitor-community/camera-preview" target="_blank">@capacitor-community/camera-preview</a> which itself was based on cordova-plugin-camera-preview).
@@ -13,7 +13,7 @@
13
13
 
14
14
  <br>
15
15
 
16
- Version 7 of this plugin requires Capacitor 7.
16
+ Version 8 of this plugin requires Capacitor 8.
17
17
 
18
18
  **PR's are greatly appreciated.**
19
19
 
@@ -1,9 +1,18 @@
1
1
  ext {
2
2
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
4
- androidxExifInterfaceVersion = project.hasProperty('androidxExifInterfaceVersion') ? rootProject.ext.androidxExifInterfaceVersion : '1.3.6'
5
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
6
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
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
+ androidxActivityVersion = project.hasProperty('androidxActivityVersion') ? rootProject.ext.androidxActivityVersion : '1.11.0'
7
+ androidxCoordinatorLayoutVersion = project.hasProperty('androidxCoordinatorLayoutVersion') ? rootProject.ext.androidxCoordinatorLayoutVersion : '1.3.0'
8
+ androidxCoreVersion = project.hasProperty('androidxCoreVersion') ? rootProject.ext.androidxCoreVersion : '1.17.0'
9
+ androidxFragmentVersion = project.hasProperty('androidxFragmentVersion') ? rootProject.ext.androidxFragmentVersion : '1.8.9'
10
+ firebaseMessagingVersion = project.hasProperty('firebaseMessagingVersion') ? rootProject.ext.firebaseMessagingVersion : '25.0.1'
11
+ androidxBrowserVersion = project.hasProperty('androidxBrowserVersion') ? rootProject.ext.androidxBrowserVersion : '1.9.0'
12
+ androidxMaterialVersion = project.hasProperty('androidxMaterialVersion') ? rootProject.ext.androidxMaterialVersion : '1.13.0'
13
+ androidxExifInterfaceVersion = project.hasProperty('androidxExifInterfaceVersion') ? rootProject.ext.androidxExifInterfaceVersion : '1.4.1'
14
+ coreSplashScreenVersion = project.hasProperty('coreSplashScreenVersion') ? rootProject.ext.coreSplashScreenVersion : '1.2.0'
15
+ androidxWebkitVersion = project.hasProperty('androidxWebkitVersion') ? rootProject.ext.androidxWebkitVersion : '1.14.0'
7
16
  }
8
17
 
9
18
  buildscript {
@@ -12,18 +21,18 @@ buildscript {
12
21
  google()
13
22
  }
14
23
  dependencies {
15
- classpath 'com.android.tools.build:gradle:8.6.0'
24
+ classpath 'com.android.tools.build:gradle:8.13.0'
16
25
  }
17
26
  }
18
27
 
19
28
  apply plugin: 'com.android.library'
20
29
 
21
30
  android {
22
- namespace "com.ahm.capacitor.camera.preview.capacitorcamerapreview"
23
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
31
+ namespace = "com.ahm.capacitor.camera.preview.capacitorcamerapreview"
32
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
24
33
  defaultConfig {
25
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
26
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
34
+ minSdkVersion = project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
35
+ targetSdkVersion = project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
27
36
  versionCode 1
28
37
  versionName "1.0"
29
38
  testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -35,7 +44,11 @@ android {
35
44
  }
36
45
  }
37
46
  lintOptions {
38
- abortOnError false
47
+ abortOnError = false
48
+ }
49
+ compileOptions {
50
+ sourceCompatibility JavaVersion.VERSION_21
51
+ targetCompatibility JavaVersion.VERSION_21
39
52
  }
40
53
  }
41
54
 
@@ -1,7 +1,7 @@
1
1
  #Fri Jan 31 23:28:23 EST 2025
2
2
  distributionBase=GRADLE_USER_HOME
3
3
  distributionPath=wrapper/dists
4
- distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
4
+ distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-all.zip
5
5
  networkTimeout=10000
6
6
  validateDistributionUrl=true
7
7
  zipStoreBase=GRADLE_USER_HOME
package/ios/Podfile CHANGED
@@ -1,4 +1,4 @@
1
- platform :ios, '14.0'
1
+ platform :ios, '15.0'
2
2
 
3
3
  def capacitor_pods
4
4
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
package/ios/Podfile.lock CHANGED
@@ -17,6 +17,6 @@ SPEC CHECKSUMS:
17
17
  Capacitor: 79e40e5e76f852965dce30406c65253fa154e24a
18
18
  CapacitorCordova: 5dc3912d25ef770a3fe0f431bb65c9fbfa2e92f9
19
19
 
20
- PODFILE CHECKSUM: 67f8d0d29925a47d3223356b6b7813c3a09347fc
20
+ PODFILE CHECKSUM: f84e6154792d657cb58b5483e047fb158aa472c0
21
21
 
22
22
  COCOAPODS: 1.15.2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carviz/capacitor-camera-preview",
3
- "version": "7.4.0",
3
+ "version": "8.0.0",
4
4
  "description": "Fork of the capacitor-community/camera-preview plugin focusing on high resolution photos without bloating up the code.",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.cjs.js",
@@ -12,13 +12,13 @@
12
12
  "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
13
13
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
14
14
  "verify:web": "npm run build",
15
- "build": "npm run clean && tsc && rollup -c rollup.config.js",
15
+ "build": "npm run clean && tsc && rollup -c rollup.config.mjs",
16
16
  "clean": "rimraf './dist'",
17
17
  "watch": "tsc --watch",
18
18
  "lint": "concurrently -g \"npm:eslint\" \"npm:prettier -- --check\" \"npm run swiftlint -- lint ios\"",
19
19
  "fmt": "concurrently -g \"npm:eslint -- --fix\" \"npm:prettier -- --write\" \"npm:swiftlint -- lint --fix --format ios\"",
20
20
  "eslint": "eslint . --ext ts",
21
- "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
21
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
22
22
  "swiftlint": "node-swiftlint",
23
23
  "prepublishOnly": "npm run build",
24
24
  "prepare": "husky && npm run build"
@@ -32,20 +32,20 @@
32
32
  "@capacitor/ios": "^8.0.0",
33
33
  "@ionic/eslint-config": "^0.4.0",
34
34
  "@ionic/prettier-config": "^4.0.0",
35
- "@ionic/swiftlint-config": "^1.1.2",
35
+ "@ionic/swiftlint-config": "^2.0.0",
36
36
  "concurrently": "^8.2.2",
37
37
  "eslint": "^8.57.1",
38
38
  "husky": "^9.1.7",
39
- "prettier": "^3.7.4",
39
+ "prettier": "^3.6.2",
40
40
  "prettier-plugin-java": "^2.7.7",
41
41
  "pretty-quick": "^4.2.2",
42
- "rimraf": "^6.1.2",
43
- "rollup": "^4.53.5",
44
- "swiftlint": "^1.0.2",
42
+ "rimraf": "^6.1.0",
43
+ "rollup": "^4.53.2",
44
+ "swiftlint": "^2.0.0",
45
45
  "typescript": "^5.9.3"
46
46
  },
47
47
  "peerDependencies": {
48
- "@capacitor/core": "^7.0.1"
48
+ "@capacitor/core": ">=8.0.0"
49
49
  },
50
50
  "husky": {
51
51
  "hooks": {
@@ -83,4 +83,4 @@
83
83
  "bugs": {
84
84
  "url": "https://github.com/GetCarviz/capacitor-camera-preview/issues"
85
85
  }
86
- }
86
+ }