lawnicons
lawnicons copied to clipboard
Improved algorithm for counting new icons
About this discussion
The current algorithm considers as new icons all icons whose names weren't in the last version. But new drawable names appear not only when adding icons, but also when correcting errors in names and in case of name conflicts. We also can't count new SVGs only by new package names, app activities, or app components, because they may be associated with old icons.
So we need to take these cases into account so that only new icons are included in the new icons category.
Suggested algorithm
Step 1. As it is now. Find out the SVGs names that weren't in the last version of Lawnicons. Note: This is a list of SVGs whose names have been added or changed.
Step 2. Find the package names associated with the SVGs from step 1.
Note: This is a list of package names that refer to SVGs whose names have been added or changed.
Step 3. Leave only those package names that weren't in the previous version. Note: Here we filter the package names from step 2 so that we get only new package names that refer to SVGs from step 1.
Step 4. Output. Note: As a result, we should show SVGs that weren't in the last version and whose package names weren't in the last version.