Skip to content

Commit a00ed21

Browse files
authored
chore: ⬆️ update libs gradle & androidX migration (#25)
- update Gradle up to 5.1.1 - update Kotlin up to 1.3.20 - migrated into AndroidX - update rx-java up to 2.2.6 - update mockito-kotlin up to 2.1.0 - update arrow up to 0.8.2
1 parent e96cf4d commit a00ed21

File tree

19 files changed

+60
-49
lines changed

19 files changed

+60
-49
lines changed

app/src/main/java/es/ffgiraldez/comicsearch/comics/data/storage/ComicDao.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package es.ffgiraldez.comicsearch.comics.data.storage
22

3-
import android.arch.persistence.room.Dao
4-
import android.arch.persistence.room.Insert
5-
import android.arch.persistence.room.Query
6-
import android.arch.persistence.room.Transaction
3+
4+
import androidx.room.Dao
5+
import androidx.room.Insert
6+
import androidx.room.Query
7+
import androidx.room.Transaction
78
import es.ffgiraldez.comicsearch.comics.domain.Volume
89
import io.reactivex.Flowable
910

app/src/main/java/es/ffgiraldez/comicsearch/comics/data/storage/ComicDatabase.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package es.ffgiraldez.comicsearch.comics.data.storage
22

3-
import android.arch.persistence.room.Database
4-
import android.arch.persistence.room.RoomDatabase
3+
import androidx.room.Database
4+
import androidx.room.RoomDatabase
5+
56

67
@Database(
78
entities = [

app/src/main/java/es/ffgiraldez/comicsearch/comics/data/storage/ComicEntities.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
package es.ffgiraldez.comicsearch.comics.data.storage
22

3-
import android.arch.persistence.room.*
4-
import android.arch.persistence.room.ForeignKey.CASCADE
3+
import androidx.room.ColumnInfo
4+
import androidx.room.Entity
5+
import androidx.room.ForeignKey
6+
import androidx.room.ForeignKey.CASCADE
7+
import androidx.room.Index
8+
import androidx.room.PrimaryKey
9+
510

611
@Entity(
712
tableName = "queries",

app/src/main/java/es/ffgiraldez/comicsearch/comics/di/comicModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package es.ffgiraldez.comicsearch.comics.di
22

3-
import android.arch.persistence.room.Room
43
import android.content.Context
4+
import androidx.room.Room
55
import es.ffgiraldez.comicsearch.comics.data.network.ComicVineApi
66
import es.ffgiraldez.comicsearch.comics.data.storage.ComicDatabase
77
import okhttp3.OkHttpClient
@@ -27,4 +27,4 @@ val comicModule = module {
2727
.create(ComicVineApi::class.java)
2828
}
2929
single { (context: Context) -> Room.databaseBuilder(context, ComicDatabase::class.java, "comics").build() }
30-
}
30+
}

app/src/main/java/es/ffgiraldez/comicsearch/detail/DetailActivity.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
package es.ffgiraldez.comicsearch.detail
1818

1919
import android.os.Bundle
20-
import android.support.v7.app.AppCompatActivity
21-
20+
import androidx.appcompat.app.AppCompatActivity
2221
import es.ffgiraldez.comicsearch.R
2322

2423
class DetailActivity : AppCompatActivity() {

app/src/main/java/es/ffgiraldez/comicsearch/platform/ImageViewBinding.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package es.ffgiraldez.comicsearch.platform
22

3-
import android.databinding.BindingAdapter
3+
import androidx.databinding.BindingAdapter
44
import android.widget.ImageView
55
import com.squareup.picasso.Picasso
66

app/src/main/java/es/ffgiraldez/comicsearch/platform/LiveDataExt.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package es.ffgiraldez.comicsearch.platform
22

3-
import android.arch.lifecycle.LiveData
4-
import android.arch.lifecycle.Observer
3+
import androidx.lifecycle.LiveData
4+
import androidx.lifecycle.Observer
55
import io.reactivex.BackpressureStrategy
66
import io.reactivex.Flowable
77
import io.reactivex.android.MainThreadDisposable

app/src/main/java/es/ffgiraldez/comicsearch/platform/ViewBinding.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package es.ffgiraldez.comicsearch.platform
22

3-
import android.databinding.BindingAdapter
3+
import androidx.databinding.BindingAdapter
44
import android.view.View
55

66
@BindingAdapter("gone")

app/src/main/java/es/ffgiraldez/comicsearch/query/base/presentation/QueryViewModel.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
package es.ffgiraldez.comicsearch.query.base.presentation
22

3-
import android.arch.lifecycle.MutableLiveData
4-
import android.arch.lifecycle.ViewModel
3+
4+
import androidx.lifecycle.MutableLiveData
5+
import androidx.lifecycle.ViewModel
56
import arrow.core.Option
67
import arrow.core.none
78
import arrow.core.some

app/src/main/java/es/ffgiraldez/comicsearch/query/base/ui/QueryActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package es.ffgiraldez.comicsearch.query.base.ui
22

3-
import android.databinding.DataBindingUtil
43
import android.os.Bundle
5-
import android.support.v7.app.AppCompatActivity
4+
import androidx.appcompat.app.AppCompatActivity
5+
import androidx.databinding.DataBindingUtil
66
import es.ffgiraldez.comicsearch.R
77
import es.ffgiraldez.comicsearch.databinding.QueryActivityBinding
88
import es.ffgiraldez.comicsearch.navigation.Navigator

0 commit comments

Comments
 (0)