Closed Stevemoretz closed 2 years ago
Fixed via this changed:
diff --git a/node_modules/react-native-blurhash/android/build.gradle b/node_modules/react-native-blurhash/android/build.gradle
index d1edda0..bd35166 100644
--- a/node_modules/react-native-blurhash/android/build.gradle
+++ b/node_modules/react-native-blurhash/android/build.gradle
@@ -27,10 +27,10 @@ def getExtOrIntegerDefault(name) {
}
android {
- compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
+ compileSdkVersion 31
defaultConfig {
minSdkVersion 16
- targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
+ targetSdkVersion 31
versionCode 1
versionName "1.0"
}
@@ -125,5 +125,5 @@ dependencies {
// noinspection GradleDynamicVersion
api 'com.facebook.react:react-native:+'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.4.0"
+ implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.3.1"
}
Anyways, Thanks for this library :) Loving it.
Bug
Describe the bug A clear and concise description of what the bug is. Here's the full error while building:
To Reproduce Steps to reproduce the behavior:
Expected behavior No errors.
Screenshots Not needed really.
(Optional) Proposed solution I think the problem comes from this : https://github.com/mrousavy/react-native-blurhash/blob/bd4faacb7e945b0690ccb25ea235960203c9eef2/android/build.gradle#L33 which uses https://github.com/mrousavy/react-native-blurhash/blob/bd4faacb7e945b0690ccb25ea235960203c9eef2/android/build.gradle#L25 that is probably returning 31, which shouldn't.
Environment
Additional context I'm using EAS service from expo for building, builds fine after removing this library but not before.