Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] Multiple android app projects sharing code in Clean-Architecture

Posted on November 11, 2022 By

Solution 1 :

I think you might do some separation code between apps. You can merge it in you settings.gradle to merge all apps/libraries in one project.

Here is the example

There is 4 additional code/library in 1 project which is app, xxxapi,xxxauth and xxxcommon.

So you can set your settings.gradle into something like :

include ':app', ':xxxapi', ':xxxauth', ':xxxcommon'

If you already set that code, you can use it in all your code in one project as well.

Problem :

I want to create three related android apps (employee, Manager, Secretary) in clean-architecture and also share common classes (utils, Ui & etc.) among all three apps in order to reduce code duplication. Each project has multi-modular clean-architecture design. Would you guide me on how to connect these three projects to the shared classes, please? Is there any sample code for my case?

enter image description here

My project after using clean-architecture book by Alexandru Dumbravan:
enter image description here

READ  [FIXED] xml - Unwanted padding or margin around buttons in Android
Powered by Inline Related Posts
Android Tags:android, android-architecture, clean-architecture

Post navigation

Previous Post: [FIXED] Unable to connect Firebase in Android Emulator for Flutter Project
Next Post: [FIXED] android – Highlight only one Card in Compose through selection

Related Posts

[FIXED] java – ViewPager2#onpageselect StackOverflowError Android
[FIXED] Programmatically turn on location in Flutter Android
[FIXED] android – How to sort LiveData from Room Database? Doing a button to switch recyclerview’s item’s order Android
[FIXED] android – How to pass update UI value in buildResults of SearchDelegate? Android
[FIXED] java – Unable to Read/Write files from Android phone, except AVD in Android Studio Android
[FIXED] android – EditText ,Entered text not visible full Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • What are the main features of Islamic education?
  • Is the Jeep 4xe worth it?
  • How does the ringer work on cast iron?
  • What is the biggest size interior door?
  • Is blue raspberry an original Jolly Rancher flavor?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme