capacitor-community-multilens-camerapreview 5.0.1 → 6.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 -16
  3. package/android/build.gradle +57 -55
  4. package/android/src/main/AndroidManifest.xml +4 -4
  5. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +1005 -1008
  6. package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +543 -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/esm/definitions.d.ts +82 -80
  19. package/dist/esm/definitions.js +1 -1
  20. package/dist/esm/definitions.js.map +1 -1
  21. package/dist/esm/index.d.ts +4 -4
  22. package/dist/esm/index.js +6 -6
  23. package/dist/esm/index.js.map +1 -1
  24. package/dist/esm/web.d.ts +30 -28
  25. package/dist/esm/web.js +146 -155
  26. package/dist/esm/web.js.map +1 -1
  27. package/dist/plugin.cjs.js +146 -150
  28. package/dist/plugin.cjs.js.map +1 -1
  29. package/dist/plugin.js +147 -151
  30. package/dist/plugin.js.map +1 -1
  31. package/ios/Plugin/CameraController.swift +732 -733
  32. package/ios/Plugin/Info.plist +24 -24
  33. package/ios/Plugin/Plugin.h +10 -10
  34. package/ios/Plugin/Plugin.m +18 -18
  35. package/ios/Plugin/Plugin.swift +309 -308
  36. package/package.json +85 -78
  37. package/dist/docs.json +0 -408
@@ -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)
@@ -26,8 +26,8 @@ npx cap sync
26
26
  * [Interfaces](#interfaces)
27
27
  * [Type Aliases](#type-aliases)
28
28
 
29
- </docgen-index>
30
-
29
+ </docgen-index>
30
+
31
31
  <docgen-api>
32
32
  <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
33
33
 
@@ -221,4 +221,4 @@ getSupportedZoomLevels() => Promise<{ result: any[]; }>
221
221
 
222
222
  <code>'off' | 'on' | 'auto' | 'red-eye' | 'torch'</code>
223
223
 
224
- </docgen-api>
224
+ </docgen-api>
@@ -1,55 +1,57 @@
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.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'
7
+ }
8
+
9
+ buildscript {
10
+ repositories {
11
+ mavenCentral()
12
+ google()
13
+ }
14
+ dependencies {
15
+ classpath 'com.android.tools.build:gradle:8.2.1'
16
+ }
17
+ }
18
+
19
+ apply plugin: 'com.android.library'
20
+
21
+ android {
22
+ namespace "com.ahm.capacitor.camera.preview.capacitorcamerapreview"
23
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
24
+ defaultConfig {
25
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 22
26
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
27
+ versionCode 1
28
+ versionName "1.0"
29
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
30
+ }
31
+ buildTypes {
32
+ release {
33
+ minifyEnabled false
34
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
35
+ }
36
+ }
37
+ lintOptions {
38
+ abortOnError false
39
+ }
40
+ }
41
+
42
+ repositories {
43
+ google()
44
+ mavenCentral()
45
+ }
46
+
47
+
48
+ dependencies {
49
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
50
+ implementation project(':capacitor-android')
51
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
52
+ implementation "androidx.exifinterface:exifinterface:$androidxExifInterfaceVersion"
53
+ testImplementation "junit:junit:$junitVersion"
54
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
55
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
56
+ }
57
+
@@ -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
+ >
4
+ </manifest>
5
5