@capacitor-community/camera-preview 5.0.0-0 → 5.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 (100) hide show
  1. package/README.md +19 -13
  2. package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
  4. package/android/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
  5. package/android/.gradle/8.0.2/executionHistory/executionHistory.bin +0 -0
  6. package/android/.gradle/8.0.2/executionHistory/executionHistory.lock +0 -0
  7. package/android/.gradle/8.0.2/fileHashes/fileHashes.bin +0 -0
  8. package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
  9. package/android/.gradle/8.0.2/fileHashes/resourceHashesCache.bin +0 -0
  10. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  11. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  12. package/android/.gradle/file-system.probe +0 -0
  13. package/android/build.gradle +3 -2
  14. package/android/src/androidTest/java/com/getcapacitor/android/ExampleInstrumentedTest.java +3 -3
  15. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +5 -7
  16. package/dist/esm/definitions.d.ts +2 -0
  17. package/dist/esm/index.d.ts +1 -1
  18. package/dist/esm/index.js.map +1 -1
  19. package/dist/esm/web.d.ts +3 -3
  20. package/dist/esm/web.js +14 -10
  21. package/dist/esm/web.js.map +1 -1
  22. package/dist/plugin.cjs.js +155 -0
  23. package/dist/plugin.cjs.js.map +1 -0
  24. package/dist/plugin.js +158 -0
  25. package/dist/plugin.js.map +1 -0
  26. package/ios/Plugin/CameraController.swift +1 -1
  27. package/ios/Plugin/Plugin.swift +5 -5
  28. package/ios/Podfile +7 -4
  29. package/ios/Podfile.lock +9 -10
  30. package/ios/Pods/CapacitorCordova/LICENSE +23 -0
  31. package/ios/Pods/CapacitorCordova/README.md +39 -0
  32. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/CapacitorCordova.h +21 -0
  33. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.h +8 -0
  34. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.m +5 -0
  35. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDV.h +28 -0
  36. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVAvailability.h +109 -0
  37. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegate.h +51 -0
  38. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.h +39 -0
  39. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.m +154 -0
  40. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.h +31 -0
  41. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.m +81 -0
  42. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.h +52 -0
  43. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.m +116 -0
  44. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.h +81 -0
  45. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.m +154 -0
  46. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h +25 -0
  47. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.m +77 -0
  48. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.h +82 -0
  49. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.m +216 -0
  50. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVScreenOrientationDelegate.h +33 -0
  51. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.h +41 -0
  52. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.m +399 -0
  53. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.h +27 -0
  54. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.m +74 -0
  55. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.h +27 -0
  56. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.m +156 -0
  57. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.h +30 -0
  58. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.m +34 -0
  59. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.h +35 -0
  60. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.m +63 -0
  61. package/ios/Pods/Local Podspecs/Capacitor.podspec.json +34 -0
  62. package/ios/Pods/Local Podspecs/CapacitorCordova.podspec.json +26 -0
  63. package/ios/Pods/Manifest.lock +22 -0
  64. package/ios/Pods/Pods.xcodeproj/project.pbxproj +1374 -0
  65. package/ios/Pods/Pods.xcodeproj/xcuserdata/julionic.xcuserdatad/xcschemes/Capacitor.xcscheme +58 -0
  66. package/ios/Pods/Pods.xcodeproj/xcuserdata/julionic.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +58 -0
  67. package/ios/Pods/Pods.xcodeproj/xcuserdata/julionic.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +58 -0
  68. package/ios/Pods/Pods.xcodeproj/xcuserdata/julionic.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +58 -0
  69. package/ios/Pods/Pods.xcodeproj/xcuserdata/julionic.xcuserdatad/xcschemes/xcschememanagement.plist +31 -0
  70. package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +26 -0
  71. package/ios/Pods/Target Support Files/Capacitor/Capacitor-dummy.m +5 -0
  72. package/ios/Pods/Target Support Files/Capacitor/Capacitor-prefix.pch +12 -0
  73. package/ios/Pods/Target Support Files/Capacitor/Capacitor.debug.xcconfig +15 -0
  74. package/ios/Pods/Target Support Files/Capacitor/Capacitor.modulemap +8 -0
  75. package/ios/Pods/Target Support Files/Capacitor/Capacitor.release.xcconfig +15 -0
  76. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +26 -0
  77. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-dummy.m +5 -0
  78. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-prefix.pch +12 -0
  79. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-umbrella.h +32 -0
  80. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.debug.xcconfig +12 -0
  81. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.modulemap +6 -0
  82. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.release.xcconfig +12 -0
  83. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-Info.plist +26 -0
  84. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.markdown +53 -0
  85. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.plist +91 -0
  86. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-dummy.m +5 -0
  87. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-umbrella.h +16 -0
  88. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +14 -0
  89. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.modulemap +6 -0
  90. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +14 -0
  91. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-Info.plist +26 -0
  92. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.markdown +53 -0
  93. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.plist +91 -0
  94. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-dummy.m +5 -0
  95. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +188 -0
  96. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-umbrella.h +16 -0
  97. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +15 -0
  98. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.modulemap +6 -0
  99. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +15 -0
  100. package/package.json +17 -7
@@ -0,0 +1,30 @@
1
+ /*
2
+ Licensed to the Apache Software Foundation (ASF) under one
3
+ or more contributor license agreements. See the NOTICE file
4
+ distributed with this work for additional information
5
+ regarding copyright ownership. The ASF licenses this file
6
+ to you under the Apache License, Version 2.0 (the
7
+ "License"); you may not use this file except in compliance
8
+ with the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing,
13
+ software distributed under the License is distributed on an
14
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ KIND, either express or implied. See the License for the
16
+ specific language governing permissions and limitations
17
+ under the License.
18
+ */
19
+
20
+ #import <UIKit/UIKit.h>
21
+
22
+ @interface CDVViewController : UIViewController
23
+
24
+ @property (nonatomic, readonly, strong) NSMutableDictionary* pluginObjects;
25
+ @property (nonatomic, readonly, strong) NSMutableDictionary* settings;
26
+ @property (nonatomic, readonly, weak) UIView* webView;
27
+
28
+ - (id) getCommandInstance:(NSString*)className;
29
+
30
+ @end
@@ -0,0 +1,34 @@
1
+ /*
2
+ Licensed to the Apache Software Foundation (ASF) under one
3
+ or more contributor license agreements. See the NOTICE file
4
+ distributed with this work for additional information
5
+ regarding copyright ownership. The ASF licenses this file
6
+ to you under the Apache License, Version 2.0 (the
7
+ "License"); you may not use this file except in compliance
8
+ with the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing,
13
+ software distributed under the License is distributed on an
14
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ KIND, either express or implied. See the License for the
16
+ specific language governing permissions and limitations
17
+ under the License.
18
+ */
19
+
20
+
21
+ #import "CDVViewController.h"
22
+
23
+ @interface CDVViewController () {
24
+
25
+ }
26
+
27
+
28
+ @property (nonatomic, readwrite, strong) NSMutableDictionary* pluginObjects;
29
+
30
+ @end
31
+
32
+ @implementation CDVViewController
33
+
34
+ @end
@@ -0,0 +1,35 @@
1
+ /*
2
+ Licensed to the Apache Software Foundation (ASF) under one
3
+ or more contributor license agreements. See the NOTICE file
4
+ distributed with this work for additional information
5
+ regarding copyright ownership. The ASF licenses this file
6
+ to you under the Apache License, Version 2.0 (the
7
+ "License"); you may not use this file except in compliance
8
+ with the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing,
13
+ software distributed under the License is distributed on an
14
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ KIND, either express or implied. See the License for the
16
+ specific language governing permissions and limitations
17
+ under the License.
18
+ */
19
+
20
+ #import <Foundation/Foundation.h>
21
+ #import <UIKit/UIKit.h>
22
+
23
+ @interface NSDictionary (CordovaPreferences)
24
+
25
+ - (id)cordovaSettingForKey:(NSString*)key;
26
+ - (BOOL)cordovaBoolSettingForKey:(NSString*)key defaultValue:(BOOL)defaultValue;
27
+ - (CGFloat)cordovaFloatSettingForKey:(NSString*)key defaultValue:(CGFloat)defaultValue;
28
+
29
+ @end
30
+
31
+ @interface NSMutableDictionary (CordovaPreferences)
32
+
33
+ - (void)setCordovaSetting:(id)value forKey:(NSString*)key;
34
+
35
+ @end
@@ -0,0 +1,63 @@
1
+ /*
2
+ Licensed to the Apache Software Foundation (ASF) under one
3
+ or more contributor license agreements. See the NOTICE file
4
+ distributed with this work for additional information
5
+ regarding copyright ownership. The ASF licenses this file
6
+ to you under the Apache License, Version 2.0 (the
7
+ "License"); you may not use this file except in compliance
8
+ with the License. You may obtain a copy of the License at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ Unless required by applicable law or agreed to in writing,
13
+ software distributed under the License is distributed on an
14
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
+ KIND, either express or implied. See the License for the
16
+ specific language governing permissions and limitations
17
+ under the License.
18
+ */
19
+
20
+ #import "NSDictionary+CordovaPreferences.h"
21
+ #import <Foundation/Foundation.h>
22
+
23
+ @implementation NSDictionary (CordovaPreferences)
24
+
25
+ - (id)cordovaSettingForKey:(NSString*)key
26
+ {
27
+ return [self objectForKey:[key lowercaseString]];
28
+ }
29
+
30
+ - (BOOL)cordovaBoolSettingForKey:(NSString*)key defaultValue:(BOOL)defaultValue
31
+ {
32
+ BOOL value = defaultValue;
33
+ id prefObj = [self cordovaSettingForKey:key];
34
+
35
+ if (prefObj != nil) {
36
+ value = [(NSNumber*)prefObj boolValue];
37
+ }
38
+
39
+ return value;
40
+ }
41
+
42
+ - (CGFloat)cordovaFloatSettingForKey:(NSString*)key defaultValue:(CGFloat)defaultValue
43
+ {
44
+ CGFloat value = defaultValue;
45
+ id prefObj = [self cordovaSettingForKey:key];
46
+
47
+ if (prefObj != nil) {
48
+ value = [prefObj floatValue];
49
+ }
50
+
51
+ return value;
52
+ }
53
+
54
+ @end
55
+
56
+ @implementation NSMutableDictionary (CordovaPreferences)
57
+
58
+ - (void)setCordovaSetting:(id)value forKey:(NSString*)key
59
+ {
60
+ [self setObject:value forKey:[key lowercaseString]];
61
+ }
62
+
63
+ @end
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "Capacitor",
3
+ "version": "5.0.3",
4
+ "summary": "Capacitor for iOS",
5
+ "social_media_url": "https://twitter.com/capacitorjs",
6
+ "license": "MIT",
7
+ "homepage": "https://capacitorjs.com/",
8
+ "platforms": {
9
+ "ios": "13.0"
10
+ },
11
+ "authors": {
12
+ "Ionic Team": "hi@ionicframework.com"
13
+ },
14
+ "source": {
15
+ "git": "https://github.com/ionic-team/capacitor.git",
16
+ "tag": "5.0.3"
17
+ },
18
+ "source_files": [
19
+ "Capacitor/Capacitor/*.{swift,h,m}",
20
+ "Capacitor/Capacitor/Plugins/*.{swift,h,m}",
21
+ "Capacitor/Capacitor/Plugins/**/*.{swift,h,m}"
22
+ ],
23
+ "module_map": "Capacitor/Capacitor/Capacitor.modulemap",
24
+ "resources": [
25
+ "Capacitor/Capacitor/assets/native-bridge.js"
26
+ ],
27
+ "dependencies": {
28
+ "CapacitorCordova": [
29
+
30
+ ]
31
+ },
32
+ "swift_versions": "5.1",
33
+ "swift_version": "5.1"
34
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "CapacitorCordova",
3
+ "module_name": "Cordova",
4
+ "version": "5.0.3",
5
+ "summary": "Capacitor Cordova Compatibility Layer",
6
+ "homepage": "https://capacitorjs.com",
7
+ "license": "MIT",
8
+ "authors": {
9
+ "Ionic Team": "hi@ionicframework.com"
10
+ },
11
+ "source": {
12
+ "git": "https://github.com/ionic-team/capacitor",
13
+ "tag": "5.0.3"
14
+ },
15
+ "platforms": {
16
+ "ios": "13.0"
17
+ },
18
+ "source_files": "CapacitorCordova/CapacitorCordova/**/*.{h,m}",
19
+ "public_header_files": [
20
+ "CapacitorCordova/CapacitorCordova/Classes/Public/*.h",
21
+ "CapacitorCordova/CapacitorCordova/CapacitorCordova.h"
22
+ ],
23
+ "module_map": "CapacitorCordova/CapacitorCordova/CapacitorCordova.modulemap",
24
+ "requires_arc": true,
25
+ "frameworks": "WebKit"
26
+ }
@@ -0,0 +1,22 @@
1
+ PODS:
2
+ - Capacitor (5.0.3):
3
+ - CapacitorCordova
4
+ - CapacitorCordova (5.0.3)
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: 304a960e431f9e6f78556554ca71c41c1b2b9680
18
+ CapacitorCordova: def732a63679698df6fb392bbe6d269a0b61e937
19
+
20
+ PODFILE CHECKSUM: 14e8b2400457751b865e1c327e7cfa1c6fa67da6
21
+
22
+ COCOAPODS: 1.11.3