Jochen Sprickerhof
635f12e438
Use latest build-tools version
2022-05-03 14:59:52 +00:00
Jochen Sprickerhof
9c8e128064
[scanner] replace apkanalyzer by dexdump
2022-05-03 14:59:52 +00:00
Hans-Christoph Steiner
189ff9cd7b
build: improve error message when NDK SHA-256 does not match
2022-04-26 10:25:34 +02:00
Jochen Sprickerhof
d05bcafe14
Test index before signing
2022-04-25 22:26:59 +02:00
Sergey Bobrenok
46f4205fff
Avoid zero-length prefixes in PATH
...
A zero-length prefix in PATH is a legacy feature that indicates the
current working directory.
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03
Found in ru.nsu.bobrofon.easysshfs, see:
https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10953#note_921802636
2022-04-24 16:33:33 +03:00
Jochen Sprickerhof
253f2e5fef
[scanner] Deep copy json structs ( Closes : #985 )
...
The lists in the DEFAULT_JSON_PER_BUILD where only initialized and thus
shared between builds resulting in accumulating the entries over all
versions. As per 2f5d780c4 DEFAULT_JSON_PER_BUILD is used as an API, so
use deepcopy to work around it.
2022-04-21 12:58:07 +00:00
Jochen Sprickerhof
5f3eb601df
Add check for repo/archive_url
2022-04-21 11:16:14 +02:00
Jochen Sprickerhof
c19f46b706
[checkupdates] move gradle var check to parser
...
3638acddc added a check if the version name string is actually a
unresolved gradle variable. This moves the check into the
common.parse_androidmanifests() as it is the only where the it could
happen. This also resolves the case where checkupdates returns
"Unknown".
Closes : #751
2022-04-14 17:47:44 +02:00
Licaon_Kter
1df6b1db90
Import - some fixes for flutter apps
2022-04-12 10:08:13 +00:00
Jochen Sprickerhof
b6ea0d6acd
Consider namespace for applicationId
...
> If the application ID is not explicitly defined using the
> applicationId property, it automatically takes on the same value as
> the namespace.
https://developer.android.com/studio/build/configure-app-module
Found in com.amanoteam.unalix, see:
https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10895#note_907080341
2022-04-10 09:27:17 +02:00
Jochen Sprickerhof
a872d8688d
Fix pylint warnings
2022-03-29 15:53:45 +02:00
Licaon_Kter
287fe1fb16
Add NDK24
2022-03-23 12:30:28 +00:00
linsui
849e671353
Add junrar to blocklist
2022-03-15 12:06:42 +00:00
Jochen Sprickerhof
17c7c3948c
Handle XML parser errors
...
Found in checkupdates of com.dar.nclientv2.
2022-03-11 09:03:03 +01:00
Jochen Sprickerhof
0c390c943d
[checkupdates] update submodules according to tag
...
In case the version information is inside a submodule we need to
checkout the submodule at the version of the tag we test.
Found with org.courville.nova.
Closes : #622
2022-03-10 12:49:03 +01:00
Simon Ser
fdc88650eb
Add support for Triple-T metadata in Flutter projects
...
Closes: https://gitlab.com/fdroid/fdroidserver/-/issues/975
2022-03-06 18:24:45 +01:00
Jochen Sprickerhof
8fb37445f2
Fix detection of binary files without extension
...
Regression of fb61168c .
2022-03-02 10:21:20 +01:00
Hans-Christoph Steiner
707cd7addb
publish index-v1.json and include a gpg signature
...
This gives a more flexible and direct way for many clients to consume the
index file. #969
2022-02-22 22:58:09 +01:00
Hans-Christoph Steiner
d1fd58681e
nightly: stop stripping APKs before signing, apksigner does it
...
* https://gitlab.com/fdroid/fdroidserver/-/merge_requests/1033#note_742563869
* https://github.com/wardvl/f-droid-nightly-action/issues/3
2022-02-22 22:29:09 +01:00
Hans-Christoph Steiner
01d1869d59
nightly: fix "deploy key URL" that is printed to log output
...
GitLab now uses the "/-/" form as the canonical.
2022-02-22 13:34:01 +01:00
Sylvia van Os
1f75090fa2
Fix --use-date-from-apk flag
2022-02-15 22:39:08 +00:00
Sylvia van Os
fb61168c38
Also detect versioned so files
2022-02-15 22:36:44 +00:00
Jochen Sprickerhof
be7e59e71a
Add typing information for mypy
2021-12-30 11:17:57 +01:00
Hans-Christoph Steiner
c54f9ea4ca
mirror: make _run_wget() return to the dir it started in
...
This kind of function should not change the working environment, especially
since so much of the fdroidserver code assumes the current working directory
is the root of an fdroid repo.
It is used in fdroidserver/mirror.py with absolute paths always, so it
shouldn't change any existing use. I found this issue by using it in a
plugin.
2021-12-07 10:24:27 +01:00
Romain Lebbadi-Breteau
b2eca0fc3b
remove useless import in verify.py
2021-12-04 18:26:26 -05:00
Romain Lebbadi-Breteau
3576d025fe
fix verify.py use sha256sum from common
2021-12-04 18:14:21 -05:00
Jochen Sprickerhof
2933880590
Raise exception if the given NDK was not found
...
Seen in
https://monitor.f-droid.org/builds/log/io.nekohasekai.sagernet/635#site-footer
2021-12-01 07:45:03 +01:00
jugendhacker
b236773455
Fix subproject regex to allow subdir without colon
2021-11-30 08:28:17 +00:00
linsui
9b0ef544bb
add ndk r23b
2021-11-29 11:28:43 +00:00
Jochen Sprickerhof
a5deaa80d8
Parse single digit sizes
...
Closes : #946
2021-11-27 21:44:47 +01:00
Sylvia van Os
3779481519
Renamed to NSFW as per https://gitlab.com/fdroid/admin/-/issues/252
2021-11-25 13:10:29 +00:00
Sylvia van Os
ec194ef6e6
Add AdultContent to allowed anti-features
2021-11-25 13:10:29 +00:00
Jochen Sprickerhof
36a7847525
Suppress --wiki in fdroid build
...
This was already done for fdroid update in 00c2cc969 .
2021-11-24 18:16:07 +01:00
Jochen Sprickerhof
32d2330bb5
Always write VM status
...
Before this the status.json only contained VM information with
fdroid build --wiki --server, after this a fdroid build --server is
enough.
2021-11-24 18:16:07 +01:00
Jochen Sprickerhof
b6f1f4231a
Drop code for the old wiki
2021-11-24 18:16:07 +01:00
Ward Vanlerberghe
1c65fd8496
Added Github actions/workflow to the nightly CI
2021-11-24 07:54:57 +00:00
Jochen Sprickerhof
656c707636
Simplify index.html for new html5lib
...
Newer html5lib (used in html5print in the test_make_website) strip the
empty value, as it is valid html.
2021-11-19 18:34:23 +01:00
Gaurav Ujjwal
aead3310bd
NDK Install: Handle symlinks present in NDK zip
2021-11-03 08:13:21 +00:00
Jochen Sprickerhof
e5dcf532b4
Improve rewritemeta --help
2021-10-23 14:08:07 +02:00
Jochen Sprickerhof
fa3cceb8e8
git prune branches in case of failure
...
git branches can be namespaces like directories on a filesystem and are
represented like that. Due to that there can't be a branch with the same
name as a namespace, i.e. foo and foo/bar.
If upstream moves from a branch to namespace, we need to prune the old
branch before fetching the new one.
This broke organic maps:
From https://github.com/organicmaps/organicmaps
* [new branch] android/huawei -> origin/android/huawei
error: cannot lock ref 'refs/remotes/origin/fixes/all': 'refs/remotes/origin/fixes' exists; cannot create 'refs/remotes/origin/fixes/all'
! [new branch] fixes/all -> origin/fixes/all (unable to update local ref)
e2ac324b95..320a1db39b master -> origin/master
* [new tag] 2021.10.09-2-android -> 2021.10.09-2-android
error: some local refs could not be updated; try running
'git remote prune origin' to remove any old, conflicting branches
2021-10-14 12:42:29 +00:00
Jochen Sprickerhof
45a20ab365
[checkupdates] Tweak logging
...
- Increase severity of version mismatch.
- Don't log that the process is done.
2021-10-14 12:11:01 +00:00
Noah Andrews
75989ff59a
Handle error when parsing WebView icon
...
Fixes #903
2021-10-01 16:44:28 +02:00
Felix C. Stegerman
dbfbc4163c
scanner: add com.google.mlkit to NON_FREE_GRADLE_LINES
2021-10-01 13:10:45 +00:00
Felix C. Stegerman
c2ed538ea4
copy_triple_t_store_metadata(): handle subdir + flavor
2021-09-29 21:36:11 +00:00
Gaurav Ujjwal
07856dc0e0
Fix invalid key error due to NDK versions in "revision" form (e.g. 21.4.7075529)
...
First element in the 'NDKS' array does not have 'revision' key, which results in 'KeyError' when accessed through subscript operator.
2021-09-19 09:44:37 +00:00
Jochen Sprickerhof
0783f97bed
Fix get_dir_size call
...
Regression of 7987c746 .
2021-09-13 11:16:16 +00:00
Felix C. Stegerman
6bd8470d55
find_sdk_tools_cmd(): s/found/not found/ in error message
2021-09-12 22:40:50 +00:00
Felix C. Stegerman
53ff7de445
build: run vcs.initsubmodules() on host as well
...
otherwise, e.g. triple-t metadata in a submodule will not be available
on the host and thus not be used at all
2021-09-11 15:31:27 +00:00
Hans-Christoph Steiner
7987c746de
index: do not include GitLab Pages mirror if it can't be deployed
...
GitLab Pages sites are limited to 1GB on gitlab.com, so the CI/CD job will
fail if the repo is bigger than that. It should not be included as a
mirror in that case.
https://docs.gitlab.com/ee/user/gitlab_com/#gitlab-pages
2021-09-11 15:30:55 +00:00
Jochen Sprickerhof
28098c32e3
Support ruamel from Debian stretch
2021-09-11 09:16:15 +00:00