@capgo/camera-preview 6.1.2 → 6.1.4
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.
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
|
2
2
|
distributionPath=wrapper/dists
|
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
|
|
4
4
|
networkTimeout=10000
|
|
5
5
|
validateDistributionUrl=true
|
|
6
6
|
zipStoreBase=GRADLE_USER_HOME
|
package/android/gradlew
CHANGED
|
@@ -83,7 +83,8 @@ done
|
|
|
83
83
|
# This is normally unused
|
|
84
84
|
# shellcheck disable=SC2034
|
|
85
85
|
APP_BASE_NAME=${0##*/}
|
|
86
|
-
|
|
86
|
+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
|
87
|
+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
|
87
88
|
|
|
88
89
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
89
90
|
MAX_FD=maximum
|
|
@@ -144,7 +145,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
|
144
145
|
case $MAX_FD in #(
|
|
145
146
|
max*)
|
|
146
147
|
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
|
147
|
-
# shellcheck disable=SC3045
|
|
148
|
+
# shellcheck disable=SC2039,SC3045
|
|
148
149
|
MAX_FD=$( ulimit -H -n ) ||
|
|
149
150
|
warn "Could not query maximum file descriptor limit"
|
|
150
151
|
esac
|
|
@@ -152,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
|
152
153
|
'' | soft) :;; #(
|
|
153
154
|
*)
|
|
154
155
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
|
155
|
-
# shellcheck disable=SC3045
|
|
156
|
+
# shellcheck disable=SC2039,SC3045
|
|
156
157
|
ulimit -n "$MAX_FD" ||
|
|
157
158
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
|
158
159
|
esac
|
|
@@ -201,11 +202,11 @@ fi
|
|
|
201
202
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
202
203
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
203
204
|
|
|
204
|
-
# Collect all arguments for the java command
|
|
205
|
-
# *
|
|
206
|
-
#
|
|
207
|
-
#
|
|
208
|
-
#
|
|
205
|
+
# Collect all arguments for the java command:
|
|
206
|
+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
|
|
207
|
+
# and any embedded shellness will be escaped.
|
|
208
|
+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
|
|
209
|
+
# treated as '${Hostname}' itself on the command line.
|
|
209
210
|
|
|
210
211
|
set -- \
|
|
211
212
|
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
package/android/gradlew.bat
CHANGED
|
@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
|
|
|
43
43
|
%JAVA_EXE% -version >NUL 2>&1
|
|
44
44
|
if %ERRORLEVEL% equ 0 goto execute
|
|
45
45
|
|
|
46
|
-
echo.
|
|
47
|
-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
48
|
-
echo.
|
|
49
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
|
50
|
-
echo location of your Java installation.
|
|
46
|
+
echo. 1>&2
|
|
47
|
+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
|
|
48
|
+
echo. 1>&2
|
|
49
|
+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
|
50
|
+
echo location of your Java installation. 1>&2
|
|
51
51
|
|
|
52
52
|
goto fail
|
|
53
53
|
|
|
@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
|
57
57
|
|
|
58
58
|
if exist "%JAVA_EXE%" goto execute
|
|
59
59
|
|
|
60
|
-
echo.
|
|
61
|
-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
62
|
-
echo.
|
|
63
|
-
echo Please set the JAVA_HOME variable in your environment to match the
|
|
64
|
-
echo location of your Java installation.
|
|
60
|
+
echo. 1>&2
|
|
61
|
+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
|
|
62
|
+
echo. 1>&2
|
|
63
|
+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
|
|
64
|
+
echo location of your Java installation. 1>&2
|
|
65
65
|
|
|
66
66
|
goto fail
|
|
67
67
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
package com.ahm.capacitor.camera.preview;
|
|
2
2
|
|
|
3
3
|
import static android.Manifest.permission.CAMERA;
|
|
4
|
+
import static android.Manifest.permission.RECORD_AUDIO;
|
|
4
5
|
|
|
5
6
|
import android.app.FragmentManager;
|
|
6
7
|
import android.app.FragmentTransaction;
|
|
@@ -32,7 +33,7 @@ import org.json.JSONArray;
|
|
|
32
33
|
name = "CameraPreview",
|
|
33
34
|
permissions = {
|
|
34
35
|
@Permission(
|
|
35
|
-
strings = { CAMERA },
|
|
36
|
+
strings = { CAMERA, RECORD_AUDIO },
|
|
36
37
|
alias = CameraPreview.CAMERA_PERMISSION_ALIAS
|
|
37
38
|
),
|
|
38
39
|
}
|