diff --git a/docs/docs/guides/FRAME_PROCESSORS_SKIA.mdx b/docs/docs/guides/FRAME_PROCESSORS_SKIA.mdx index 77b6dc0426..4a4a7da64b 100644 --- a/docs/docs/guides/FRAME_PROCESSORS_SKIA.mdx +++ b/docs/docs/guides/FRAME_PROCESSORS_SKIA.mdx @@ -50,6 +50,8 @@ npm i @shopify/react-native-skia npm i react-native-reanimated ``` +Since the Skia integration is powered by C++ HardwareBuffers, set your Android's `minSdkVersion` to `26` or higher. + ## Skia Frame Processors A Skia Frame Processor, just like any other [Frame Processor](/docs/guides/frame-processors), runs synchronously for every Camera Frame. diff --git a/package/android/build.gradle b/package/android/build.gradle index 3ef638b2b9..6329b89f65 100644 --- a/package/android/build.gradle +++ b/package/android/build.gradle @@ -181,7 +181,7 @@ dependencies { implementation "com.facebook.react:react-android:+" // CameraX dependency - def camerax_version = "1.4.0-alpha04" + def camerax_version = "1.4.0-alpha05" implementation "androidx.camera:camera-core:${camerax_version}" implementation "androidx.camera:camera-camera2:${camerax_version}" implementation "androidx.camera:camera-lifecycle:${camerax_version}" diff --git a/package/android/gradle.properties b/package/android/gradle.properties index 81ee012693..b7617d2406 100644 --- a/package/android/gradle.properties +++ b/package/android/gradle.properties @@ -14,6 +14,6 @@ org.gradle.configureondemand=true # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true #Fri Feb 19 20:46:14 CET 2021 -VisionCamera_kotlinVersion=1.7.20 +VisionCamera_kotlinVersion=1.8.0 android.enableJetifier=true android.useAndroidX=true diff --git a/package/example/android/app/build.gradle b/package/example/android/app/build.gradle index bc8529839a..968fea6df6 100644 --- a/package/example/android/app/build.gradle +++ b/package/example/android/app/build.gradle @@ -1,6 +1,6 @@ apply plugin: "com.android.application" +apply plugin: "org.jetbrains.kotlin.android" apply plugin: "com.facebook.react" -apply plugin: "kotlin-android" import com.android.build.OutputFile @@ -97,6 +97,7 @@ def reactNativeArchitectures() { android { ndkVersion rootProject.ext.ndkVersion + buildToolsVersion rootProject.ext.buildToolsVersion compileSdkVersion rootProject.ext.compileSdkVersion namespace "com.mrousavy.camera.example" @@ -160,7 +161,6 @@ android { dependencies { // The version of react-native is set by the React Native Gradle Plugin implementation("com.facebook.react:react-android") - implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0") if (hermesEnabled.toBoolean()) { diff --git a/package/example/android/build.gradle b/package/example/android/build.gradle index 63908d8984..00b78d8b14 100644 --- a/package/example/android/build.gradle +++ b/package/example/android/build.gradle @@ -6,15 +6,16 @@ buildscript { minSdkVersion = 26 compileSdkVersion = 34 targetSdkVersion = 34 - ndkVersion = "23.1.7779620" + ndkVersion = "25.1.8937393" + kotlinVersion = "1.8.0" } repositories { google() mavenCentral() } dependencies { - classpath('com.android.tools.build:gradle:7.4.1') + classpath('com.android.tools.build:gradle:7.4.2') classpath("com.facebook.react:react-native-gradle-plugin") - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") } }