capacitor-community-multilens-camerapreview 0.0.11-a → 5.0.1

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 (37) hide show
  1. package/CapacitorCommunityMultilensCamerapreview.podspec +17 -17
  2. package/README.md +16 -26
  3. package/android/build.gradle +55 -55
  4. package/android/src/main/AndroidManifest.xml +4 -4
  5. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +1008 -1008
  6. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +544 -544
  7. package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomSurfaceView.java +23 -23
  8. package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomTextureView.java +29 -29
  9. package/android/src/main/java/com/ahm/capacitor/camera/preview/Preview.java +386 -386
  10. package/android/src/main/java/com/ahm/capacitor/camera/preview/TapGestureDetector.java +24 -24
  11. package/android/src/main/res/layout/bridge_layout_main.xml +15 -15
  12. package/android/src/main/res/layout/camera_activity.xml +68 -68
  13. package/android/src/main/res/values/camera_ids.xml +4 -4
  14. package/android/src/main/res/values/camera_theme.xml +9 -9
  15. package/android/src/main/res/values/colors.xml +3 -3
  16. package/android/src/main/res/values/strings.xml +3 -3
  17. package/android/src/main/res/values/styles.xml +3 -3
  18. package/dist/docs.json +1 -11
  19. package/dist/esm/definitions.d.ts +80 -81
  20. package/dist/esm/definitions.js +1 -1
  21. package/dist/esm/definitions.js.map +1 -1
  22. package/dist/esm/index.d.ts +4 -4
  23. package/dist/esm/index.js +6 -6
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/web.d.ts +28 -29
  26. package/dist/esm/web.js +155 -158
  27. package/dist/esm/web.js.map +1 -1
  28. package/dist/plugin.cjs.js +149 -152
  29. package/dist/plugin.cjs.js.map +1 -1
  30. package/dist/plugin.js +149 -152
  31. package/dist/plugin.js.map +1 -1
  32. package/ios/Plugin/CameraController.swift +733 -783
  33. package/ios/Plugin/Info.plist +24 -24
  34. package/ios/Plugin/Plugin.h +10 -10
  35. package/ios/Plugin/Plugin.m +18 -19
  36. package/ios/Plugin/Plugin.swift +308 -316
  37. package/package.json +78 -78
@@ -1,17 +1,17 @@
1
- require 'json'
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = 'CapacitorCommunityMultilensCamerapreview'
7
- s.version = package['version']
8
- s.summary = package['description']
9
- s.license = package['license']
10
- s.homepage = package['repository']['url']
11
- s.author = package['author']
12
- s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
- s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
- s.ios.deployment_target = '13.0'
15
- s.dependency 'Capacitor'
16
- s.swift_version = '5.1'
17
- end
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'CapacitorCommunityMultilensCamerapreview'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+ s.homepage = package['repository']['url']
11
+ s.author = package['author']
12
+ s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '13.0'
15
+ s.dependency 'Capacitor'
16
+ s.swift_version = '5.1'
17
+ end
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
- # capacitor-community-multilens-camerapreview
2
-
3
- fork of capacitor community camera preview with support for switchting lenses
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install capacitor-community-multilens-camerapreview
9
- npx cap sync
10
- ```
11
-
12
- ## API
13
-
1
+ # capacitor-community-multilens-camerapreview
2
+
3
+ fork of capacitor community camera preview with support for switchting lenses
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install capacitor-community-multilens-camerapreview
9
+ npx cap sync
10
+ ```
11
+
12
+ ## API
13
+
14
14
  <docgen-index>
15
15
 
16
16
  * [`start(...)`](#start)
@@ -20,15 +20,14 @@ npx cap sync
20
20
  * [`getSupportedFlashModes()`](#getsupportedflashmodes)
21
21
  * [`setFlashMode(...)`](#setflashmode)
22
22
  * [`flip()`](#flip)
23
- * [`changeOrientation()`](#changeorientation)
24
23
  * [`setOpacity(...)`](#setopacity)
25
24
  * [`setZoom(...)`](#setzoom)
26
25
  * [`getSupportedZoomLevels()`](#getsupportedzoomlevels)
27
26
  * [Interfaces](#interfaces)
28
27
  * [Type Aliases](#type-aliases)
29
28
 
30
- </docgen-index>
31
-
29
+ </docgen-index>
30
+
32
31
  <docgen-api>
33
32
  <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
34
33
 
@@ -121,15 +120,6 @@ flip() => Promise<void>
121
120
  --------------------
122
121
 
123
122
 
124
- ### changeOrientation()
125
-
126
- ```typescript
127
- changeOrientation() => Promise<void>
128
- ```
129
-
130
- --------------------
131
-
132
-
133
123
  ### setOpacity(...)
134
124
 
135
125
  ```typescript
@@ -231,4 +221,4 @@ getSupportedZoomLevels() => Promise<{ result: any[]; }>
231
221
 
232
222
  <code>'off' | 'on' | 'auto' | 'red-eye' | 'torch'</code>
233
223
 
234
- </docgen-api>
224
+ </docgen-api>
@@ -1,55 +1,55 @@
1
- ext {
2
- junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2'
4
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
5
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
6
- }
7
-
8
- buildscript {
9
- repositories {
10
- mavenCentral()
11
- google()
12
- }
13
- dependencies {
14
- classpath 'com.android.tools.build:gradle:7.2.1'
15
- }
16
- }
17
-
18
- apply plugin: 'com.android.library'
19
-
20
- android {
21
- compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
22
- defaultConfig {
23
- minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
24
- targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
25
- versionCode 1
26
- versionName "1.0"
27
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
28
- }
29
- buildTypes {
30
- release {
31
- minifyEnabled false
32
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33
- }
34
- }
35
- lintOptions {
36
- abortOnError false
37
- }
38
- }
39
-
40
- repositories {
41
- google()
42
- mavenCentral()
43
- }
44
-
45
-
46
- dependencies {
47
- implementation fileTree(dir: 'libs', include: ['*.jar'])
48
- implementation project(':capacitor-android')
49
- implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
50
- implementation 'androidx.exifinterface:exifinterface:1.3.2'
51
- testImplementation "junit:junit:$junitVersion"
52
- androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
53
- androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
54
- }
55
-
1
+ ext {
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.4.2'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.3'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.4.0'
6
+ }
7
+
8
+ buildscript {
9
+ repositories {
10
+ mavenCentral()
11
+ google()
12
+ }
13
+ dependencies {
14
+ classpath 'com.android.tools.build:gradle:7.2.1'
15
+ }
16
+ }
17
+
18
+ apply plugin: 'com.android.library'
19
+
20
+ android {
21
+ compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 32
22
+ defaultConfig {
23
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
24
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 32
25
+ versionCode 1
26
+ versionName "1.0"
27
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
28
+ }
29
+ buildTypes {
30
+ release {
31
+ minifyEnabled false
32
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33
+ }
34
+ }
35
+ lintOptions {
36
+ abortOnError false
37
+ }
38
+ }
39
+
40
+ repositories {
41
+ google()
42
+ mavenCentral()
43
+ }
44
+
45
+
46
+ dependencies {
47
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
48
+ implementation project(':capacitor-android')
49
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
50
+ implementation 'androidx.exifinterface:exifinterface:1.3.2'
51
+ testImplementation "junit:junit:$junitVersion"
52
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
53
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
54
+ }
55
+
@@ -1,5 +1,5 @@
1
-
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.ahm.capacitor.camera.preview.capacitorcamerapreview">
4
- </manifest>
1
+
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.ahm.capacitor.camera.preview.capacitorcamerapreview">
4
+ </manifest>
5
5