F-Droid Devs

102 Members
F-Droid development discussion only | Use #fdroid:f-droid.org for general, app- and repo-related matters | Meeting every Thursday at 11:30 UTC | This channel is publicly logged at https://view.matrix.org/alias/%23fdroid-dev:f-droid.org19 Servers

Load older messages


SenderMessageTime
9 Jun 2020
@bubu:bubu1.euBubuneed to teach it to verify checksums though.21:02:45
@eighthave:matrix.org_hc glennmen: "hide results that don't have a correct localization for current user setting" will mean for many users the screen is empty 21:10:02
@eighthave:matrix.org_hc Bubu: wow that's awesome. That'll be a really massive improvement 21:10:42
@eighthave:matrix.org_hc I justed purged all traces of non-.yml from the fdroidserver test suite s!761 21:11:23
@freenode_[gibot]:matrix.org[gibot][server] !761: move tests to YAML - https://gitlab.com/fdroid/fdroidserver/merge_requests/76121:11:27
@eighthave:matrix.org_hcand on that note, good night!21:11:44
@glennmen:matrix.orgglennmen
Als antwoord op @bubu:bubu1.eu
need to teach it to verify checksums though.

glennmen: "hide results that don't have a correct localization for current user setting" will mean for many users the screen is empty

But they would still be shown if they have at least English, I assumed this would almost always be available or am I wrong to assume this?
I wanted to improve the "quality" of results in the Lastest tab

21:17:38
10 Jun 2020
@eighthave:matrix.org_hc glennmen: I think it is a correct assumption that en_US is almost always available. But it would be totally valid to have an app that only has ru for example. Like an app for Russian universities. So its not guaranteed there is always English there 07:39:06
@eighthave:matrix.org_hcyou could test to see if I'm wrong. Configure a device with only a single language that is not any form of English. It should be a language that has no translations in fdroiddata, the main app repo: https://hosted.weblate.org/projects/f-droid/fdroiddata/07:41:38
@eighthave:matrix.org_hcthen default F-Droid should still show apps in the Latest tab07:42:19
@eighthave:matrix.org_hcand none of them should be in the device's language, to be sure that this test was properly setup07:42:41
@eighthave:matrix.org_hcI choose languages that do not use a latin alphabet for tests like this, so its obvious07:43:13
@glennmen:matrix.orgglennmenwith my change this will still show results even if your setup your device in a language that doesn't even exist yet in fdroiddata07:58:26
@glennmen:matrix.orgglennmenthe Latest tab will/should never be empty07:59:41
@eighthave:matrix.org_hcI guess I've forgotten how that code is working exaclty 🤣08:02:00
@eighthave:matrix.org_hcreminds me of the experience I have from time to time: "wow, this code is whacked, who wrote this? Oh, me"08:02:41
@glennmen:matrix.orgglennmen I changed it to use localesToUse parameter, this will contain an array of valid locales for this user or at least fallback english if available
so it should never result in an empty Latest tab
08:03:22
@eighthave:matrix.org_hc Bubu: do you think you'll be able to get rid of config['ndk_paths'] entirely? 08:19:11
@eighthave:matrix.org_hc glennmen: I'll take a look at that MR again 08:19:26
@glennmen:matrix.orgglennmenthank you!08:21:25
@eighthave:matrix.org_hc Bubu: I've been thinking about reworking the checksums data storage to be more generic, and also be able to pull in other sources, like gradle-transparency-log, android-sdk-transparency-log, etc. 08:47:07
@eighthave:matrix.org_hcseems tricky but doable. One question is whether there should be hardcoded defaults like we have now, then those can be extended/overridden by downloaded, then cached files08:48:08
@bubu:bubu1.euBubuI have extracted the ndk checksums to fdroidserver/known_packages/ndk. Wrap a bit more logic around this and this could be auto-uodated.08:52:38
@bubu:bubu1.euBubu
In reply to@eighthave:matrix.org
Bubu: do you think you'll be able to get rid of config['ndk_paths'] entirely?
Should be relatively easy
08:53:16
@eighthave:matrix.org_hcyay!08:54:12
@eighthave:matrix.org_hcthat makes more of fdroidserver usable as an API08:54:40
@eighthave:matrix.org_hcyou can see examples in the tests, basically to call varous methods, that config option has to be set08:55:11
@bubu:bubu1.euBubu Weird. 08:55:42
@eighthave:matrix.org_hcaccepted_formats is probably the worst offender, that's going away soon08:56:27
@eighthave:matrix.org_hc glennmen: how about writing a test for your MR? Reading that code again makes me think it has to be tested. Seems like it might be easy, like just instantiating App() can calling setLocalized() with test data. there might even be related examples there, I forget 08:59:06

Show newer messages


Back to Room ListRoom Version: 1