From 352686a0982800f6ef4e8df192c053e1f874bd11 Mon Sep 17 00:00:00 2001 From: Masayuki Suda Date: Thu, 17 Jan 2019 14:12:57 +0900 Subject: [PATCH] fix gradle property --- gpuv/build.gradle | 12 +++++------- gradle.properties | 5 +++++ sample/build.gradle | 6 +++--- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/gpuv/build.gradle b/gpuv/build.gradle index 02316b5..6e39dc1 100644 --- a/gpuv/build.gradle +++ b/gpuv/build.gradle @@ -1,15 +1,13 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 28 - - + compileSdkVersion COMPILE_SDK_VERSION as int defaultConfig { - minSdkVersion 21 - targetSdkVersion 28 - versionCode 1 - versionName "1.0" + minSdkVersion COMPILE_MIN_SDK_VERSION as int + targetSdkVersion COMPILE_SDK_VERSION as int + versionCode VERSION_CODE as int + versionName VERSION_NAME } diff --git a/gradle.properties b/gradle.properties index 3d8ce0c..2390ca1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,3 +15,8 @@ org.gradle.jvmargs=-Xmx1536m kotlin.code.style=official android.useAndroidX=true android.enableJetifier=true +VERSION_NAME=0.1.0 +VERSION_CODE=1 +BUILD_TOOLS_VERSION=28.0.3 +COMPILE_SDK_VERSION=28 +COMPILE_MIN_SDK_VERSION=21 \ No newline at end of file diff --git a/sample/build.gradle b/sample/build.gradle index b2bb8ad..566c1bf 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -3,11 +3,11 @@ apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { - compileSdkVersion 28 + compileSdkVersion COMPILE_SDK_VERSION as int defaultConfig { applicationId "com.daasuu.gpuvideoandroid" - minSdkVersion 21 - targetSdkVersion 28 + minSdkVersion COMPILE_MIN_SDK_VERSION as int + targetSdkVersion COMPILE_SDK_VERSION as int versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"