Skip to content

Commit

Permalink
Updated Gradle, librariers and minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Chagas <[email protected]>
  • Loading branch information
rtchagas committed Jun 25, 2019
1 parent e9338f5 commit 3e169e8
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ fastlane/readme.md

# Others
.DS_Store
hidden_keys.xml

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.kotlin_version = '1.3.31'
ext.kotlin_version = '1.3.40'

repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
Expand Down
28 changes: 14 additions & 14 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,41 +38,41 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"

// KTX
implementation 'androidx.core:core-ktx:1.1.0-alpha05'
implementation 'androidx.core:core-ktx:1.2.0-alpha02'

// Anko Commons
implementation "org.jetbrains.anko:anko-commons:0.10.8"

// Support library
implementation 'androidx.appcompat:appcompat:1.1.0-alpha04'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'
implementation 'com.google.android.material:material:1.1.0-alpha05'
implementation 'androidx.appcompat:appcompat:1.1.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
implementation 'com.google.android.material:material:1.1.0-alpha07'

// Android architecture components
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0-alpha04'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.1.0-alpha04'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0-alpha01'
implementation 'androidx.lifecycle:lifecycle-common-java8:2.2.0-alpha01'

// Google Play Services
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.libraries.places:places:1.1.0'

// Koin for Android
implementation 'org.koin:koin-android:2.0.0-rc-2'
implementation 'org.koin:koin-android-viewmodel:2.0.0-rc-2'

// Rx
implementation 'io.reactivex.rxjava2:rxjava:2.2.4'
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'

// Moshi
implementation 'com.squareup.moshi:moshi:1.8.0'
kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.8.0'

// Retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-moshi:2.5.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
implementation 'com.squareup.retrofit2:retrofit:2.6.0'
implementation 'com.squareup.retrofit2:converter-moshi:2.6.0'
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.6.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.14.1'

// Picasso
Expand All @@ -83,6 +83,6 @@ dependencies {
implementation 'com.karumi:dexter:5.0.0'

testImplementation 'junit:junit:4.13-beta-2'
androidTestImplementation 'androidx.test:runner:1.2.0-alpha04'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha04'
androidTestImplementation 'androidx.test:runner:1.3.0-alpha01'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha01'
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.rtchagas.pingplacepicker.repository.googlemaps.GoogleMapsRepository
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import org.koin.android.ext.koin.androidContext
import org.koin.dsl.bind
import org.koin.dsl.module
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
Expand Down Expand Up @@ -40,5 +41,7 @@ val repositoryModule = module {
}

// GoogleMapsRepository
single { GoogleMapsRepository(googleClient = get(), googleMapsAPI = get()) as PlaceRepository }
single {
GoogleMapsRepository(googleClient = get(), googleMapsAPI = get())
} bind PlaceRepository::class
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class BaseViewModel : ViewModel() {
compositeDisposable.add(disposable)
}

fun clearDisposables() {
private fun clearDisposables() {
compositeDisposable.clear()
}
}
4 changes: 2 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ dependencies {

// Support library
implementation 'androidx.appcompat:appcompat:1.1.0-alpha04'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'
implementation 'com.google.android.material:material:1.1.0-alpha05'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
implementation 'com.google.android.material:material:1.1.0-alpha07'

// Places library
implementation 'com.google.android.libraries.places:places:1.1.0'
Expand Down
4 changes: 2 additions & 2 deletions sample/src/main/res/values/keys.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources>

<!-- TODO: Move to Firebase remote configs -->
<string name="key_google_apis_android">Add here an Android restricted key</string>
<string name="key_google_apis_geolocation">Add here an Geolocation API only restricted key</string>
<string name="key_google_apis_android" translatable="false">@string/key_android</string>
<string name="key_google_apis_geolocation" translatable="false">@string/key_geolocation</string>

</resources>

0 comments on commit 3e169e8

Please sign in to comment.