Skip to content

Commit

Permalink
Added new constructor for GeocoderPresenter (#157)
Browse files Browse the repository at this point in the history
* Added new constructor for GeocoderPresenter because it's not mandatory the use of Google places API. Also Updated libraries.

* updated to the latest version of RxJava
  • Loading branch information
ferranpons authored Mar 23, 2018
1 parent 9502c13 commit 714624b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ apply from: '../quality.gradle'

android {
compileSdkVersion 27
buildToolsVersion '27.0.2'

defaultConfig {
applicationId "com.schibsted.mappicker"
Expand All @@ -30,6 +29,6 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation project(':leku')
}
6 changes: 2 additions & 4 deletions leku/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ version = "${versionMajor}.${versionMinor}.${versionPatch}"

android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
resourcePrefix 'leku_'

defaultConfig {
Expand Down Expand Up @@ -49,7 +48,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

def supportVersion = '27.0.2'
def supportVersion = '27.1.0'
implementation "com.android.support:appcompat-v7:$supportVersion"
implementation "com.android.support:design:$supportVersion"

Expand All @@ -60,8 +59,7 @@ dependencies {

implementation 'pl.charmas.android:android-reactive-location2:2.0@aar'

implementation "io.reactivex:rxandroid:1.2.1"
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'
implementation 'io.reactivex.rxjava2:rxjava:2.1.11'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'nl.littlerobots.rxlint:rxlint:1.6'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ public GeocoderPresenter(ReactiveLocationProvider reactiveLocationProvider, Geoc
this(reactiveLocationProvider, geocoderRepository, placesDataSource, AndroidSchedulers.mainThread());
}

public GeocoderPresenter(ReactiveLocationProvider reactiveLocationProvider, GeocoderRepository geocoderRepository) {
this(reactiveLocationProvider, geocoderRepository, null, AndroidSchedulers.mainThread());
}

public GeocoderPresenter(ReactiveLocationProvider reactiveLocationProvider, GeocoderRepository geocoderRepository,
GooglePlacesDataSource placesDataSource, Scheduler scheduler) {
this.geocoderRepository = geocoderRepository;
Expand Down

0 comments on commit 714624b

Please sign in to comment.