File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed
app/src/main/java/com/hardsoftstudio/rxflux/sample/core Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ For a real case example read my post at medium [RxFlux Android Architecture](htt
2929## Gradle:
3030```
3131dependencies {
32- compile 'com.hardsoftstudio:rxflux:0.3.2 '
32+ compile 'com.hardsoftstudio:rxflux:0.4.1 '
3333}
3434```
3535
Original file line number Diff line number Diff line change 33import com .hardsoftstudio .rxflux .sample .model .GitHubRepo ;
44import com .hardsoftstudio .rxflux .sample .model .GitUser ;
55import java .util .ArrayList ;
6-
76import okhttp3 .OkHttpClient ;
87import okhttp3 .logging .HttpLoggingInterceptor ;
9- import retrofit2 .GsonConverterFactory ;
108import retrofit2 .Retrofit ;
11- import retrofit2 .RxJavaCallAdapterFactory ;
9+ import retrofit2 .adapter .rxjava .RxJavaCallAdapterFactory ;
10+ import retrofit2 .converter .gson .GsonConverterFactory ;
1211import retrofit2 .http .GET ;
1312import retrofit2 .http .Path ;
1413import rx .Observable ;
@@ -33,7 +32,11 @@ private static void create() {
3332 HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor ();
3433 interceptor .setLevel (HttpLoggingInterceptor .Level .BASIC );
3534
36- final Retrofit retrofit = new Retrofit .Builder ().baseUrl (GitHubApi .ENDPOINT ).client (client ).addConverterFactory (GsonConverterFactory .create ()).addCallAdapterFactory (RxJavaCallAdapterFactory .create ()).build ();
35+ final Retrofit retrofit = new Retrofit .Builder ()
36+ .baseUrl (GitHubApi .ENDPOINT )
37+ .client (client )
38+ .addConverterFactory (GsonConverterFactory .create ())
39+ .addCallAdapterFactory (RxJavaCallAdapterFactory .create ()).build ();
3740 instance = retrofit .create (GitHubApi .class );
3841 }
3942
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven'
33apply plugin : ' com.jfrog.bintray'
44
55// This is the library version used when deploying the artifact
6- version = " 0.4.0 "
6+ version = " 0.4.1 "
77group = " com.hardsoftstudio" // Maven Group ID for the artifact
88
99android {
@@ -44,7 +44,7 @@ android {
4444dependencies {
4545 compile ' io.reactivex:rxandroid:1.0.1'
4646 compile ' io.reactivex:rxjava:1.0.14'
47- compile ' com.android.support:support-v4:23.3 .0'
47+ compile ' com.android.support:support-v4:23.4 .0'
4848
4949 testCompile ' junit:junit:4.12'
5050 testCompile " org.mockito:mockito-core:1.10.17"
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <module external.linked.project.id=" :rxflux" external.linked.project.path=" $MODULE_DIR$" external.root.project.path=" $MODULE_DIR$/.." external.system.id=" GRADLE" external.system.module.group=" com.hardsoftstudio" external.system.module.version=" 0.4.0 " type =" JAVA_MODULE" version =" 4" >
2+ <module external.linked.project.id=" :rxflux" external.linked.project.path=" $MODULE_DIR$" external.root.project.path=" $MODULE_DIR$/.." external.system.id=" GRADLE" external.system.module.group=" com.hardsoftstudio" external.system.module.version=" 0.4.1 " type =" JAVA_MODULE" version =" 4" >
33 <component name =" FacetManager" >
44 <facet type =" android-gradle" name =" Android-Gradle" >
55 <configuration >
103103 </content >
104104 <orderEntry type =" jdk" jdkName =" Android API 23 Platform" jdkType =" Android SDK" />
105105 <orderEntry type =" sourceFolder" forTests =" false" />
106- <orderEntry type =" library" exported =" " name =" rxjava-1.0.14" level =" project" />
107- <orderEntry type =" library" exported =" " name =" support-v4-23.3.0" level =" project" />
106+ <orderEntry type =" library" exported =" " name =" support-annotations-23.4.0" level =" project" />
108107 <orderEntry type =" library" exported =" " scope =" TEST" name =" hamcrest-core-1.3" level =" project" />
109- <orderEntry type =" library" exported =" " scope =" TEST" name =" mockito-core-1.10.17" level =" project" />
108+ <orderEntry type =" library" exported =" " name =" rxjava-1.0.14" level =" project" />
109+ <orderEntry type =" library" exported =" " name =" support-v4-23.4.0" level =" project" />
110110 <orderEntry type =" library" exported =" " scope =" TEST" name =" junit-4.12" level =" project" />
111+ <orderEntry type =" library" exported =" " scope =" TEST" name =" mockito-core-1.10.17" level =" project" />
111112 <orderEntry type =" library" exported =" " name =" rxandroid-1.0.1" level =" project" />
112- <orderEntry type =" library" exported =" " name =" support-annotations-23.3.0" level =" project" />
113113 <orderEntry type =" library" exported =" " scope =" TEST" name =" objenesis-2.1" level =" project" />
114114 </component >
115115</module >
You can’t perform that action at this time.
0 commit comments