Skip to content

Commit 89422fe

Browse files
Upgrade compileSdk and build tools to 27.x
1 parent 2ae7a6f commit 89422fe

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

android-mvvm/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion '25.0.2'
4+
compileSdkVersion 27
5+
buildToolsVersion '27.0.3'
66

77
defaultConfig {
88
minSdkVersion 9
9-
targetSdkVersion 25
9+
targetSdkVersion 27
1010
versionCode 1
1111
versionName "1.0"
1212
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -46,8 +46,8 @@ dependencies {
4646
androidTestCompile 'com.android.support.test:rules:0.5'
4747
compile "io.reactivex.rxjava2:rxjava:2.0.7"
4848
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
49-
compile 'com.android.support:recyclerview-v7:25.2.0'
50-
compile 'com.android.support:appcompat-v7:25.2.0'
49+
compile 'com.android.support:recyclerview-v7:27.1.1'
50+
compile 'com.android.support:appcompat-v7:27.1.1'
5151
}
5252

5353
apply from: file('bintray-push.gradle')

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
buildscript {
44
repositories {
55
jcenter()
6+
google()
67
}
78
dependencies {
8-
classpath 'com.android.tools.build:gradle:2.3.0'
9+
classpath 'com.android.tools.build:gradle:3.1.3'
910
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'
1011
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
1112

@@ -17,6 +18,7 @@ buildscript {
1718
allprojects {
1819
repositories {
1920
jcenter()
21+
google()
2022
}
2123
}
2224

rxjava-compat/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion "25.0.2"
4+
compileSdkVersion 27
5+
buildToolsVersion "27.0.3"
66

77
defaultConfig {
88
minSdkVersion 9
9-
targetSdkVersion 25
9+
targetSdkVersion 27
1010
versionCode 1
1111
versionName "1.0"
1212

@@ -39,7 +39,7 @@ dependencies {
3939
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
4040
exclude group: 'com.android.support', module: 'support-annotations'
4141
})
42-
compile 'com.android.support:appcompat-v7:25.2.0'
42+
compile 'com.android.support:appcompat-v7:27.1.1'
4343
compile "com.github.akarnokd:rxjava2-interop:0.9.3"
4444
compile 'io.reactivex:rxjava:1.2.7'
4545
compile project(':android-mvvm')

sample/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 25
5-
buildToolsVersion '25.0.2'
4+
compileSdkVersion 27
5+
buildToolsVersion '27.0.3'
66

77
defaultConfig {
88
applicationId "com.manaschaudhari.android_mvvm.sample"
99
minSdkVersion 15
10-
targetSdkVersion 25
10+
targetSdkVersion 27
1111
versionCode 1
1212
versionName "1.0"
1313
}
@@ -36,7 +36,7 @@ android {
3636
dependencies {
3737
compile fileTree(dir: 'libs', include: ['*.jar'])
3838
testCompile 'junit:junit:4.12'
39-
compile 'com.android.support:appcompat-v7:25.2.0'
39+
compile 'com.android.support:appcompat-v7:27.1.1'
4040
compile project(':android-mvvm')
4141
compile project(':rxjava-compat')
4242

sample/src/main/java/com/manaschaudhari/android_mvvm/sample/calculator_example/BindingAdapters.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static int toLayout(Calculator.Operation operation) {
5353
}
5454
}
5555

56+
@BindingConversion
5657
public static Calculator.Operation toOperation(int layoutId) {
5758
switch (layoutId) {
5859
case R.id.radio_add:

0 commit comments

Comments
 (0)