Skip to content

Commit 0e995b0

Browse files
committed
chore: update README.md with new requirements
1 parent 3b92b24 commit 0e995b0

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,22 @@ The Usercentrics Apps SDK is a native Consent Management Platform solution for m
2525
## 📋 Requirements
2626

2727
### Mobile Platforms
28-
* **Android 5.0 (API 21)** or higher
28+
* **Android 7.0 (API 24)** or higher
2929
* **iOS 11** or higher
3030

3131
### Development Environment
3232
* **Node.js 18.0+** (LTS recommended)
3333
* **npm 9.0+** or **Yarn 1.22+**
3434
* **TypeScript 5.1+**
35-
* **React 18.2+**
35+
* **React 18.2+** (React 19 supported)
3636
* **React Native 0.74.3+** (with Fabric support)
3737

3838
### Android Development
3939
* **Java 17+** (OpenJDK or Oracle JDK)
40-
* **Android SDK** with API 33+ platforms
40+
* **Android SDK** with API 34+ platforms
4141
* **Android NDK 25+**
42-
* **Gradle 8.2+**
43-
* **Kotlin 1.9.22+**
42+
* **Gradle 8.2+** (Gradle 8.13 used)
43+
* **Kotlin 1.9.22+** (Kotlin 2.0.21 recommended)
4444
* **Android Gradle Plugin 8.2+**
4545

4646
### iOS Development (macOS only)

scripts/check-requirements.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,13 @@ if [ ! -z "$ANDROID_HOME" ] || [ ! -z "$ANDROID_SDK_ROOT" ]; then
147147
print_status "FAIL" "ADB not found" "Install Android SDK Platform Tools"
148148
fi
149149

150-
# Check for Android 33+ (required for compileSdkVersion 34)
151-
if [ -d "$SDK_ROOT/platforms/android-33" ] || [ -d "$SDK_ROOT/platforms/android-34" ]; then
152-
print_status "PASS" "Android SDK Platform found" "API 33+ available"
150+
# Check for Android 34+ (required for compileSdkVersion and targetSdk 34)
151+
if [ -d "$SDK_ROOT/platforms/android-34" ]; then
152+
print_status "PASS" "Android SDK Platform found" "API 34 available"
153+
elif [ -d "$SDK_ROOT/platforms/android-33" ]; then
154+
print_status "WARN" "Android SDK Platform found" "API 33 available (API 34 recommended for compileSdkVersion 34)"
153155
else
154-
print_status "FAIL" "Android SDK Platform missing" "Install Android API 33 or higher"
156+
print_status "FAIL" "Android SDK Platform missing" "Install Android API 34 or higher"
155157
fi
156158

157159
# Check build tools
@@ -194,8 +196,15 @@ fi
194196
if command -v kotlin >/dev/null 2>&1; then
195197
KOTLIN_VERSION=$(kotlin -version 2>&1 | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')
196198
check_version "$KOTLIN_VERSION" "1.9.22" "Kotlin"
199+
# Note: Kotlin 2.0.21 is recommended for this project
200+
if [ ! -z "$KOTLIN_VERSION" ]; then
201+
KOTLIN_MAJOR=$(echo $KOTLIN_VERSION | cut -d. -f1)
202+
if [ "$KOTLIN_MAJOR" -ge 2 ]; then
203+
print_status "PASS" "Kotlin 2.0+ detected" "Kotlin 2.0.21 is recommended"
204+
fi
205+
fi
197206
else
198-
print_status "WARN" "Kotlin not found globally" "Will use version from Gradle"
207+
print_status "WARN" "Kotlin not found globally" "Will use version from Gradle (Kotlin 2.0.21 recommended)"
199208
fi
200209

201210
# ============================================================================

0 commit comments

Comments
 (0)