File tree Expand file tree Collapse file tree 4 files changed +4
-15
lines changed
src/main/java/guide/graphql/toc/ui Expand file tree Collapse file tree 4 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ plugins {
22 id(" com.android.application" )
33 id(" kotlin-android" )
44 id(" androidx.navigation.safeargs.kotlin" )
5- id(" com.apollographql.apollo" ).version(" 2.2.2" )
65}
76
87android {
@@ -16,7 +15,7 @@ android {
1615 versionCode = 1
1716 versionName = " 1.0"
1817 }
19-
18+
2019 buildFeatures {
2120 viewBinding = true
2221 }
@@ -44,12 +43,4 @@ dependencies {
4443 implementation(" androidx.navigation:navigation-fragment-ktx:2.3.0" )
4544 implementation(" androidx.navigation:navigation-ui-ktx:2.3.0" )
4645 implementation(" com.google.android.material:material:1.3.0-alpha01" )
47- implementation(" com.apollographql.apollo:apollo-runtime:2.2.2" )
48- implementation(" com.apollographql.apollo:apollo-coroutines-support:2.2.2" )
49- implementation(" androidx.lifecycle:lifecycle-livedata-ktx:2.2.0" )
50-
5146}
52-
53- apollo {
54- generateKotlinModels.set(true )
55- }
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ class ChaptersAdapter(
1010 private val context : Context ,
1111 private var chapters : List <String > = listOf(),
1212 private val onItemClicked : ((String ) -> Unit )
13- ) :
14- RecyclerView .Adapter <ChaptersAdapter .ViewHolder >() {
13+ ) : RecyclerView.Adapter<ChaptersAdapter.ViewHolder>() {
1514
1615 class ViewHolder (val binding : ChapterBinding ) : RecyclerView.ViewHolder(binding.root)
1716
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ import guide.graphql.toc.databinding.SectionBinding
1010class SectionsAdapter (
1111 private val context : Context ,
1212 private val chapterNumber : Int
13- ) :
14- RecyclerView .Adapter <SectionsAdapter .ViewHolder >() {
13+ ) : RecyclerView.Adapter<SectionsAdapter.ViewHolder>() {
1514
1615 class ViewHolder (val binding : SectionBinding ) : RecyclerView.ViewHolder(binding.root)
1716
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ buildscript {
55 }
66
77 dependencies {
8- classpath(" com.android.tools.build:gradle:4.1.0-beta03 " )
8+ classpath(" com.android.tools.build:gradle:4.1.0-beta04 " )
99 classpath(" androidx.navigation:navigation-safe-args-gradle-plugin:2.3.0" )
1010 classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72" )
1111 }
You can’t perform that action at this time.
0 commit comments