Replies: 4 comments 14 replies
-
|
Beta Was this translation helpful? Give feedback.
-
A PR to Disable parallel builds and reduce JVM heap: #1548 |
Beta Was this translation helpful? Give feedback.
-
Are those notes relevant still? I.e. its not clear how to increase the apk version. Other that those lines it seems that |
Beta Was this translation helpful? Give feedback.
-
But anyway the output is >1000 lines of build targets still so not really readable or helpful... |
Beta Was this translation helpful? Give feedback.
-
I'm willing to improve development environment setup / building documentation (Android-specific mostly), i.e.
docs/INSTALL.md
.I have a few ideas and willing to propose PRs, however I need to clarify some points and get feedback first.
Dedup the "getting sources"
At the moment "getting sources" sub-section is present in each target (Android, Desktop, iOS) in almost identical form.
I want to move it in a separate section preceding target-specific instructions.
Android
What does the
./configure.sh
do and what is the difference between open-source and private builds?Is it worthwhile to document the
splitApk
build param - and why its not used by default? And thepch
(pre-compiled headers) param?Document other build params like
-Parm64
Add more details about studio setup, e.g. memory setting (I couldn't get the project open - it was stuck/frozen at "updating indexes" - until I increased studio's heap size from default 1.9Gb to 2.5Gb ), setting up virtual device or using physical one...
Could we lower
org.gradle.jvmargs=-Xmx8g
ingradle.properties
to some minimally required setting? Newbies might have impression that 8Gb is the minimum to be able to build, however I found it builds fine using 3Gb (didn't try less yet). Those devs who have more RAM can increase this setting locally.Does
org.gradle.parallel=true
actually needed and makes a difference? As far as I understand it makes a difference to multi-projects builds only (and OM is a single project build or am I mistaken here?) - at least that setting didn't do any difference for me.Why suggest to always run
clean
before building (e.g. ingradlew clean assembleXXX
)? My understanding is that it'll make a build slower by forcing to re-compile everything from scratch instead of re-building only the parts that were changedUpdate build flavors, e.g. remove yandex, xiaomi, add fdroid...
Update
HOW_TO_USE_GRADLE.txt
and link to it from theINSTALL.md
.Maybe I'll add a separate sub-section with advice for people with low spec machines, e.g. how to conserve disk space and ram.
Beta Was this translation helpful? Give feedback.
All reactions