Skip to content

Commit

Permalink
Use root project SDK versions
Browse files Browse the repository at this point in the history
  • Loading branch information
shancock884 committed Jul 5, 2024
1 parent 28a6f24 commit f96c2d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

buildscript {
repositories {
Expand All @@ -13,7 +16,7 @@ buildscript {
apply plugin: 'com.android.library'

android {
compileSdkVersion 31
compileSdkVersion safeExtGet('compileSdkVersion', 31)

namespace "com.melihyarikkaya.rnserialport"

Expand All @@ -23,8 +26,8 @@ android {
}

defaultConfig {
minSdkVersion 21
targetSdkVersion 31
minSdkVersion safeExtGet('minSdkVersion', 21)
targetSdkVersion safeExtGet('targetSdkVersion', 31)
versionCode 1
versionName "1.0"
}
Expand Down

0 comments on commit f96c2d7

Please sign in to comment.