I'm using shared modules for an app, which in my case means that I have them open in both B4A and b4i at the same time.
I know there's a very nice improvement coming where external changes are monitored and appear automatically - that's absolutely awesome. (As it is now I have to save in B4A and then restart B4i to see the changes there - something that cause obvious friction.)
However, I was wondering if something could be done with the DesignText?
It's not uncommon for a shared file to have this DesignText, for instance:
Type=Class
Version=7.3
ModulesStructureVersion=1
B4A=true
@EndOfDesignText@
There's two values there that cause problems:
Imagine the scenario where I open the project in B4i and edit something in a module that is NOT shared. When I save the project, the shared modules are also saved, and the Version and IDE name is changed to match the B4i IDE. This causes extra, unwanted noise when committing the source.
I like to give suggestions when possible, and this is the best that I managed to come up with:
Suffix the Version value with the environment, so
becomes
and if the file is opened and saved from B4i later, a second value is added, so it becomes
VersionB4A=7.3
VersionB4i=4.4
Likewise, it would simply add to the DesignText so it becomes
This would effectively remove all noise, after the first save in each IDE.