Cat-Printer/dev-diary.txt
2022-04-25 02:23:54 +08:00

108 lines
2.1 KiB
Plaintext

YEAR 2022
MARCH
31st
Well, frontend development is just ongoing.
APRIL
1st
Costed one hour try to find an event propagation problem,
but finally found it's a matter of CSS selector.
BTW frontend can communicate with backend now.
2nd
(Formally) Started playing with Android.
Costed 4 hours to find why Java class (on android) always can't be found,
but finally realized pyjnius can't work with python thread/subprocess,
while I'm using ThreadingHTTPServer.
See "Note" around:
https://python-for-android.readthedocs.io/en/latest/buildoptions/#webview
NEVER MISS ANY SENTENCE OF A DOCUMENT
3rd
Costed the whole day to solve WebView problem --
it doesn't do reaction to <input type="file"> by default.
Finally done with library AdvancedWebView, but still with some hacks.
... It's now 4th 2:00 a.m. though
4th
Purged many small problems.
Wished to release it today, but no luck...
5th
Bundle script, optimized project structure.
It's finally ready...
6th
Documentation.
What else? First Release!
... ...
(some day)
Determined to make backend better,
but resulting in full rewrite.
... ... (worked hard)
15th
Feeling it's there.
Oh, asyncio always quits like a mad cat, throwing bleak there
and just ends everything, uncleanly.
16th
Solved many things left yesterday.
Thought i18n needs be universal across there, so made one by myself.
Tried to implement flip, rtl and wrap in text printing,
wasted some time, but didn't regret.
Well, slightly update document and try compiling,
give everyone a surprise.
Try --release on p4a build. It worked. 5.9MiB apk, satisfied now?
Don't forget -Djava.net.useSystemProxies=true on gradle anymore,
when a proxy to google is needed.
Phone says a release apk should be signed to be installed.
Satisfy it. https://stackoverflow.com/questions/4853011/how-to-sign-an-android-apk-file
Okay, it's 17th 3 a.m. publish it and sleep.
... ... (doing something else)
24th
Took some misc things.
Made a minor change in `server.py`,
but resulting in MUCH faster server response...
I don't know what's the point. But it's great. Period.