expo-camera 12.1.1 → 12.1.2

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 CHANGED
@@ -10,6 +10,13 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 12.1.2 — 2022-02-04
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo))
18
+ - Fix null pointer exception when barcode scanner or face detector are not installed. ([#16167](https://github.com/expo/expo/pull/16167) by [@tsapeta](https://github.com/tsapeta))
19
+
13
20
  ## 12.1.1 — 2022-02-01
14
21
 
15
22
  ### 🐛 Bug fixes
@@ -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.1.1'
6
+ version = '12.1.2'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -55,7 +55,7 @@ android {
55
55
  minSdkVersion safeExtGet("minSdkVersion", 21)
56
56
  targetSdkVersion safeExtGet("targetSdkVersion", 30)
57
57
  versionCode 32
58
- versionName "12.1.1"
58
+ versionName "12.1.2"
59
59
  }
60
60
 
61
61
  kotlinOptions {
@@ -178,8 +178,8 @@ class ExpoCameraView(
178
178
  * Additionally supports [codabar, code128, maxicode, rss14, rssexpanded, upc_a, upc_ean]
179
179
  */
180
180
  private fun initBarCodeScanner() {
181
- val barCodeScannerProvider: BarCodeScannerProviderInterface by moduleRegistry()
182
- barCodeScanner = barCodeScannerProvider.createBarCodeDetectorWithContext(context)
181
+ val barCodeScannerProvider: BarCodeScannerProviderInterface? by moduleRegistry()
182
+ barCodeScanner = barCodeScannerProvider?.createBarCodeDetectorWithContext(context)
183
183
  }
184
184
 
185
185
  fun setShouldScanBarCodes(shouldScanBarCodes: Boolean) {
@@ -210,8 +210,8 @@ class ExpoCameraView(
210
210
  isNew = false
211
211
  if (!Build.FINGERPRINT.contains("generic")) {
212
212
  start()
213
- val faceDetectorProvider: FaceDetectorProviderInterface by moduleRegistry()
214
- faceDetector = faceDetectorProvider.createFaceDetectorWithContext(context)
213
+ val faceDetectorProvider: FaceDetectorProviderInterface? by moduleRegistry()
214
+ faceDetector = faceDetectorProvider?.createFaceDetectorWithContext(context)
215
215
  pendingFaceDetectorSettings.let {
216
216
  faceDetector?.setSettings(it)
217
217
  pendingFaceDetectorSettings = null
@@ -6,30 +6,30 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>LibraryIdentifier</key>
9
- <string>ios-arm64_x86_64-simulator</string>
9
+ <string>ios-arm64</string>
10
10
  <key>LibraryPath</key>
11
11
  <string>EXCamera.framework</string>
12
12
  <key>SupportedArchitectures</key>
13
13
  <array>
14
14
  <string>arm64</string>
15
- <string>x86_64</string>
16
15
  </array>
17
16
  <key>SupportedPlatform</key>
18
17
  <string>ios</string>
19
- <key>SupportedPlatformVariant</key>
20
- <string>simulator</string>
21
18
  </dict>
22
19
  <dict>
23
20
  <key>LibraryIdentifier</key>
24
- <string>ios-arm64</string>
21
+ <string>ios-arm64_x86_64-simulator</string>
25
22
  <key>LibraryPath</key>
26
23
  <string>EXCamera.framework</string>
27
24
  <key>SupportedArchitectures</key>
28
25
  <array>
29
26
  <string>arm64</string>
27
+ <string>x86_64</string>
30
28
  </array>
31
29
  <key>SupportedPlatform</key>
32
30
  <string>ios</string>
31
+ <key>SupportedPlatformVariant</key>
32
+ <string>simulator</string>
33
33
  </dict>
34
34
  </array>
35
35
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-camera",
3
- "version": "12.1.1",
3
+ "version": "12.1.2",
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": "ba24eba18bf4f4d4b0d54828992d81a2bb18246a"
47
+ "gitHead": "43d2652ada705ed7e57801830ad935605f73b9be"
48
48
  }