0%

android monorepo in action

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

  1. Create a folder named monorepo, this is the root folder of the monorepo.
  2. Create folder mono-libraries under monorepo, this is the folder for shared libraries.
  3. Create foldermono-build-logic under monorepo, 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/