I'm trying to branch into the world of Jungles, and read this phrase from the User Guide.
"Path precedence goes from left to right in Jungle files, so the compiler will process inherited resources first before processing resources found within ‘fenix-resources’, which can potentially override resources already defined."
My first question is at what level does this potential over-riding occur.
Hypothetically if I copied a completed Resource directory and renamed it resources-fenix, and then went inside some of the XML files and modified stuff, but did not delete or re-name any of the XML files, is it correct that when compiled for the fenix, it would override all resources and not use any from the inherited base resource level? ( Ie is it just using the fact that there is a layout.xml file and not what is contained inside the layout.xml to decide when to override a resource?
The angle I am attacking this from, is that I wish to reduce support for watches with less app memory, because the list of watches I support with more memory is significantly larger than those with less.
I thought that I could create an alternative resource and .MC layout with identical files, but modify the content to reduce the memory use.
Then point the jungle file to the lower memory utilization recourse folder and source files? Would this approach work ?
The second thing I noticed was the use of exclude annotations.
In the example given, they are ' adding' an extra function and then in the jungle file telling the fenix5 to ignore the (:old) function.
I would be wanting to do the opposite here, and just have all smaller memory watches ignore a particular method entirely to save on memory.
From the User guide, it appears all I have to do here is list the symbol above the method line for any methods I want to be labeled with that symbol.
Is that correct?
(:newer)
function() {
Do stuff in here, but not if you are in the newer group
}
function2() {
everyone do this
}
(:newer)
function3() {
everyone but newer do this method
}
Is this correct, and is the only label I need to make for the (:newer) in the jungle file ?