T
T
thealekseev2018-10-01 15:52:05
Java
thealekseev, 2018-10-01 15:52:05

How to apply changes to several projects with the same functionality at once?

Hello, there is a mobile application project for Android in Android Studio, let's call it Project X, and its functionality is used in other projects already with some modifications of Project XS, Project XS MAX, and so on :)) How to correctly organize work in order to edit code only in Project X, and he was pulled into modified projects without conflicting with their separate functionality?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg, 2018-10-01
@Austin_Powers

Separate the functionality into a separate package and use it as a dependency for any projects.

C
Cheypnow, 2018-10-01
@Cheypnow

1. Use the version control system in all projects
2. Move the used code into a separate module
3. Place the module in the repository
4. Connect the module from the repository to all projects using the version control system

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question