• j

    jayeshsolanki93

    2 years ago
    Hi all. I have a question about MVVM architecture. Is there an apparent disadvantage to it?
    j
    c
    +8
    31 replies
    Copy to Clipboard
  • Antoine Gagnon

    Antoine Gagnon

    2 years ago
    Hey everyone! Still trying to get the hang of MVVM here I’m having some issues with handling events from the view Let’s say I have a view where I can create a new flower. When I click “Add” i want my flower to be saved to my repository I’m currently calling a
    saveFlower(flowerData:FlowerData)
    method in my viewModel from my Fragment and passing it all the fields values. The ViewModel that holds my FlowerRepository is then creating the proper Flower object and saving to the FlowerRepository This feels wrong to have the ViewModel both presenting data and handling it, what should I do?
    Antoine Gagnon
    OG
    4 replies
    Copy to Clipboard
  • u

    ursus

    2 years ago
    How do you test repositories which touch network inside? mockwebserver+json files?
    u
    gildor
    +1
    11 replies
    Copy to Clipboard
  • u

    ursus

    2 years ago
    Given the fakes vs mocks debate, if you were to chose fakes, that means mostly that only db and network needs to be faked, all their dependants can be real
    u
    gildor
    2 replies
    Copy to Clipboard
  • u

    ursus

    2 years ago
    so...Dagger in unit tests, and just swap out db provider maybe?
    u
    1 replies
    Copy to Clipboard
  • u

    ursus

    2 years ago
    what was even the issue people had against it?
    u
    gildor
    +1
    88 replies
    Copy to Clipboard
  • r

    Rahul Ch

    2 years ago
    I created my own android ribs architecture, which would help to create a super app/full modular app https://github.com/Bender-Story/android-modular-app-ribs
    r
    1 replies
    Copy to Clipboard
  • nino

    nino

    2 years ago
    Can someone tell me how I can prevent creating an AbstractActivity or BaseActivity in a new project and still be able to do some customizations for all activities inside the app? E.g. setting up a custom toolbar… What’s the best approach for that?
    nino
    gildor
    +2
    4 replies
    Copy to Clipboard
  • u

    ursus

    2 years ago
    Is repositories depending on repositories a bad idea down the line?
    u
    smilecs
    +3
    15 replies
    Copy to Clipboard
  • u

    ursus

    2 years ago
    IOfferManager+OfferManager OfferManager+OfferManagerImpl OfferManafer+ImplOfferManager OfferManager+RealOfferManager
    u
    tschuchort
    +3
    6 replies
    Copy to Clipboard