Android monorepo in action(Android monorepo实践)
What is monorepo(什么是monorepo)
In version control systems, a monorepo (“mono” meaning ‘single’ and “repo” being short for ‘repository’) is a software development strategy where code for many projects is stored in the same repository.
Steps
- Create a folder named
monorepo
, this is the root folder of the monorepo. - Create folder
mono-libraries
undermonorepo
, this is the folder for shared libraries. - Create folder
mono-build-logic
undermonorepo
, this is the folder for gradle files.
注意事项
该monorepo要求每个side project都要打开一个Android Studio实例,如果同时打开多个,那么只能有一个设置为主项目。
Reference(参考)
https://blog.blundellapps.co.uk/make-a-monorepo-for-your-android-projects/