Skip to content

Commit

Permalink
Update gradle and support lib version. Delete android:allowBackup and…
Browse files Browse the repository at this point in the history
… android:supportsRtl.
  • Loading branch information
ittianyu committed Mar 13, 2017
1 parent cf6b3a3 commit c9ad7d4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
11 changes: 6 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
applicationId "com.ittianyu.bottomnavigationviewexsample"
minSdkVersion 11
targetSdkVersion 25
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -27,7 +28,7 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
testCompile 'junit:junit:4.12'
compile project(':widget')

Expand All @@ -37,5 +38,5 @@ dependencies {
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'

// badge
compile 'com.allenliu.badgeview:library:1.0.6'
compile 'com.allenliu.badgeview:library:1.1.1'
}
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:2.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -22,3 +22,12 @@ allprojects {
task clean(type: Delete) {
delete rootProject.buildDir
}

ext {
targetSdkVersion = 25
buildToolsVersion = '25.0.1'
compileSdkVersion = 25

// Libraries
supportLibraryVersion = '25.2.0'
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Mon Dec 28 10:00:20 PST 2015
#Mon Mar 13 22:31:28 CST 2017
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-3.3-all.zip
12 changes: 6 additions & 6 deletions widget/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ apply plugin: 'com.github.dcendents.android-maven'
group='com.github.ittianyu'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
minSdkVersion 11
targetSdkVersion 25
versionCode 7
versionName "1.1.3"
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 8
versionName "1.1.4"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand All @@ -29,7 +29,7 @@ dependencies {
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:design:25.1.0'
compile "com.android.support:design:$rootProject.supportLibraryVersion"
testCompile 'junit:junit:4.12'
}

Expand Down
3 changes: 1 addition & 2 deletions widget/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ittianyu.bottomnavigationviewex">

<application android:allowBackup="true"
android:supportsRtl="true">
<application>

</application>

Expand Down

0 comments on commit c9ad7d4

Please sign in to comment.