Skip to content

Commit 352686a

Browse files
committed
fix gradle property
1 parent eb88316 commit 352686a

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

gpuv/build.gradle

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 28
5-
6-
4+
compileSdkVersion COMPILE_SDK_VERSION as int
75

86
defaultConfig {
9-
minSdkVersion 21
10-
targetSdkVersion 28
11-
versionCode 1
12-
versionName "1.0"
7+
minSdkVersion COMPILE_MIN_SDK_VERSION as int
8+
targetSdkVersion COMPILE_SDK_VERSION as int
9+
versionCode VERSION_CODE as int
10+
versionName VERSION_NAME
1311

1412
}
1513

gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ org.gradle.jvmargs=-Xmx1536m
1515
kotlin.code.style=official
1616
android.useAndroidX=true
1717
android.enableJetifier=true
18+
VERSION_NAME=0.1.0
19+
VERSION_CODE=1
20+
BUILD_TOOLS_VERSION=28.0.3
21+
COMPILE_SDK_VERSION=28
22+
COMPILE_MIN_SDK_VERSION=21

sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
44

55
android {
6-
compileSdkVersion 28
6+
compileSdkVersion COMPILE_SDK_VERSION as int
77
defaultConfig {
88
applicationId "com.daasuu.gpuvideoandroid"
9-
minSdkVersion 21
10-
targetSdkVersion 28
9+
minSdkVersion COMPILE_MIN_SDK_VERSION as int
10+
targetSdkVersion COMPILE_SDK_VERSION as int
1111
versionCode 1
1212
versionName "1.0"
1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

0 commit comments

Comments
 (0)