|9 May 2023|
|grote||I can also imagine some quite complicated references that are hard to impossible to resolve with hacky code.||18:07:11|
|grote||So for app icon extraction that is an issue (if there's no other icon resource in the APK). However, for our anti-features, we are free to just use proper formats.||18:07:54|
|linsui||So I guess on android it's different. File managers can display apk icons. How do they do that?||18:09:01|
In reply to @rdfg77:kde.org they can use the OS API to parse the APK
So I guess on android it's different. File managers can display apk icons. How do they do that?
In reply to @grote:matrix.org Yes, of course. I'm confused why the android icon format is used here...
So for app icon extraction that is an issue (if there's no other icon resource in the APK). However, for our anti-features, we are free to just use proper formats.
In reply to @cdesai:matrix.org So they get a plain image directly from the apk...
they can use the OS API to parse the APK
In reply to @cdesai:matrix.org So maybe for app icon extraction, there are usable icons in there? Or is the OS creating them on the fly?
they can use the OS API to parse the APK
|cde|| linsui: do you have a link to some file manager in fdroid that displays icon? we can just quickly look at the code ||18:15:00|
In reply to @cdesai:matrix.org https://github.com/zhanghai/MaterialFiles
linsui: do you have a link to some file manager in fdroid that displays icon? we can just quickly look at the code
|Izzy|| grote: <Why does Izzu have a time graphic and we don't?> Feel free to copy it over. And I just saw your video now (was AFK, a week in Spain): great work, looks wonderful now! When I added those on my end, it was not yet picked up – and then I forgot 🙈 ||18:16:58|
In reply to @_oftc_Izzy:matrix.org Do you have custom anti-feature and/or graphics in your repo?
grote: <Why does Izzu have a time graphic and we don't?> Feel free to copy it over. And I just saw your video now (was AFK, a week in Spain): great work, looks wonderful now! When I added those on my end, it was not yet picked up – and then I forgot 🙈
|grote||Hope you enjoyed Spain, btw. :D||18:20:05|
|Izzy|| grote: No custom AF yet (that was not yet in fdroidserver when I last pulled master) – but yes, graphics and custom categories I have. Your vid shows the 4 of them: Automation, Food, Office, Religion. ||18:36:55|
|grote||If I understood correctly, you should be able to have custom anti-features with custom icons, just not reasons for why an app as them.||18:37:46|
|Izzy|| And yes, enjoyed Spain a lot. Madrid is wonderful. Toledo was very impressive. Avila & Segovia where nice. Need to repeat that journey (Toledo, Avila & Segovia next time without guided tour to enjoy the places of choice with the time of choice :) ||18:38:32|
|Izzy||Sure the AF were already in when the last release was made? I can try; worst case the icons/defs will be ignored, right?||18:39:22|
|Izzy|| OK, that page you linked was last updated 12/2022. I pulled master in February, so it should be there. Will give it a try, grote – shall I give you a ping once something is in? And where would i check if it succeeded? Well, in the v2-index of course I guess. But will it be visible in the app already? ||18:42:03|
|grote||Please ping me once a custom anti-feature ideally with a custom non-xml icon makes it into your repo, so I can test with my code. WOn't be in the official client , yet||18:42:49|
In reply to @grote:matrix.org This code seems to load resources and then uses the icon resource ID to get a
Drawable, but it isn't clear if this is always a vectorDrawable
In reply to @grote:matrix.org Sounds like they should be SVGs,. You could try looking at the git commit that added those files, and ask that person why? I don't remember.
Before digging more into this, why do we want to use android vector drawables here again?
|Izzy|| grote: I'll add NonFreeComp (app contains non-free components, like FCM – you know my repo allows me to close 1-2 eyes in the hope the devs will allow me to open them again) then, which was planned anyhow. For you to see it, I guess at least one app should have applied it, right? ||19:07:31|
|Izzy||Umpf, but I have no idea how to create an XML icon /o\||19:09:35|
|Izzy||PNGs are not allowed for that, are they?||19:10:08|
|Izzy|| grote: Haha, doesn't work. Added NonFreeComp to antiFeatures.yml, then to an app – and "fdroid update" complains that "CRITICAL: 'NonFreeComp' is not a valid Anti-Feature". So no dice before fdroidserver supports it. ||19:21:40|
|Izzy||The FieldValidator in metadata.py still has the anti-features hard-coded.||19:23:52|
|Izzy||OK, hardcoded NonFreeComp in there as well, index now building.||19:25:29|
|Izzy|| Deploy running. I've checked the v1 & v2 index manually. In both, the app has the AF. v2 additionally has the definition for the AF. The icon is not optimal I bet, I just downloaded a simple one from https://pictogrammers.com/library/mdi/icon/minus-circle-outline/ (which allows download as Android vector-drawable). ||19:30:13|
|Izzy|| grote: check it out. App is "DMS Explorer", net.mm2d.dmsexplorer (index is deployed now). ||19:30:53|