Skip to content

Commit

Permalink
升级gradle版本到3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maning committed Dec 1, 2017
1 parent 446666d commit eb2eec4
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 35 deletions.
15 changes: 1 addition & 14 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 19 additions & 17 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ android {

// 设置MultiDex可用
multiDexEnabled true
flavorDimensions "versionCode"
javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = true } }
}

signingConfigs {//签名信息
Expand Down Expand Up @@ -57,16 +59,16 @@ android {
proguardFiles customerproguardFile.path
buildConfigField "boolean", "LOG_DEBUG", "false"
// 自定义输出配置
applicationVariants.all { variant ->
variant.outputs.each { output ->
def outputFile = output.outputFile
if (outputFile != null && outputFile.name.endsWith('.apk')) {
// 输出apk名称为xxx_release_v1.0_wandoujia.apk
def fileName = "gankmm_${variant.buildType.name}_v${defaultConfig.versionName}_${variant.productFlavors[0].name}.apk"
output.outputFile = new File(outputFile.parent + "/${variant.buildType.name}", fileName)
}
}
}
// applicationVariants.all { variant ->
// variant.outputs.each { output ->
// def outputFile = output.outputFile
// if (outputFile != null && outputFile.name.endsWith('.apk')) {
// // 输出apk名称为xxx_release_v1.0_wandoujia.apk
// def fileName = "gankmm_${variant.buildType.name}_v${defaultConfig.versionName}_${variant.productFlavors[0].name}.apk"
// output.outputFile = new File(outputFile.parent + "/${variant.buildType.name}", fileName)
// }
// }
// }
}
debug {
//混淆
Expand All @@ -77,7 +79,6 @@ android {
}

}

}

repositories{
Expand All @@ -88,10 +89,10 @@ repositories{

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.android.support:support-v4:25.2.0'
compile 'com.android.support:design:25.2.0'
compile 'com.android.support:recyclerview-v7:25.2.0'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
/* Dex分包 */
compile 'com.android.support:multidex:1.0.1'
/*RecycleView的间隔线*/
Expand All @@ -103,8 +104,7 @@ dependencies {
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
/*图片加载Glide*/
// compile 'com.github.bumptech.glide:glide:4.0.0-RC1'
// compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.bumptech.glide:glide:4.0.0'
compile 'jp.wasabeef:glide-transformations:2.0.2'
/*日志*/
compile 'com.github.zhaokaiqiang.klog:library:1.6.0'
Expand Down Expand Up @@ -162,5 +162,7 @@ dependencies {
compile 'com.contrarywind:Android-PickerView:3.2.5'
/* 图片选择 */
compile 'com.github.LuckSiege.PictureSelector:picture_library:v2.1.0'
/* 提示框 */
compile 'com.github.maning0303:MNProgressHUD:V1.0.2'

}
4 changes: 3 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/DayTheme">
android:theme="@style/DayTheme"
tools:replace="icon,label,theme,allowBackup"
>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.fileProvider"
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.android.tools.build:gradle:3.0.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -32,7 +32,7 @@ task clean(type: Delete) {

ext {
compileSdkVersion = 25
buildToolsVersion = "25.0.2"
buildToolsVersion = "26.0.2"
minSdkVersion = 16
targetSdkVersion = 25
versionCode = 24
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

0 comments on commit eb2eec4

Please sign in to comment.