expo-camera 12.4.0 → 12.5.0
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/CHANGELOG.md +6 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/camera/tasks/ResolveTakenPictureAsyncTask.kt +2 -2
- package/ios/Info-generated.plist +22 -0
- package/package.json +2 -2
- package/ios/EXCamera.xcframework/Info.plist +0 -40
- package/ios/EXCamera.xcframework/ios-arm64/EXCamera.framework/EXCamera +0 -0
- package/ios/EXCamera.xcframework/ios-arm64/EXCamera.framework/Info.plist +0 -0
- package/ios/EXCamera.xcframework/ios-arm64/EXCamera.framework/Modules/module.modulemap +0 -6
- package/ios/EXCamera.xcframework/ios-arm64_x86_64-simulator/EXCamera.framework/EXCamera +0 -0
- package/ios/EXCamera.xcframework/ios-arm64_x86_64-simulator/EXCamera.framework/Info.plist +0 -0
- package/ios/EXCamera.xcframework/ios-arm64_x86_64-simulator/EXCamera.framework/Modules/module.modulemap +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 12.5.0 — 2023-01-23
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fix `Caused by java.lang.NoSuchMethodError: No interface method getOrDefault` on Android. ([#20921](https://github.com/expo/expo/pull/20921) by [@lukmccall](https://github.com/lukmccall))
|
|
18
|
+
|
|
13
19
|
## 12.4.0 — 2022-11-30
|
|
14
20
|
|
|
15
21
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '12.
|
|
6
|
+
version = '12.5.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -74,7 +74,7 @@ android {
|
|
|
74
74
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
75
75
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
76
76
|
versionCode 32
|
|
77
|
-
versionName "12.
|
|
77
|
+
versionName "12.5.0"
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
lintOptions {
|
|
@@ -67,7 +67,7 @@ class ResolveTakenPictureAsyncTask(
|
|
|
67
67
|
get() = options[QUALITY_KEY]?.let {
|
|
68
68
|
val requestedQuality = (it as Number).toDouble()
|
|
69
69
|
(requestedQuality * 100).toInt()
|
|
70
|
-
} ?: DEFAULT_QUALITY * 100
|
|
70
|
+
} ?: (DEFAULT_QUALITY * 100)
|
|
71
71
|
|
|
72
72
|
override fun doInBackground(vararg params: Void?): Bundle? {
|
|
73
73
|
// handle SkipProcessing
|
|
@@ -93,7 +93,7 @@ class ResolveTakenPictureAsyncTask(
|
|
|
93
93
|
var bitmap: Bitmap? = null
|
|
94
94
|
var lastError: Error? = null
|
|
95
95
|
|
|
96
|
-
val maxDownsampling = ((options
|
|
96
|
+
val maxDownsampling = ((options["maxDownsampling"] as? Double) ?: 1.0).toInt()
|
|
97
97
|
// If OOM exception was thrown, we try to use downsampling to recover.
|
|
98
98
|
while (bitmapOptions.inSampleSize <= maxDownsampling) {
|
|
99
99
|
try {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>expo.camera</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>EXCamera</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>FMWK</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>12.5.0</string>
|
|
19
|
+
<key>CFBundleVersion</key>
|
|
20
|
+
<string>12</string>
|
|
21
|
+
</dict>
|
|
22
|
+
</plist>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-camera",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to the app's cache. Morever, the component is also capable of detecting faces and bar codes appearing on the preview.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"expo": "*"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "efda988b06632310c258c8603c35b3ddecfb06c1"
|
|
48
48
|
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>AvailableLibraries</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-arm64</string>
|
|
10
|
-
<key>LibraryPath</key>
|
|
11
|
-
<string>EXCamera.framework</string>
|
|
12
|
-
<key>SupportedArchitectures</key>
|
|
13
|
-
<array>
|
|
14
|
-
<string>arm64</string>
|
|
15
|
-
</array>
|
|
16
|
-
<key>SupportedPlatform</key>
|
|
17
|
-
<string>ios</string>
|
|
18
|
-
</dict>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>ios-arm64_x86_64-simulator</string>
|
|
22
|
-
<key>LibraryPath</key>
|
|
23
|
-
<string>EXCamera.framework</string>
|
|
24
|
-
<key>SupportedArchitectures</key>
|
|
25
|
-
<array>
|
|
26
|
-
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
|
-
</array>
|
|
29
|
-
<key>SupportedPlatform</key>
|
|
30
|
-
<string>ios</string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
33
|
-
</dict>
|
|
34
|
-
</array>
|
|
35
|
-
<key>CFBundlePackageType</key>
|
|
36
|
-
<string>XFWK</string>
|
|
37
|
-
<key>XCFrameworkFormatVersion</key>
|
|
38
|
-
<string>1.0</string>
|
|
39
|
-
</dict>
|
|
40
|
-
</plist>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|