@carviz/capacitor-camera-preview 7.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.
Files changed (56) hide show
  1. package/CarvizCapacitorCameraPreview.podspec +17 -0
  2. package/LICENSE +22 -0
  3. package/README.md +229 -0
  4. package/android/.project +17 -0
  5. package/android/build.gradle +57 -0
  6. package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  7. package/android/gradle/wrapper/gradle-wrapper.properties +8 -0
  8. package/android/gradle.properties +18 -0
  9. package/android/gradlew +248 -0
  10. package/android/gradlew.bat +92 -0
  11. package/android/proguard-rules.pro +21 -0
  12. package/android/settings.gradle +2 -0
  13. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +26 -0
  14. package/android/src/main/AndroidManifest.xml +5 -0
  15. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +831 -0
  16. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +396 -0
  17. package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomSurfaceView.java +23 -0
  18. package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomTextureView.java +29 -0
  19. package/android/src/main/java/com/ahm/capacitor/camera/preview/Preview.java +384 -0
  20. package/android/src/main/java/com/ahm/capacitor/camera/preview/TapGestureDetector.java +24 -0
  21. package/android/src/main/res/layout/bridge_layout_main.xml +15 -0
  22. package/android/src/main/res/layout/camera_activity.xml +68 -0
  23. package/android/src/main/res/values/camera_ids.xml +4 -0
  24. package/android/src/main/res/values/camera_theme.xml +9 -0
  25. package/android/src/main/res/values/colors.xml +3 -0
  26. package/android/src/main/res/values/strings.xml +3 -0
  27. package/android/src/main/res/values/styles.xml +3 -0
  28. package/android/src/test/java/com/getcapacitor/ExampleUnitTest.java +18 -0
  29. package/dist/esm/definitions.d.ts +86 -0
  30. package/dist/esm/definitions.js +2 -0
  31. package/dist/esm/definitions.js.map +1 -0
  32. package/dist/esm/index.d.ts +4 -0
  33. package/dist/esm/index.js +7 -0
  34. package/dist/esm/index.js.map +1 -0
  35. package/dist/esm/web.d.ts +24 -0
  36. package/dist/esm/web.js +120 -0
  37. package/dist/esm/web.js.map +1 -0
  38. package/dist/plugin.cjs.js +134 -0
  39. package/dist/plugin.cjs.js.map +1 -0
  40. package/dist/plugin.js +137 -0
  41. package/dist/plugin.js.map +1 -0
  42. package/ios/Plugin/CameraController.swift +483 -0
  43. package/ios/Plugin/Info.plist +24 -0
  44. package/ios/Plugin/Plugin.h +10 -0
  45. package/ios/Plugin/Plugin.m +16 -0
  46. package/ios/Plugin/Plugin.swift +324 -0
  47. package/ios/Plugin/UIImage.swift +56 -0
  48. package/ios/Plugin.xcodeproj/project.pbxproj +599 -0
  49. package/ios/Plugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  50. package/ios/Plugin.xcworkspace/contents.xcworkspacedata +10 -0
  51. package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  52. package/ios/PluginTests/Info.plist +22 -0
  53. package/ios/PluginTests/PluginTests.swift +16 -0
  54. package/ios/Podfile +16 -0
  55. package/ios/Podfile.lock +22 -0
  56. package/package.json +85 -0
package/ios/Podfile ADDED
@@ -0,0 +1,16 @@
1
+ platform :ios, '14.0'
2
+
3
+ def capacitor_pods
4
+ # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
5
+ use_frameworks!
6
+ pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
7
+ pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
8
+ end
9
+
10
+ target 'Plugin' do
11
+ capacitor_pods
12
+ end
13
+
14
+ target 'PluginTests' do
15
+ capacitor_pods
16
+ end
@@ -0,0 +1,22 @@
1
+ PODS:
2
+ - Capacitor (7.0.1):
3
+ - CapacitorCordova
4
+ - CapacitorCordova (7.0.1)
5
+
6
+ DEPENDENCIES:
7
+ - "Capacitor (from `../node_modules/@capacitor/ios`)"
8
+ - "CapacitorCordova (from `../node_modules/@capacitor/ios`)"
9
+
10
+ EXTERNAL SOURCES:
11
+ Capacitor:
12
+ :path: "../node_modules/@capacitor/ios"
13
+ CapacitorCordova:
14
+ :path: "../node_modules/@capacitor/ios"
15
+
16
+ SPEC CHECKSUMS:
17
+ Capacitor: 23fff43571a4d1e3ee7d67b5a3588c6e757c2913
18
+ CapacitorCordova: 63d476958d5022d76f197031e8b7ea3519988c64
19
+
20
+ PODFILE CHECKSUM: 67f8d0d29925a47d3223356b6b7813c3a09347fc
21
+
22
+ COCOAPODS: 1.15.2
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@carviz/capacitor-camera-preview",
3
+ "version": "7.0.0",
4
+ "description": "Fork of the capacitor-community/camera-preview plugin focusing on high resolution photos without bloating up the code.",
5
+ "type": "module",
6
+ "main": "dist/plugin.cjs.js",
7
+ "module": "dist/esm/index.js",
8
+ "types": "dist/esm/index.d.ts",
9
+ "unpkg": "dist/plugin.js",
10
+ "scripts": {
11
+ "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
12
+ "verify:ios": "cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..",
13
+ "verify:android": "cd android && ./gradlew clean build test && cd ..",
14
+ "verify:web": "npm run build",
15
+ "build": "npm run clean && tsc && rollup -c rollup.config.js",
16
+ "clean": "rimraf './dist'",
17
+ "watch": "tsc --watch",
18
+ "lint": "concurrently -g \"npm:eslint\" \"npm:prettier -- --check\" \"npm run swiftlint -- lint ios\"",
19
+ "fmt": "concurrently -g \"npm:eslint -- --fix\" \"npm:prettier -- --write\" \"npm:swiftlint -- lint --fix --format ios\"",
20
+ "eslint": "eslint . --ext ts",
21
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
22
+ "swiftlint": "node-swiftlint",
23
+ "prepublishOnly": "npm run build",
24
+ "prepare": "husky && npm run build"
25
+ },
26
+ "author": "Michael Wolz",
27
+ "license": "MIT",
28
+ "devDependencies": {
29
+ "@capacitor/android": "^7.0.1",
30
+ "@capacitor/core": "^7.0.1",
31
+ "@capacitor/ios": "^7.0.1",
32
+ "@ionic/eslint-config": "^0.4.0",
33
+ "@ionic/prettier-config": "^4.0.0",
34
+ "@ionic/swiftlint-config": "^1.1.2",
35
+ "concurrently": "^8.2.2",
36
+ "eslint": "^8.57.0",
37
+ "husky": "^9.1.4",
38
+ "prettier": "^3.3.3",
39
+ "prettier-plugin-java": "^2.6.4",
40
+ "pretty-quick": "^4.0.0",
41
+ "rimraf": "^6.0.1",
42
+ "rollup": "^4.20.0",
43
+ "swiftlint": "^1.0.2",
44
+ "typescript": "^5.5.4"
45
+ },
46
+ "peerDependencies": {
47
+ "@capacitor/core": "^7.0.1"
48
+ },
49
+ "husky": {
50
+ "hooks": {
51
+ "pre-commit": "pretty-quick --staged"
52
+ }
53
+ },
54
+ "files": [
55
+ "dist/",
56
+ "ios/",
57
+ "android/",
58
+ "CarvizCapacitorCameraPreview.podspec"
59
+ ],
60
+ "keywords": [
61
+ "capacitor",
62
+ "plugin",
63
+ "native"
64
+ ],
65
+ "capacitor": {
66
+ "ios": {
67
+ "src": "ios"
68
+ },
69
+ "android": {
70
+ "src": "android"
71
+ }
72
+ },
73
+ "prettier": "@ionic/prettier-config",
74
+ "swiftlint": "@ionic/swiftlint-config",
75
+ "eslintConfig": {
76
+ "extends": "@ionic/eslint-config/recommended"
77
+ },
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "https://github.com/GetCarviz/capacitor-camera-preview"
81
+ },
82
+ "bugs": {
83
+ "url": "https://github.com/GetCarviz/capacitor-camera-preview/issues"
84
+ }
85
+ }