Hans-Christoph Steiner
5b7abc0423
single function to tame androguard's verbose default output
...
# Conflicts:
# fdroidserver/common.py
2024-04-25 12:39:12 +02:00
Hans-Christoph Steiner
7a144a4762
port to androguard >= 4 and drop support for older than 3.3.3
...
This also makes androguard a hard requirement, which has been true for a
while anyway. So the code that handles androguard as an optional
requirement is removed. androguard from Debian/buster is new enough, so
this does not seem like it will cause any problems.
2024-04-25 12:39:12 +02:00
Michael Pöhn
86db8c93cc
🩹 fix parse_ipa tests
2024-04-23 16:05:47 +02:00
Michael Pöhn
f742799a9d
🏟️ add test for _parse_from_pbxproj
...
Also fix lint issues
2024-04-23 16:05:34 +02:00
Michael Pöhn
450765490b
🗺️ add test for _get_ipa_ico
2024-04-23 16:05:22 +02:00
Michael Pöhn
6152abee08
🪀 tests for insert_localized_ios_app_metadata
...
Split some functions from insert_localized_ios_app_metadata into
sub-functions and implemented separate tests for each.
2024-04-03 14:55:35 +00:00
Michael Pöhn
bbf17ee59c
🧆 improve and test parse_ios_screenshot_name
2024-04-03 14:55:35 +00:00
Michael Pöhn
293caf5ff9
🪪 iOS fastlane screenshot support
2024-04-03 14:55:35 +00:00
Hans-Christoph Steiner
dc7170e709
gitlab-ci: install biplist if available, otherwise skip test_parse_ipa
...
Fedora does not have a biplist package.
2024-01-11 16:02:06 +01:00
Hans-Christoph Steiner
6eee83db47
run black on new .ipa test cases
2024-01-11 16:02:06 +01:00
Michael Pöhn
8b5a61bb25
⛰️ make ipa related test cases more robust
2024-01-11 12:02:53 +01:00
Michael Pöhn
7211e9f9b4
🍲 add unit test for update.scan_repo_for_ipas
2024-01-11 11:34:21 +01:00
Michael Pöhn
995118bcd2
🥔 add strapped IPA file and test for parse_ipa
2024-01-11 11:34:21 +01:00
Michael Pöhn
c288317530
🪨 version string conversion: error handling+tests
2024-01-11 11:34:21 +01:00
Hans-Christoph Steiner
e2949cbd61
port to looseversion
2023-12-08 10:48:01 +01:00
Andrew Gunnerson
679ba6f552
Add support for Python 3.12
...
Python 3.12 completely removed the builtin `distutils` module. This
commit replaces its use with the `packaging` package, which is an
external dependency, but maintained by the Python developers.
Signed-off-by: Andrew Gunnerson <accounts+gitlab@chiller3.com>
2023-12-07 18:15:05 -05:00
Jochen Sprickerhof
521ff4fe17
Add default locale for generated categories
...
The client expects at least a name to be set.
Regression of 2c566cf6
.
2023-09-21 14:14:06 +00:00
Hans-Christoph Steiner
48559ecec5
category with no apps should be ignored, even if defined in config
...
https://gitlab.com/fdroid/fdroidclient/-/issues/2619#note_1421280589
The test needed to change because the test index files contained category
definitions that were not ever used in the "copy tests/repo, generate java/gpg
keys, update, and gpgsign" test in tests/run-tests.
2023-09-08 10:45:53 +02:00
Hans-Christoph Steiner
2c566cf68f
update: add all categories in metadata files to repo definitions
...
!1366 makes it so categories are now defined by the repo. Categories can be
defined in the config so that lint has a list of categories to enforce. This
also provides a place for localization and icons for the categories. The old
way of defining categories was just listing them in app metadata files. This
restores that way of functioning when using index-v2.
closes #1137
2023-09-08 10:45:51 +02:00
Hans-Christoph Steiner
bc58959315
purge remnants of repo/categories.txt, which is long unused
2023-06-02 13:26:03 +02:00
Hans-Christoph Steiner
d96de4d8c2
update: test archive_old_apks() with ArchivePolicy: 0
2023-06-01 20:31:26 +02:00
Gregor Düster
337974cbed
metadata: Make ArchivePolicy an interger internally
2023-05-30 23:02:34 +02:00
Hans-Christoph Steiner
b0c05842d8
metadata: RequiresRoot is boolean, according to docs
...
"Set this optional field to ‘True’ if the application requires root
privileges to be usable."
https://f-droid.org/docs/Build_Metadata_Reference/#RequiresRoot
2023-05-23 10:47:03 +02:00
Hans-Christoph Steiner
061ca38afd
define "string map" type for new Anti-Features explanations
...
closes #683
2023-05-23 10:47:03 +02:00
Hans-Christoph Steiner
e6ff596b4c
update: handle messed up namespaces in AndroidManifest.xml
2023-03-20 13:24:59 +00:00
Jochen Sprickerhof
d29a486e31
tests: use context manager and/or standard setup temp files
2023-02-08 18:12:35 +01:00
Jochen Sprickerhof
d5400549f6
update test: set update options
2023-02-06 14:52:35 +01:00
Hans-Christoph Steiner
9d2cc1ecc5
fix pylint C1803: 'icons_src == {}' can be simplified to 'not icons_src' as an empty dict is falsey (use-implicit-booleaness-not-comparison)
2023-02-02 16:02:49 +01:00
linsui
5858d8fcb4
remove liberapayID
2023-01-16 17:02:56 +00:00
FestplattenSchnitzel
aa71dd57f6
update.TestCase: Avoid creating metadata with duplicate keys
2023-01-15 12:52:41 +01:00
linsui
d25995c084
Set ArchivePolicy based on VercodeOperation/signature
2022-11-15 18:50:16 +08:00
Jochen Sprickerhof
24630dfe68
Drop old getsig.java test
...
getsig.java was replaced by a Python implementation in 6e2d0a9e
(2014)
and the test was only there to compare the results for the transition.
Dropping this as it no longer works starting with 11.0.17+8.
2022-11-14 17:58:37 +01:00
Hans-Christoph Steiner
99e0c28d37
run black on tests/updates.TestCase to fix lint failure
2022-10-31 10:19:43 +01:00
Hans-Christoph Steiner
8b484b37bd
add tests for Fastlane changelogs including default.txt
2022-10-31 09:42:19 +01:00
linsui
618e2c7d72
change VercodeOperation to TYPE_LIST
2022-10-27 19:11:37 +08:00
linsui
5a28f20301
make versionCode/build.timeout an integer
...
Co-authored-by: Jochen Sprickerhof <git@jochen.sprickerhof.de>
2022-10-14 08:42:26 +00:00
linsui
6f73a87eb1
fix typo: Build -> Builds
2022-10-14 08:42:26 +00:00
pmmayero
0ad45a94a8
Addition of IPFS CIDv1 to Index
...
IPFS CIDv1 is only generated for APKs and "repo files"
2022-09-14 09:28:02 +00:00
Hans-Christoph Steiner
b854f3bab7
update: fully isolate testInsertStoreMetadata test
...
The test was failing due to something on my local filesystem, this
runs the test in a new dir every time.
2022-09-08 18:45:30 +02:00
Jochen Sprickerhof
eb79522a36
Fix flake8 E275 missing whitespace after keyword
2022-07-31 09:48:14 +02:00
Hans-Christoph Steiner
fe22958476
run-tests: skip tests that require apksigner when running on Java8
...
The buildserver VM has not been upgraded yet to bullseye, so it is still on
Debian/stretch. The buildserver VM does not need to run `fdroid update`,
`fdroid signindex`, etc. so this new apksigner requirement should not
affect app builds even though they are stuck on Debian/stretch.
2022-06-07 16:56:25 +02:00
Jochen Sprickerhof
b07d23ff5c
Don't include disabled apks in the index
...
This needs a rerun of `fdroid update --clean`.
In case a build is disabled delete_disabled_builds takes care of
deleting it from the repo. But this only works if the apk follows the
normal name pattern. Otherwise it will stay in the folder and be picked
up by process_apks and added to the index.
Closes : #1002
2022-05-23 11:47:53 +00:00
Jochen Sprickerhof
08e3e445fb
Merge androguard_test into update.TestCase
2022-05-10 14:40:03 +00:00
Simon Ser
757e30ad85
Add test case for Triple-T metadata in a Flutter project
2022-03-07 12:40:37 +01:00
Hans-Christoph Steiner
da10acfe2c
update: add test with APK for icon_id related exceptions
2021-10-01 16:44:14 +02:00
Hans-Christoph Steiner
a56d377c9e
update: modernize options handling in tests
...
This moves everything to the Options class, and resets the options between
test runs.
2021-08-05 16:44:40 +02:00
Hans-Christoph Steiner
3b95d3de64
update: AllowedAPKSigningKeys metadata to enforce APK signers
...
This field lets you specify which signing certificates should be
trusted for APKs in a binary repo.
2021-08-05 16:43:48 +02:00
Felix C. Stegerman
d518971204
add test_insert_triple_t_anysoftkeyboard()
2021-08-04 17:33:38 +02:00
Felix C. Stegerman
73f28a611c
add test_insert_triple_t_multiple_metadata()
2021-07-03 21:20:18 +02:00
Gerhard Olsson
0c31c4a5ab
win fixes
2021-06-18 10:30:59 +02:00