[android] Add F-Droid metadata and enable automatic upload #1033
Labels
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
No due date set.
Dependencies
No dependencies set.
Reference: organicmaps/organicmaps-tmp#1033
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "rt-fdroid-metadata"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
CC: @relan @rugk
What is "automatic upload" about exactly?
This patch adds version.yaml as suggested here. organicmaps/organicmaps#825 (comment)
@ -27,3 +26,4 @@
<img src="android/src/fdroid/play/listings/en-US/graphics/phone-screenshots/4.jpg" width="400" />
</p>
## Features
Можно уже раз сесть и больше скринов нарезать, всяких там настроек, загрузки, поисковых результатов и проч.
У нас не текущая дата должна быть, а дата последнего коммита. Т.е. если нет изменений в коде в течение недели, и потом мы пересобираем версию, номер генерится абсолютно идентичный.
@ -0,0 +5,4 @@
• Fast offline search on the map and bookmarks
• Dark mode to protect your eyes
Organic Maps is <b>pure and organic, made with love</b>:
Фдроид точно умеет html?
Maps app!!! уже третий раз этот коммент пишу.
Если есть тег зачёркивания, значит надо его использовать.
No pesticidesPurely organic@ -0,0 +27,4 @@
At Organic Maps, we believe that <b>privacy is a fundamental human right</b>:
• Organic Maps is an indie community-driven open-source project
• We protect privacy from Big Tech’s prying eyes
your privacy
… and only minimally required permissions are found…
@ -0,0 +5,4 @@
• Fast offline search on the map and bookmarks
• Dark mode to protect your eyes
Organic Maps is <b>pure and organic, made with love</b>:
https://f-droid.org/en/docs/All_About_Descriptions_Graphics_and_Screenshots/#html-descriptions
а там и стоит дата текущего коммита
@ -27,3 +26,4 @@
<img src="android/src/fdroid/play/listings/en-US/graphics/phone-screenshots/4.jpg" width="400" />
</p>
## Features
нерелеватно цели и задачам данного PR
@ -0,0 +27,4 @@
At Organic Maps, we believe that <b>privacy is a fundamental human right</b>:
• Organic Maps is an indie community-driven open-source project
• We protect privacy from Big Tech’s prying eyes
Тексты из гугл плея
Тексты из гугл плея
Тогда нужно комментарий поменять.
@ -0,0 +27,4 @@
At Organic Maps, we believe that <b>privacy is a fundamental human right</b>:
• Organic Maps is an indie community-driven open-source project
• We protect privacy from Big Tech’s prying eyes
Вот как раз исправим и обновим везде. Вместо размножения косяков.
См. выше.
What else is needed from us for automated updates?
/cc @IzzySoft
Я поправил.
@ -0,0 +27,4 @@
At Organic Maps, we believe that <b>privacy is a fundamental human right</b>:
• Organic Maps is an indie community-driven open-source project
• We protect privacy from Big Tech’s prying eyes
Поправил.
Done
Done
Поменял.
@ -0,0 +5,4 @@
• Fast offline search on the map and bookmarks
• Dark mode to protect your eyes
Organic Maps is <b>pure and organic, made with love</b>:
Rules are similar to Google Play.
@ -27,3 +26,4 @@
<img src="android/src/fdroid/play/listings/en-US/graphics/phone-screenshots/4.jpg" width="400" />
</p>
## Features
Пусть пока в фдроид будут 4 скриншота из readme. Они вполне достойные. Про изменения скриншотов, впрочем как и про тексты давайте отдельно. Цель данного PR - добавить инфраструктуру для фдроид. После добавления патча появится возможность править в репе.
Probably we don't need this file:
https://f-droid.org/en/docs/Build_Metadata_Reference/#UpdateCheckData
I am still not sure. We need to try :)
@ -0,0 +22,4 @@
• No noisy email spam
• No push notifications
• No crapware
• Purely organic
Надо было оставить перечёркнутым, зачем удалять?
@ -0,0 +9,4 @@
• Display and edit multiple phone numbers
• Reduced apk size
• Wrong regions are not offered anymore for cross-region routing
• Improved ETA for remote roads
• You can now route to/from private roads and areas for car navigation
Этот фикс тоже попадёт в фдроид.
@ -0,0 +22,4 @@
• No noisy email spam
• No push notifications
• No crapware
• Purely organic
Наверное я не так понял. Тэг
<s>
в гугле не работает. Как сделаем?@ -0,0 +9,4 @@
• Display and edit multiple phone numbers
• Reduced apk size
• Wrong regions are not offered anymore for cross-region routing
• Improved ETA for remote roads
Добавил...
It looks like we still need it: https://gitlab.com/fdroid/fdroidserver/-/blob/master/fdroidserver/checkupdates.py#L145
Without this file, it will check build.gradle.
@ -0,0 +22,4 @@
• No noisy email spam
• No push notifications
• No crapware
• Purely organic
Список работающих тегов https://stackoverflow.com/questions/11071127/google-play-app-description-formatting
Попробуй так: N̶o̶ ̶p̶e̶s̶t̶i̶c̶i̶d̶e̶s̶
@ -0,0 +22,4 @@
• No noisy email spam
• No push notifications
• No crapware
• Purely organic
N̶o̶ ̶p̶e̶s̶t̶i̶c̶i̶d̶e̶s̶
@ -0,0 +22,4 @@
• No noisy email spam
• No push notifications
• No crapware
• Purely organic
Ух ты какое читерство :) Применил вручную, потестируем.
Where to find the literal values for
versionCode
andversionName
? Tag names should match one of those. Assuming e.g. the latter is found asversion
inpackage.json
:the tag name should contain that as the only variable content, e.g.
v1.0.0
orv1.0.0-fdroid
would be fine. F-Droid then would need to know how to find the two, as @rtsisyk points out here.We tag Android build as 2021.08.11-android. Version file https://github.com/organicmaps/organicmaps/blob/master/android/src/fdroid/play/version.yaml.
Do I need to tag it again to trigger the update?
I don't see new metadata on the web-site https://f-droid.org/ru/packages/app.organicmaps/ :(
The current metadata have:
I see no tag for
2021.08.11-android
– the only newer tag I see is2021.08.09-1-ios
which should not be relevant here. But then I don't see a2021.08.08-7-FDroid
tag either – that build seems to have come from that*-ios
tag (going by the commit hash of the corresponding build block). As it's currently set up, F-Droid will build each tag regardless of its name, as long asversionCode
in the correspondingandroid/src/fdroid/play/version.yaml
has been increased.And yes: if you want a newer version, you need to create the corresponding tag.
That's either because it has not yet been tagged by you – or rather because 2021.08.08-7 did not arrive there yet (newest APK I see there is 2021.08.05-15). A build cycle on average takes between 2 and 5 days, so the 2021.08.08-7 is most likely not yet published. Last build cycle completed yesterday and is now waiting for signing and publication, it's most likely part of that batch.
There was
2021.08.08-7-android
, but I removed it as asked by @relan: organicmaps/organicmaps#825 (comment)I think it is fine. Please correct me if I am wrong that in the current setup tags don't matter and they are only needed to trigger the version check. A new version will be created if and only if we have a) Some tag (any one!) b) Updated version.yaml
I'd say your summary is correct. Especially if relan already OK'ed it (I noticed this too late). It might look weird that you make special
*-ios
tags which might still end up in a new Android version – but if that's fine with you, I won't argue.That's not fine. @rtsisyk let's make sure that ios tags won't hit the FDroid repo.
Only tags with the
android
suffix will be checked now:50d9e68e2c/metadata/app.organicmaps.yml (L268)
(it's a regex)Bumped version to 2021.08.14-4-android, let's try.
I see new metadata and screenshots, but not the latest build, unfortunately.
@rtsisyk it's still in the build queue. The last index was released 5 days ago (as this was merged only then, it couldn't have been part of it) – so this "latest build" cannot have been part of it. It was just built yesterday (successfully), so it will ship when that build cycle is finished (we're still waiting for the last batch to make it to the index, so this will most likely be in the second to next index release, hopefully on the weekend).
No worries. I just thought that we still have something wrong in our configuration. Let's wait for the next update.
No, all fine. Hope deploy won't be stuck for long (current cycle is ready, waiting for signing (which is a manual step) and deploy – the latter is where the previous cycle must still be hanging as it never arrived in the index. That's still our main bottleneck; we're working on solutions, but it will still take time to establish them).