From 2cb599cff059edcd79c631bde0f406c375439aba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=9D=BE?= Date: Fri, 25 Nov 2016 11:44:45 +0800 Subject: [PATCH] update minSdkVersion code --- README.md | 4 ++-- app/build.gradle | 11 ++++++----- build.gradle | 6 +++--- fresco-helper/build.gradle | 10 +++++----- fresco-photoview/build.gradle | 10 +++++----- 5 files changed, 21 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index b9cf5c3..458ba5a 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ Fresco在GitHub上的项目地址:https://github.com/facebook/fresco } } - compile 'com.facebook.fresco.helper:fresco-helper:1.1.2' - compile 'com.facebook.fresco.helper:fresco-photoview:1.1.2' + compile 'com.facebook.fresco.helper:fresco-helper:1.1.3' + compile 'com.facebook.fresco.helper:fresco-photoview:1.1.3' ``` ## 目前对以下需求进行了封装 diff --git a/app/build.gradle b/app/build.gradle index 15c1b91..d207591 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -5,7 +5,8 @@ android { buildToolsVersion "24.0.2" defaultConfig { applicationId "com.android.fresco.demo" - minSdkVersion 17 + + minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" @@ -25,11 +26,11 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) -// compile project(':fresco-helper') -// compile project(':fresco-photoview') + compile project(':fresco-helper') + compile project(':fresco-photoview') - compile 'com.facebook.fresco.helper:fresco-helper:1.1.2' - compile 'com.facebook.fresco.helper:fresco-photoview:1.1.2' +// compile 'com.facebook.fresco.helper:fresco-helper:1.1.2' +// compile 'com.facebook.fresco.helper:fresco-photoview:1.1.2' compile 'com.android.support:appcompat-v7:24.2.1' compile 'com.android.support:recyclerview-v7:24.2.1' diff --git a/build.gradle b/build.gradle index bfc815d..08e4d08 100644 --- a/build.gradle +++ b/build.gradle @@ -21,9 +21,9 @@ allprojects { jcenter() // mavenCentral() - maven { - url 'https://dl.bintray.com/hpdx/maven/' - } +// maven { +// url 'https://dl.bintray.com/hpdx/maven/' +// } } } diff --git a/fresco-helper/build.gradle b/fresco-helper/build.gradle index 44aac10..c8b7367 100644 --- a/fresco-helper/build.gradle +++ b/fresco-helper/build.gradle @@ -7,10 +7,10 @@ android { buildToolsVersion "24.0.2" defaultConfig { - minSdkVersion 17 + minSdkVersion 16 targetSdkVersion 22 - versionCode 2 - versionName "1.0.1" + versionCode 1 + versionName "1.0" } buildTypes { @@ -42,7 +42,7 @@ dependencies { // Maven Group ID group = "com.facebook.fresco.helper" // library的版本号,后面每次更新都需要更改这个值 -version = "1.1.2" +version = "1.1.3" // 生成jar包的task task sourcesJar(type: Jar) { @@ -80,7 +80,7 @@ install { packaging 'aar' groupId 'com.facebook.fresco.helper' artifactId 'fresco-helper' - version '1.1.2' + version '1.1.3' licenses { license { diff --git a/fresco-photoview/build.gradle b/fresco-photoview/build.gradle index aa8c1c9..c914213 100644 --- a/fresco-photoview/build.gradle +++ b/fresco-photoview/build.gradle @@ -4,11 +4,11 @@ apply plugin: 'com.jfrog.bintray' android { compileSdkVersion 24 - buildToolsVersion "25.0.0" + buildToolsVersion "24.0.2" defaultConfig { - minSdkVersion 17 - targetSdkVersion 24 + minSdkVersion 16 + targetSdkVersion 22 versionCode 1 versionName "1.0" } @@ -39,7 +39,7 @@ dependencies { // Maven Group ID group = "com.facebook.fresco.helper" // library的版本号,后面每次更新都需要更改这个值 -version = "1.1.2" +version = "1.1.3" // 生成jar包的task task sourcesJar(type: Jar) { @@ -77,7 +77,7 @@ install { packaging 'aar' groupId 'com.facebook.fresco.helper' artifactId 'fresco-photoview' - version '1.1.2' + version '1.1.3' licenses { license {