Setting up the Domain layer module

About

Before we can start building the Domain layer of our Android Application, we need to setup the module that will contain it. In this lesson, we'll be creating this module and setting up the required properties and dependencies that will allow us to start building the Domain layer of our Clean Architecture approach.

Instructor

Links

Comments

A small typo bug in your dependencies file can be seen at 1:15. you define mockitoVersion in the testing block but in domainTestDependencies you reference mockitoKotlinVersion

- 8 months ago

Also the final Domain module build.gradle file has one difference that is NOT noted here. In the video the first line is "Apply plugin: 'java-library' but in your github repo the line is:

Apply plugin: 'kotlin'

Steve Zaske - 7 months ago

thanks for sharing! I can't recreate this from my end with this change, but I'll update the video incase it helps others :)

Joe Birch - 7 months ago

I cannot get this "Clean Architecture" project to work. I'm using Android Studio 3.2 beta 4, and whenever I open the project my modules are missing. I got all the way to the "Testing the Bookmark Project Use Case" video before I ended the session, now whenever I open the project Android Studio opens the project and my Domain module is gone. The folder is still there, but it does not appear in the Project view.

Steve Zaske - 7 months ago

I have the same issue, any solution?

Ernest Schneider - 2 months ago

I'm having trouble with this: com.nhaarman:mockito-kotlin:1.9.5 (Failed to resolve: com.nhaarman:mockito-kotlin:1.9.5). I noticed that you use version 1.5.0 on github. The lower version works.

Timotei Cipariu - 6 months ago

Problem creating the domain module's gradle file Gradle sync failed: Cannot get property 'domainDependencies' on extra properties extension as it does not exist

Udit Kapahi - 5 months ago

that might mean that the reference to the domainDependencies isn't setup correctly - do you have a snippet of your dependencies.gradle and domain build.gradle file to hand?

Something went wrong

Lesson added to
playlist

Create new playlist

We've got you covered

At Caster.IO we provide the best hyper focused & bite-sized development training available. Our goal is to
not waste your time, but to give more of it to you. From implementing a new pattern to learning a new technology,
we've got you covered.