capacitor-community-multilens-camerapreview 0.0.7 → 0.0.9-a
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.
- package/CapacitorCommunityMultilensCamerapreview.podspec +17 -17
- package/README.md +16 -16
- package/android/build.gradle +55 -55
- package/android/src/main/AndroidManifest.xml +4 -4
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraActivity.java +1008 -1008
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CameraPreview.java +544 -544
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomSurfaceView.java +23 -23
- package/android/src/main/java/com/ahm/capacitor/camera/preview/CustomTextureView.java +29 -29
- package/android/src/main/java/com/ahm/capacitor/camera/preview/Preview.java +386 -386
- package/android/src/main/java/com/ahm/capacitor/camera/preview/TapGestureDetector.java +24 -24
- package/android/src/main/res/layout/bridge_layout_main.xml +15 -15
- package/android/src/main/res/layout/camera_activity.xml +68 -68
- package/android/src/main/res/values/camera_ids.xml +4 -4
- package/android/src/main/res/values/camera_theme.xml +9 -9
- package/android/src/main/res/values/colors.xml +3 -3
- package/android/src/main/res/values/strings.xml +3 -3
- package/android/src/main/res/values/styles.xml +3 -3
- package/dist/docs.json +1 -1
- package/dist/esm/definitions.d.ts +80 -80
- package/dist/esm/definitions.js +1 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/index.d.ts +4 -4
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/web.d.ts +28 -28
- package/dist/esm/web.js +155 -155
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +149 -149
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +149 -149
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/CameraController.swift +771 -716
- package/ios/Plugin/Info.plist +24 -24
- package/ios/Plugin/Plugin.h +10 -10
- package/ios/Plugin/Plugin.m +19 -18
- package/ios/Plugin/Plugin.swift +316 -300
- 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)
|
|
@@ -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>
|
package/android/build.gradle
CHANGED
|
@@ -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
|
|