Skip to content

Commit

Permalink
refactor: Create app module for crypto demos.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Jun 5, 2021
1 parent 2293c7f commit 5a6845c
Show file tree
Hide file tree
Showing 33 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ dependencies {
implementation(project(":data"))
implementation(project(":theme"))
implementation(project(":demos:instagram"))
implementation(project(":demos:cryptoapp"))
implementation(project(":demos:cryptoapp:app"))
implementation(project(":demos:moviesapp:app"))
implementation(project(":components:charts"))
implementation(project(":components:tags"))
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ plugins {

dependencies {
implementation(project(":components:charts"))
implementation(project(":demos:cryptoapp:data"))
implementation(project(":theme"))
implementation(project(":data"))
implementation(project(":demos:cryptoapp-data"))

addComposeOfficialDependencies()
addComposeThirdPartyDependencies()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class CryptoDetailViewModelFactory(val context: Context): ViewModelProvider.Fact
}

class CryptoDetailViewModel(context: Context) : ViewModel() {
private val cryptoRepository: CryptoRepository = com.guru.composecookbook.cryptoapp.data.DemoDIGraph.createRepository(context)
private val cryptoRepository: CryptoRepository = DemoDIGraph.createRepository(context)

//live data to read room database
val favCryptoLiveData = liveData(Dispatchers.IO) {
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ include(":app")
include(":demos:instagram")
include(":data")
include(":theme")
include(":demos:cryptoapp")
include(":demos:cryptoapp-data")
include(":demos:cryptoapp:app")
include(":demos:cryptoapp:data")
include(":demos:moviesapp:app")
include(":demos:moviesapp:data")
include(":components:charts")
include(":components:tags")
include(":components:carousel")
include(":demos:moviesapp:data")
include(":demos:moviesapp:app")

0 comments on commit 5a6845c

Please sign in to comment.