Skip to content

Commit 7f0e979

Browse files
authored
Merge pull request #152 from mtpilarek/keystore
Build.gradle updated
2 parents 700b525 + f1cb301 commit 7f0e979

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

android/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
apply plugin: 'com.android.library'
22

3+
def DEFAULT_COMPILE_SDK_VERSION = 27
4+
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.2"
5+
def DEFAULT_TARGET_SDK_VERSION = 25
6+
def DEFAULT_MIN_SDK_VERSION = 16
7+
38
android {
4-
compileSdkVersion rootProject.ext.compileSdkVersion
5-
buildToolsVersion rootProject.ext.buildToolsVersion
9+
compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10+
buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
611

712
defaultConfig {
8-
minSdkVersion rootProject.ext.minSdkVersion
9-
targetSdkVersion rootProject.ext.targetSdkVersion
13+
minSdkVersion project.hasProperty('minSdkVersion') ? project.minSdkVersion : DEFAULT_MIN_SDK_VERSION
14+
targetSdkVersion project.hasProperty('targetSdkVersion') ? project.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
1015
versionCode 1
1116
versionName "1.0"
1217
ndk {

0 commit comments

Comments
 (0)