diff options
| author | Po Lu | 2025-03-05 14:59:19 +0800 |
|---|---|---|
| committer | Po Lu | 2025-03-05 14:59:19 +0800 |
| commit | 121371a706491fde8c06d95b13c16703d53f6fa3 (patch) | |
| tree | b247df5c3b28750a509e72fe0cc7530b252bb054 /java | |
| parent | 8099dc6e3aeae5bfd8a4115deed88022500362e1 (diff) | |
| download | emacs-121371a706491fde8c06d95b13c16703d53f6fa3.tar.gz emacs-121371a706491fde8c06d95b13c16703d53f6fa3.zip | |
Move java/incrementing-version-code to AndroidManifest.xml.in
* admin/admin.el (admin-android-version-code-regexp): New
variable.
(set-version): Modify AndroidManifest.xml.in instead.
* java/AndroidManifest.xml.in (Version-code): Define version
code.
* java/incrementing-version-code: Delete file.
Diffstat (limited to 'java')
| -rw-r--r-- | java/AndroidManifest.xml.in | 15 | ||||
| -rw-r--r-- | java/incrementing-version-code | 12 |
2 files changed, 15 insertions, 12 deletions
diff --git a/java/AndroidManifest.xml.in b/java/AndroidManifest.xml.in index 6243c5e13ba..92b63925ef4 100644 --- a/java/AndroidManifest.xml.in +++ b/java/AndroidManifest.xml.in | |||
| @@ -338,3 +338,18 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. --> | |||
| 338 | android:label="GNU Emacs service"/> | 338 | android:label="GNU Emacs service"/> |
| 339 | </application> | 339 | </application> |
| 340 | </manifest> | 340 | </manifest> |
| 341 | |||
| 342 | <!-- Auto-incrementing version code. | ||
| 343 | |||
| 344 | This comment contains an Android version code | ||
| 345 | (https://developer.android.com/studio/publish/versioning#versioningsettings) | ||
| 346 | corresponding to the current Emacs version. The version code in | ||
| 347 | AndroidManifest.xml.in is hard-coded to a fixed value to facilitate | ||
| 348 | package downgrades. Some automated systems employed by Android package | ||
| 349 | repositories require an incrementing numeric version code to detect | ||
| 350 | upgrades, which is provided here and is altered by admin/admin.el. | ||
| 351 | Refer to e.g. https://forum.f-droid.org/t/emacs-packaging/30424/25. | ||
| 352 | |||
| 353 | Version-code: 300050000 | ||
| 354 | |||
| 355 | --> | ||
diff --git a/java/incrementing-version-code b/java/incrementing-version-code index fed5b627275..e69de29bb2d 100644 --- a/java/incrementing-version-code +++ b/java/incrementing-version-code | |||
| @@ -1,12 +0,0 @@ | |||
| 1 | ; This file contains an Android version code | ||
| 2 | ; (https://developer.android.com/studio/publish/versioning#versioningsettings) | ||
| 3 | ; corresponding to the current Emacs version. | ||
| 4 | ; | ||
| 5 | ; The version code in AndroidManifest.xml.in is hard-coded to a fixed | ||
| 6 | ; value, to make package downgrades possible. Where an incrementing | ||
| 7 | ; version code is required (for example, for automated F-Droid package | ||
| 8 | ; builds (https://f-droid.org/packages/org.gnu.emacs/)), the version | ||
| 9 | ; code in this file should be referred to and patched in to | ||
| 10 | ; AndroidManifest.xml. | ||
| 11 | |||
| 12 | 300093000 | ||