Skip to content

Commit

Permalink
Upgrade and Jetify dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
markov committed Oct 16, 2018
1 parent 84632b4 commit 061cf6a
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 38 deletions.
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
Expand All @@ -18,7 +18,7 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<include layout="@layout/content_main" />

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/content_main.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand All @@ -8,4 +8,4 @@
tools:context=".MainActivity"
tools:showIn="@layout/activity_main">

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app1/src/main/res/layout/activity_main.xml
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
Expand All @@ -18,7 +18,7 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<include layout="@layout/content_main" />

Expand Down
4 changes: 2 additions & 2 deletions app1/src/main/res/layout/content_main.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand All @@ -18,4 +18,4 @@
android:paddingStart="20dp"
android:paddingTop="20dp" />

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app2/src/main/res/layout/activity_main.xml
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
Expand All @@ -18,7 +18,7 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<FrameLayout
android:id="@+id/content_frame"
Expand Down
4 changes: 2 additions & 2 deletions app2/src/main/res/layout/content_main.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand All @@ -15,4 +15,4 @@
android:paddingStart="20dp"
android:paddingTop="20dp" />

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app3/src/main/res/layout/activity_main.xml
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
Expand All @@ -18,7 +18,7 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<FrameLayout
android:id="@+id/content_frame"
Expand Down
4 changes: 2 additions & 2 deletions app3/src/main/res/layout/content_main.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand Down Expand Up @@ -30,4 +30,4 @@
app:layout_constraintTop_toBottomOf="@id/searchBar"
tools:text="Hello World" />

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app4/src/main/res/layout/activity_main.xml
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
Expand All @@ -18,7 +18,7 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<FrameLayout
android:id="@+id/content_frame"
Expand Down
4 changes: 2 additions & 2 deletions app4/src/main/res/layout/content_main.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand Down Expand Up @@ -30,4 +30,4 @@
app:layout_constraintTop_toBottomOf="@id/searchBar"
tools:text="Hello World" />

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app5/src/main/res/layout/activity_main.xml
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
Expand All @@ -18,7 +18,7 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<FrameLayout
android:id="@+id/content_frame"
Expand Down
4 changes: 2 additions & 2 deletions app5/src/main/res/layout/content_main.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand Down Expand Up @@ -30,4 +30,4 @@
app:layout_constraintTop_toBottomOf="@id/searchBar"
tools:text="Hello World" />

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
4 changes: 2 additions & 2 deletions app6/src/main/res/layout/activity_main.xml
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<android.support.design.widget.AppBarLayout
<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
Expand All @@ -18,7 +18,7 @@
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />

</android.support.design.widget.AppBarLayout>
</com.google.android.material.appbar.AppBarLayout>

<FrameLayout
android:id="@+id/content_frame"
Expand Down
6 changes: 3 additions & 3 deletions app6/src/main/res/layout/content_main.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
Expand Down Expand Up @@ -40,11 +40,11 @@
android:paddingStart="20dp"
android:paddingTop="20dp"
android:visibility="gone"
app:layoutManager="android.support.v7.widget.LinearLayoutManager"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/searchBar"
tools:text="Hello World" />

</android.support.constraint.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
18 changes: 9 additions & 9 deletions common.gradle
Expand Up @@ -28,23 +28,23 @@ dependencies {
implementation("androidx.lifecycle:lifecycle-viewmodel:2.0.0")
implementation("androidx.lifecycle:lifecycle-extensions:2.0.0")

implementation("com.google.guava:guava:25.0-android")
implementation("com.squareup.moshi:moshi:1.6.0")
implementation("com.squareup.moshi:moshi-kotlin:1.6.0")
implementation("com.google.guava:guava:26.0-android")
implementation("com.squareup.moshi:moshi:1.7.0")
implementation("com.squareup.moshi:moshi-kotlin:1.7.0")
implementation("com.squareup.retrofit2:adapter-rxjava2:2.4.0")
implementation("com.squareup.retrofit2:converter-moshi:2.4.0")
implementation("com.squareup.retrofit2:retrofit:2.4.0")
implementation("com.github.bumptech.glide:glide:3.8.0")
implementation("io.reactivex.rxjava2:rxjava:2.1.13")
implementation("io.reactivex.rxjava2:rxandroid:2.0.2")
implementation("com.github.bumptech.glide:glide:4.8.0")
implementation("io.reactivex.rxjava2:rxjava:2.2.2")
implementation("io.reactivex.rxjava2:rxandroid:2.1.0")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.2.71")

testImplementation("junit:junit:4.12")
testImplementation("org.mockito:mockito-inline:2.18.3")
testImplementation("org.mockito:mockito-inline:2.23.0")

androidTestImplementation("junit:junit:4.12")
androidTestImplementation("org.mockito:mockito-android:2.18.3")
androidTestImplementation("com.nhaarman:mockito-kotlin:1.5.0")
androidTestImplementation("org.mockito:mockito-android:2.23.0")
androidTestImplementation("com.nhaarman:mockito-kotlin:1.6.0")
androidTestImplementation("com.android.support.test:rules:1.0.2")
androidTestImplementation("com.android.support.test:runner:1.0.2")
androidTestImplementation("com.android.support.test.espresso:espresso-core:3.0.2")
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Expand Up @@ -13,3 +13,6 @@ org.gradle.daemon=true
# Disable is specifically, as it is not compatible with the android plugin 3.1.2. Also, the gains
# are minimum according to this conversation: https://github.com/gradle/gradle/issues/2868
org.gradle.configureondemand=false

android.useAndroidX = true
android.enableJetifier = true

0 comments on commit 061cf6a

Please sign in to comment.