Skip to content

Commit f3a7a48

Browse files
committed
Add retrofit, gson, dagger rx2, recyclerview
1 parent 200b690 commit f3a7a48

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

app/build.gradle

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,42 @@ android {
2424

2525
dependencies {
2626
implementation fileTree(dir: 'libs', include: ['*.jar'])
27-
implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
27+
28+
/**
29+
Because RxAndroid releases are few and far between, it is recommended you also
30+
explicitly depend on RxJava's latest version for bug fixes and new features.
31+
*/
32+
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
33+
implementation 'io.reactivex.rxjava2:rxjava:2.0.9'
34+
35+
/**
36+
* Android Studio by default will not recognize a lot of generated Dagger 2 code as
37+
* legitimate classes, but adding the android-apt plugin will add these files into the
38+
* IDE class path and enable you to have more visibility.
39+
*/
40+
compile 'com.google.dagger:dagger:2.4'
41+
annotationProcessor "com.google.dagger:dagger-compiler:2.4"
42+
43+
// google
44+
implementation 'com.android.support:design:26.1.0'
45+
46+
// gson
47+
compile 'com.google.code.gson:gson:2.8.0'
48+
49+
// retrofit
50+
compile 'com.squareup.retrofit2:retrofit:2.2.0'
51+
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
52+
compile 'com.squareup.retrofit2:adapter-rxjava2:2.2.0'
53+
54+
// google
2855
implementation 'com.android.support:appcompat-v7:26.1.0'
2956
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
30-
implementation 'com.android.support:design:26.1.0'
57+
compile 'com.android.support:recyclerview-v7:26.1.0'
58+
59+
// kotlin
60+
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
61+
62+
// tests
3163
testImplementation 'junit:junit:4.12'
3264
androidTestImplementation 'com.android.support.test:runner:1.0.1'
3365
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

0 commit comments

Comments
 (0)