Davide Giuseppe Farella
07/26/2022, 12:15 PMapp plain JVM module + Android ( depends on third )
2. second multiplatform without Android ( depends on third )
3. third multiplatform + Android module ( depends on fourth )
4. fourth
fourth is supposed to contain Android-only source code, so how should I set it up? Should it be multiplatform + Android or JVM only + Android?
I tried some stuff, but I have
(xxx) Could not resolve project :fourth
Required by:
project (yyy)*Replace (xxx) with secondsourceSet and thirdsourceSet and (yyy) with :third and :second > :third
Davide Giuseppe Farella
07/26/2022, 12:19 PMsecond is a module with integration tests
• third is a DI module, where I aggregate Koin modules from various modules
• third has an expected val AndroidModule
• on third:androidMain I aggregate Koin modules from Android modules ( HomePresentationModule for example )
• forth is an Android presentation module, it contains the Koin module HomePresentationModuleJavier
07/26/2022, 12:30 PMDavide Giuseppe Farella
07/26/2022, 12:32 PMapp > third:android
• second > third:kotlinDavide Giuseppe Farella
07/26/2022, 12:32 PMthird in 2 submodulesJavier
07/26/2022, 12:33 PMDavide Giuseppe Farella
07/26/2022, 12:33 PMJavier
07/26/2022, 12:33 PMJavier
07/26/2022, 12:34 PMandroidMain.dependencies { implementation(...) }?Davide Giuseppe Farella
07/26/2022, 12:34 PMJavier
07/26/2022, 12:34 PMJavier
07/26/2022, 12:34 PMcommonMainDavide Giuseppe Farella
07/26/2022, 12:34 PMdependencies {
implementation()
}Javier
07/26/2022, 12:34 PMJavier
07/26/2022, 12:34 PMdependencies blockDavide Giuseppe Farella
07/26/2022, 12:35 PMJavier
07/26/2022, 12:35 PMdependencies {
"androidMain"(...)
}Davide Giuseppe Farella
07/26/2022, 12:35 PMJavier
07/26/2022, 12:35 PM./gradlew third:assemble, does it work?Davide Giuseppe Farella
07/26/2022, 12:37 PMJavier
07/26/2022, 12:39 PMDavide Giuseppe Farella
07/26/2022, 12:39 PMDavide Giuseppe Farella
07/26/2022, 12:40 PMJavier
07/26/2022, 12:41 PMDavide Giuseppe Farella
07/26/2022, 12:41 PMcinescout/di , fourth is cinescout/home/presentationJavier
07/26/2022, 12:44 PMDavide Giuseppe Farella
07/26/2022, 12:44 PMhome/presentation , not only home , second you’re looking into the last commitDavide Giuseppe Farella
07/26/2022, 12:45 PMdi/android and di/kotlinDavide Giuseppe Farella
07/26/2022, 12:45 PMDavide Giuseppe Farella
07/26/2022, 12:46 PM/home/presentation, for example, would have a different path whether home is a module or a plain folder, so I made them all modules 🙂Javier
07/26/2022, 12:47 PMDavide Giuseppe Farella
07/26/2022, 12:47 PMJavier
07/26/2022, 12:47 PMDavide Giuseppe Farella
07/26/2022, 12:48 PM:cinescout:cinescout-home:cinescout-home-presentation , without it would be :cinescout:cinescout-home-presentationRacka N
07/26/2022, 2:37 PMandroid() target inside the build.gradle file for di/kotlin. Specifically inside the kotlin {} blockDavide Giuseppe Farella
07/26/2022, 2:45 PM