Never though I will finally be able to do this, but I did! And it wasn't too hard.
This version has no visible changes to the user (or shouldn't, if there are they are a bug!). Instead what I did was rework almost all of the code. It is a big internal change, I almost labeled it as V3, but since there are no visual changes, I decided to simply set it as V 2.5 (sorry V 2.3 and V2.4, you will never exist).
This version has no visible changes to the user (or shouldn't, if there are they are a bug!). Instead what I did was rework almost all of the code. It is a big internal change, I almost labeled it as V3, but since there are no visual changes, I decided to simply set it as V 2.5 (sorry V 2.3 and V2.4, you will never exist).
This app started as a simple one-class app, but as time passed and little features were added, the app grown and that 'small' class become a real mess. I was able to implement some 'helper classes', but the main class was very long and full of interactions between functions. It was difficult to maintain.
For the record, in V2.2.1 the app had 11 small classes, and one monstrous one. Now it has 22 small classes. The code is almost the same in both versions and the interactions too, it is more or less just reorganized, but being modular allows for a better maintenance of the different parts. Who knows, maybe I'll be able to implement some more bigger changes now! (can't promise). Anyway, it was interesting and fun to do. The best part is that the size of the apk incremented just a few KB (93.9kb->100kb). I was expecting it, but not so small! (in fact I though it would be doubled and that it was going to be discarded, but seeing the results it will stay. Also the download size by play store is even less than before...not sure why but I won't complain).
I plan to implement a small little thing too for the stable version, and I'll upload this as alpha (for automatic google-play tests), then as beta (to check how it behaves on users) and finally after probably a few weeks as stable.
[Update]
The alpha test was successful so I'm keeping the changes and published as beta. I also managed to implement the other important change: now when pasting from the clipboard (or when sharing as text) there is an actual not-dummy parser! yay! Previously the parser simply removed all non-digits numbers, but now it will scan the string for separated numbers, and if more than one is shown it will even ask! How cool is that? Still the 'prefix separator' is very basic, I'm not using any external library, but the improvement is notable.
Current status: stable
V 2.5
- Improved number detector on clipboard paste and text shared, asks if multiple numbers found
- Internal rework of the code
- Improved number detector on clipboard paste and text shared, asks if multiple numbers found
- Internal rework of the code
No comments:
Post a Comment
All comments will be reviewed before they are publicly visible. Any comment consisting of only just: one-word, phone number, single emoji, personal name, and other low-quality or obvious spam will be rejected and deleted.