chore: Upgrade CameraX to alpha09 (#472)

* chore: Upgrade CameraX to alpha09

* Remove custom ProGuard file

It's no longer needed, CameraX now ships one.

* Set `targetSdkVersion` to `31`

* set `compileSdkVersion` to 31

* Add `android:exported=false`
This commit is contained in:
Marc Rousavy 2021-10-07 12:20:21 +02:00 committed by GitHub
parent bd46da614e
commit 8d24e344c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 14 deletions

View File

@ -88,7 +88,6 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
consumerProguardFiles 'proguard-rules.pro'
externalNativeBuild {
cmake {
@ -234,11 +233,11 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-guava:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
implementation "androidx.camera:camera-core:1.1.0-alpha08"
implementation "androidx.camera:camera-camera2:1.1.0-alpha08"
implementation "androidx.camera:camera-lifecycle:1.1.0-alpha08"
implementation "androidx.camera:camera-extensions:1.0.0-alpha28"
implementation "androidx.camera:camera-view:1.0.0-alpha28"
implementation "androidx.camera:camera-core:1.1.0-alpha09"
implementation "androidx.camera:camera-camera2:1.1.0-alpha09"
implementation "androidx.camera:camera-lifecycle:1.1.0-alpha09"
implementation "androidx.camera:camera-extensions:1.0.0-alpha29"
implementation "androidx.camera:camera-view:1.0.0-alpha29"
implementation "androidx.exifinterface:exifinterface:1.3.3"
}

View File

@ -12,9 +12,9 @@
# org.gradle.parallel=true
#Fri Feb 19 20:46:14 CET 2021
VisionCamera_buildToolsVersion=30.0.0
VisionCamera_compileSdkVersion=30
VisionCamera_compileSdkVersion=31
VisionCamera_kotlinVersion=1.5.30
VisionCamera_targetSdkVersion=30
VisionCamera_targetSdkVersion=31
VisionCamera_ndkVersion=21.4.7075529
android.enableJetifier=true
android.useAndroidX=true

View File

@ -1,2 +0,0 @@
# VisionCamera (CameraX)
-keep class androidx.camera.extensions.** { *; }

View File

@ -5,6 +5,8 @@
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<application android:usesCleartextTraffic="true" tools:targetApi="28" tools:ignore="GoogleAppIndexingWarning">
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
<activity
android:name="com.facebook.react.devsupport.DevSettingsActivity"
android:exported="false" />
</application>
</manifest>

View File

@ -32,7 +32,8 @@
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait"
android:fitsSystemWindows="false">
android:fitsSystemWindows="false"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />

View File

@ -5,8 +5,8 @@ buildscript {
RNNKotlinVersion = "1.3.61"
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 30
targetSdkVersion = 30
compileSdkVersion = 31
targetSdkVersion = 31
ndkVersion = "21.4.7075529"
}
repositories {