Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
罗孟伟 committed Mar 26, 2018
1 parent 69319a8 commit 208e335
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 25 deletions.
10 changes: 5 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 26
compileSdkVersion cfgs.compileSdkVersion

defaultConfig {
applicationId "com.luck.pictureselector"
minSdkVersion 14
targetSdkVersion 26
versionCode 5
versionName "2.0.5"
minSdkVersion cfgs.minSdkVersion
targetSdkVersion cfgs.targetSdkVersion
versionCode cfgs.versionCode
versionName cfgs.versionName
}
buildTypes {
release {
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "config.gradle"

buildscript {
repositories {
Expand Down
18 changes: 18 additions & 0 deletions config.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ext {
cfgs = [
compileSdkVersion : 26,
buildToolsVersion : "27.0.2",
minSdkVersion : 14,
targetSdkVersion : 26,
versionCode : 10,
versionName : "2.0.0",
ucropVersionCode : 22,
ucropVersionName : "2.2.0-native",

//open version control
androidSupportVersion: "27.0.2",
glide : "4.5.0",
rxjava : "2.0.5",
rxandroid : "2.0.1"
]
}
21 changes: 10 additions & 11 deletions picture_library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 26
compileSdkVersion cfgs.compileSdkVersion

defaultConfig {
minSdkVersion 10
targetSdkVersion 26
versionCode 1
versionName "1.0"
minSdkVersion cfgs.minSdkVersion
targetSdkVersion cfgs.targetSdkVersion
versionCode cfgs.versionCode
versionName cfgs.versionName
}

buildTypes {
Expand All @@ -22,11 +22,10 @@ dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':ucrop')
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:27.0.2'
compile "com.android.support:appcompat-v7:${cfgs.androidSupportVersion}"
//noinspection GradleCompatible
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.github.bumptech.glide:glide:4.5.0'
implementation 'com.github.bumptech.glide:glide:4.5.0'
compile 'io.reactivex.rxjava2:rxjava:2.0.5'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile "com.android.support:recyclerview-v7:${cfgs.androidSupportVersion}"
compile "com.github.bumptech.glide:glide:${cfgs.glide}"
compile "io.reactivex.rxjava2:rxjava:${cfgs.rxjava}"
compile "io.reactivex.rxjava2:rxandroid:${cfgs.rxandroid}"
}
17 changes: 8 additions & 9 deletions ucrop/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 26
compileSdkVersion cfgs.compileSdkVersion

defaultConfig {
minSdkVersion 14
targetSdkVersion 26
versionCode 22
versionName "2.2.0-native"
minSdkVersion cfgs.minSdkVersion
targetSdkVersion cfgs.targetSdkVersion
versionCode cfgs.ucropVersionCode
versionName cfgs.ucropVersionName

vectorDrawables.useSupportLibrary = true
}
Expand All @@ -31,9 +31,8 @@ android {

dependencies {
//noinspection GradleCompatible
compile 'com.android.support:appcompat-v7:27.0.2'
compile "com.android.support:appcompat-v7:${cfgs.androidSupportVersion}"
//noinspection GradleCompatible
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.github.bumptech.glide:glide:4.5.0'
implementation 'com.github.bumptech.glide:glide:4.5.0'
compile "com.android.support:recyclerview-v7:${cfgs.androidSupportVersion}"
implementation "com.github.bumptech.glide:glide:${cfgs.glide}"
}

0 comments on commit 208e335

Please sign in to comment.