Skip to content

Commit ef2c246

Browse files
committed
Update Dagger
1 parent 395e759 commit ef2c246

File tree

4 files changed

+18
-15
lines changed

4 files changed

+18
-15
lines changed

Dagger/app/build.gradle

+14-11
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ apply plugin: 'kotlin-android'
44

55
apply plugin: 'kotlin-android-extensions'
66

7-
ext.dagger_version = "2.11"
8-
ext.arch_version = "1.0.0-beta2"
7+
ext.dagger_version = "2.15"
8+
ext.support_version = "27.1.0"
9+
ext.arch_version = "1.1.1"
10+
ext.room_version = "1.0.0"
11+
ext.retrofit_version = "2.3.0"
912

1013
android {
11-
compileSdkVersion 26
12-
buildToolsVersion '26.0.2'
14+
compileSdkVersion 27
15+
buildToolsVersion '27.0.3'
1316
defaultConfig {
1417
//TODO: Update applicationId
1518
applicationId "com.snappymob.kotlincomponents.dagger"
1619
minSdkVersion 16
17-
targetSdkVersion 26
20+
targetSdkVersion 27
1821
versionCode 1
1922
versionName "1.0"
2023
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -30,8 +33,8 @@ android {
3033

3134
dependencies {
3235
implementation fileTree(dir: 'libs', include: ['*.jar'])
33-
implementation 'com.android.support:appcompat-v7:26.1.0'
34-
implementation 'com.android.support:recyclerview-v7:26.1.0'
36+
implementation "com.android.support:appcompat-v7:$support_version"
37+
implementation "com.android.support:recyclerview-v7:$support_version"
3538
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
3639
testImplementation 'junit:junit:4.12'
3740
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
@@ -40,12 +43,12 @@ dependencies {
4043
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
4144

4245
//Retrofit
43-
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
44-
implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
46+
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
47+
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
4548

4649
//Room
47-
implementation "android.arch.persistence.room:runtime:$arch_version"
48-
kapt "android.arch.persistence.room:compiler:$arch_version"
50+
implementation "android.arch.persistence.room:runtime:$room_version"
51+
kapt "android.arch.persistence.room:compiler:$room_version"
4952

5053
//Lifecycle
5154
implementation "android.arch.lifecycle:runtime:$arch_version"

Dagger/app/src/main/java/com/snappymob/kotlincomponents/MainActivity.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class MainActivity : AppCompatActivity() {
9090
notifyDataSetChanged()
9191
}
9292

93-
override fun onCreateViewHolder(p0: ViewGroup?, p1: Int): RepoItemViewHolder {
93+
override fun onCreateViewHolder(p0: ViewGroup, p1: Int): RepoItemViewHolder {
9494
val textView = TextView(context)
9595

9696
return RepoItemViewHolder(textView)

Dagger/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
jcenter()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:3.0.0-rc1'
10+
classpath 'com.android.tools.build:gradle:3.1.0'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212

1313
// NOTE: Do not place your application dependencies here; they belong
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sat Sep 09 10:33:57 MYT 2017
1+
#Sat Mar 31 13:21:08 MYT 2018
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

0 commit comments

Comments
 (0)