File tree Expand file tree Collapse file tree 5 files changed +17
-14
lines changed
src/main/java/com/manaschaudhari/android_mvvm/sample/calculator_example Expand file tree Collapse file tree 5 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
3
android {
4
- compileSdkVersion 25
5
- buildToolsVersion ' 25 .0.2 '
4
+ compileSdkVersion 27
5
+ buildToolsVersion ' 27 .0.3 '
6
6
7
7
defaultConfig {
8
8
minSdkVersion 9
9
- targetSdkVersion 25
9
+ targetSdkVersion 27
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
@@ -46,8 +46,8 @@ dependencies {
46
46
androidTestCompile ' com.android.support.test:rules:0.5'
47
47
compile " io.reactivex.rxjava2:rxjava:2.0.7"
48
48
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 '
51
51
}
52
52
53
53
apply from : file(' bintray-push.gradle' )
Original file line number Diff line number Diff line change 3
3
buildscript {
4
4
repositories {
5
5
jcenter()
6
+ google()
6
7
}
7
8
dependencies {
8
- classpath ' com.android.tools.build:gradle:2.3.0 '
9
+ classpath ' com.android.tools.build:gradle:3.1.3 '
9
10
classpath ' com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.1'
10
11
classpath ' com.github.dcendents:android-maven-gradle-plugin:1.4.1'
11
12
@@ -17,6 +18,7 @@ buildscript {
17
18
allprojects {
18
19
repositories {
19
20
jcenter()
21
+ google()
20
22
}
21
23
}
22
24
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
3
android {
4
- compileSdkVersion 25
5
- buildToolsVersion " 25 .0.2 "
4
+ compileSdkVersion 27
5
+ buildToolsVersion " 27 .0.3 "
6
6
7
7
defaultConfig {
8
8
minSdkVersion 9
9
- targetSdkVersion 25
9
+ targetSdkVersion 27
10
10
versionCode 1
11
11
versionName " 1.0"
12
12
@@ -39,7 +39,7 @@ dependencies {
39
39
androidTestCompile(' com.android.support.test.espresso:espresso-core:2.2.2' , {
40
40
exclude group : ' com.android.support' , module : ' support-annotations'
41
41
})
42
- compile ' com.android.support:appcompat-v7:25.2.0 '
42
+ compile ' com.android.support:appcompat-v7:27.1.1 '
43
43
compile " com.github.akarnokd:rxjava2-interop:0.9.3"
44
44
compile ' io.reactivex:rxjava:1.2.7'
45
45
compile project(' :android-mvvm' )
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.application'
2
2
3
3
android {
4
- compileSdkVersion 25
5
- buildToolsVersion ' 25 .0.2 '
4
+ compileSdkVersion 27
5
+ buildToolsVersion ' 27 .0.3 '
6
6
7
7
defaultConfig {
8
8
applicationId " com.manaschaudhari.android_mvvm.sample"
9
9
minSdkVersion 15
10
- targetSdkVersion 25
10
+ targetSdkVersion 27
11
11
versionCode 1
12
12
versionName " 1.0"
13
13
}
@@ -36,7 +36,7 @@ android {
36
36
dependencies {
37
37
compile fileTree(dir : ' libs' , include : [' *.jar' ])
38
38
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 '
40
40
compile project(' :android-mvvm' )
41
41
compile project(' :rxjava-compat' )
42
42
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ public static int toLayout(Calculator.Operation operation) {
53
53
}
54
54
}
55
55
56
+ @ BindingConversion
56
57
public static Calculator .Operation toOperation (int layoutId ) {
57
58
switch (layoutId ) {
58
59
case R .id .radio_add :
You can’t perform that action at this time.
0 commit comments