@capacitor-community/camera-preview 2.0.0-beta.0 → 2.0.0-beta.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.
Files changed (95) hide show
  1. package/CapacitorCommunityCameraPreview.podspec +3 -2
  2. package/LICENSE +21 -0
  3. package/README.md +46 -57
  4. package/android/build.gradle +4 -4
  5. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +127 -118
  6. package/dist/esm/definitions.d.ts +9 -5
  7. package/dist/esm/definitions.js +1 -0
  8. package/dist/esm/index.d.ts +3 -1
  9. package/dist/esm/index.js +5 -1
  10. package/dist/esm/index.js.map +1 -1
  11. package/dist/esm/web.d.ts +7 -1
  12. package/dist/esm/web.js +89 -77
  13. package/dist/esm/web.js.map +1 -1
  14. package/ios/Plugin/CameraController.swift +155 -48
  15. package/ios/Plugin/Plugin.m +3 -0
  16. package/ios/Plugin/Plugin.swift +125 -46
  17. package/ios/Plugin.xcodeproj/project.pbxproj +2 -6
  18. package/ios/Podfile +2 -2
  19. package/ios/Podfile.lock +4 -4
  20. package/package.json +7 -6
  21. package/android/local.properties +0 -8
  22. package/ios/Plugin.xcodeproj/xcuserdata/ahernandez.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  23. package/ios/Plugin.xcodeproj/xcuserdata/nielsvanharen.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  24. package/ios/Plugin.xcworkspace/xcuserdata/ahernandez.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  25. package/ios/Plugin.xcworkspace/xcuserdata/arielhernandezmusa.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  26. package/ios/Plugin.xcworkspace/xcuserdata/nielsvanharen.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  27. package/ios/Pods/CapacitorCordova/LICENSE +0 -23
  28. package/ios/Pods/CapacitorCordova/README.md +0 -39
  29. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/CapacitorCordova.h +0 -21
  30. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.h +0 -8
  31. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/AppDelegate.m +0 -5
  32. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDV.h +0 -28
  33. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVAvailability.h +0 -109
  34. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegate.h +0 -51
  35. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.h +0 -39
  36. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVCommandDelegateImpl.m +0 -154
  37. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.h +0 -31
  38. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVConfigParser.m +0 -81
  39. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.h +0 -52
  40. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVInvokedUrlCommand.m +0 -116
  41. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.h +0 -81
  42. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPlugin.m +0 -154
  43. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.h +0 -25
  44. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginManager.m +0 -77
  45. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.h +0 -82
  46. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVPluginResult.m +0 -216
  47. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVScreenOrientationDelegate.h +0 -33
  48. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.h +0 -41
  49. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUIWebViewDelegate.m +0 -399
  50. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.h +0 -27
  51. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVURLProtocol.m +0 -74
  52. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.h +0 -27
  53. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVUserAgentUtil.m +0 -156
  54. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.h +0 -30
  55. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/CDVViewController.m +0 -34
  56. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.h +0 -35
  57. package/ios/Pods/CapacitorCordova/ios/CapacitorCordova/CapacitorCordova/Classes/Public/NSDictionary+CordovaPreferences.m +0 -63
  58. package/ios/Pods/Local Podspecs/Capacitor.podspec.json +0 -31
  59. package/ios/Pods/Manifest.lock +0 -23
  60. package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -1296
  61. package/ios/Pods/Pods.xcodeproj/xcuserdata/ahernandez.xcuserdatad/xcschemes/Capacitor.xcscheme +0 -60
  62. package/ios/Pods/Pods.xcodeproj/xcuserdata/ahernandez.xcuserdatad/xcschemes/CapacitorCordova.xcscheme +0 -58
  63. package/ios/Pods/Pods.xcodeproj/xcuserdata/ahernandez.xcuserdatad/xcschemes/Pods-Plugin.xcscheme +0 -58
  64. package/ios/Pods/Pods.xcodeproj/xcuserdata/ahernandez.xcuserdatad/xcschemes/Pods-PluginTests.xcscheme +0 -58
  65. package/ios/Pods/Pods.xcodeproj/xcuserdata/ahernandez.xcuserdatad/xcschemes/xcschememanagement.plist +0 -39
  66. package/ios/Pods/Target Support Files/Capacitor/Capacitor-Info.plist +0 -26
  67. package/ios/Pods/Target Support Files/Capacitor/Capacitor-dummy.m +0 -5
  68. package/ios/Pods/Target Support Files/Capacitor/Capacitor-prefix.pch +0 -12
  69. package/ios/Pods/Target Support Files/Capacitor/Capacitor.debug.xcconfig +0 -13
  70. package/ios/Pods/Target Support Files/Capacitor/Capacitor.modulemap +0 -7
  71. package/ios/Pods/Target Support Files/Capacitor/Capacitor.release.xcconfig +0 -13
  72. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-Info.plist +0 -26
  73. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-dummy.m +0 -5
  74. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-prefix.pch +0 -12
  75. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova-umbrella.h +0 -32
  76. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.debug.xcconfig +0 -12
  77. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.modulemap +0 -6
  78. package/ios/Pods/Target Support Files/CapacitorCordova/CapacitorCordova.release.xcconfig +0 -12
  79. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-Info.plist +0 -26
  80. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.markdown +0 -57
  81. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-acknowledgements.plist +0 -95
  82. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-dummy.m +0 -5
  83. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin-umbrella.h +0 -16
  84. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig +0 -13
  85. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.modulemap +0 -6
  86. package/ios/Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig +0 -13
  87. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-Info.plist +0 -26
  88. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.markdown +0 -57
  89. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-acknowledgements.plist +0 -95
  90. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-dummy.m +0 -5
  91. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-frameworks.sh +0 -187
  92. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests-umbrella.h +0 -16
  93. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig +0 -14
  94. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.modulemap +0 -6
  95. package/ios/Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig +0 -14
@@ -1,30 +0,0 @@
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
@@ -1,34 +0,0 @@
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
@@ -1,35 +0,0 @@
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
@@ -1,63 +0,0 @@
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
@@ -1,31 +0,0 @@
1
- {
2
- "name": "Capacitor",
3
- "version": "3.0.0-beta.1",
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": "12.0"
10
- },
11
- "authors": {
12
- "Ionic Team": "hi@ionicframework.com"
13
- },
14
- "source": {
15
- "git": "https://github.com/ionic-team/capacitor.git",
16
- "tag": "3.0.0-beta.1"
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
- "dependencies": {
25
- "CapacitorCordova": [
26
-
27
- ]
28
- },
29
- "swift_versions": "5.0",
30
- "swift_version": "5.0"
31
- }
@@ -1,23 +0,0 @@
1
- PODS:
2
- - Capacitor (3.0.0-beta.1):
3
- - CapacitorCordova
4
- - CapacitorCordova (2.0.1)
5
-
6
- DEPENDENCIES:
7
- - "Capacitor (from `../node_modules/@capacitor/ios`)"
8
-
9
- SPEC REPOS:
10
- trunk:
11
- - CapacitorCordova
12
-
13
- EXTERNAL SOURCES:
14
- Capacitor:
15
- :path: "../node_modules/@capacitor/ios"
16
-
17
- SPEC CHECKSUMS:
18
- Capacitor: 6cc2d51ca434c0ec2371c813f08d8dddf7905ef1
19
- CapacitorCordova: 9fee2eb6780331b6ff09710d6a7d1f2e4707f1b9
20
-
21
- PODFILE CHECKSUM: 38d083712967e4c216faff8d0b7c5eb7faa2b523
22
-
23
- COCOAPODS: 1.10.0