Skip to content

Commit

Permalink
fix(android): make sdk versions configurable (#2152)
Browse files Browse the repository at this point in the history
`compileSdkVersion`, `minSdkVersion`, `targetSdkVersion` can be
configured in `gradle.properties`:

```
react.compileSdkVersion=34
react.minSdkVersion=23
react.targetSdkVersion=33
```
  • Loading branch information
tido64 authored Jul 29, 2024
1 parent 1bc14f9 commit 795104b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions android/dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ext {
apply(from: "${buildscript.sourceFile.getParent()}/test-app-util.gradle")

compileSdkVersion = 34
minSdkVersion = 23
targetSdkVersion = 33
compileSdkVersion = rootProject.findProperty("react.compileSdkVersion") ?: 34
minSdkVersion = rootProject.findProperty("react.minSdkVersion") ?: 23
targetSdkVersion = rootProject.findProperty("react.targetSdkVersion") ?: 33

/**
* Returns the recommended Gradle plugin version for the specified React Native
Expand Down

0 comments on commit 795104b

Please sign in to comment.