diff --git a/demo/build.gradle b/demo/build.gradle index 8aff86a..ae2fca1 100644 --- a/demo/build.gradle +++ b/demo/build.gradle @@ -1,15 +1,15 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 20 - buildToolsVersion "20.0.0" + compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) + buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION defaultConfig { applicationId "com.daimajia.swipedemo" - minSdkVersion 8 - targetSdkVersion 20 - versionCode 1 - versionName "1.0" + minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION) + targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) + versionName project.VERSION_NAME + versionCode Integer.parseInt(project.VERSION_CODE) } buildTypes { release { @@ -20,7 +20,6 @@ android { } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) compile project(":library") compile 'com.nineoldandroids:library:2.4.0' compile 'com.daimajia.easing:library:1.0.0@aar' diff --git a/gradle.properties b/gradle.properties index 4628ee7..6940ddc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,15 +20,9 @@ VERSION_NAME=1.0.2 VERSION_CODE=3 -GROUP=com.daimajia.swipelayout +GROUP=com.daimajia.swipe -POM_DESCRIPTION=Android Swipe Layout -POM_URL=https://github.com/daimajia/AndroidSwipeLayout -POM_SCM_URL=https://github.com/daimajia/AndroidSwipeLayout -POM_SCM_CONNECTION=scm:https://github.com/daimajia/AndroidSwipeLayout.git -POM_SCM_DEV_CONNECTION=scm:https://github.com/daimajia/AndroidSwipeLayout.git -POM_LICENCE_NAME=MIT -POM_LICENCE_URL=http://opensource.org/licenses/MIT -POM_LICENCE_DIST=repo -POM_DEVELOPER_ID=daimajia -POM_DEVELOPER_NAME=daimajia \ No newline at end of file +ANDROID_BUILD_MIN_SDK_VERSION=14 +ANDROID_BUILD_TARGET_SDK_VERSION=20 +ANDROID_BUILD_SDK_VERSION=20 +ANDROID_BUILD_TOOLS_VERSION=20.0.0 diff --git a/library/build.gradle b/library/build.gradle index 5e86c1c..7a17821 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,21 +1,13 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 20 - buildToolsVersion "20.0.0" + compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION) + buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION defaultConfig { applicationId "com.daimajia.swipe" minSdkVersion 8 - targetSdkVersion 20 - versionCode 1 - versionName "1.0" - } - buildTypes { - release { - runProguard false - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' - } + targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION) } } diff --git a/library/gradle.properties b/library/gradle.properties index c3bab87..9c9832b 100644 --- a/library/gradle.properties +++ b/library/gradle.properties @@ -20,3 +20,14 @@ POM_NAME=Android SwipeLayout Library POM_ARTIFACT_ID=library POM_PACKAGING=aar + +POM_DESCRIPTION=Android Swipe Layout +POM_URL=https://github.com/daimajia/AndroidSwipeLayout +POM_SCM_URL=https://github.com/daimajia/AndroidSwipeLayout +POM_SCM_CONNECTION=scm:https://github.com/daimajia/AndroidSwipeLayout.git +POM_SCM_DEV_CONNECTION=scm:https://github.com/daimajia/AndroidSwipeLayout.git +POM_LICENCE_NAME=MIT +POM_LICENCE_URL=http://opensource.org/licenses/MIT +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=daimajia +POM_DEVELOPER_NAME=daimajia \ No newline at end of file