mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-13 18:50:29 +03:00
set up config['ndk_paths'] on demand by reading source.properties
ndk_paths is set up right after installing the NDK and right before
ndk_paths is used in Build.ndk_path().
A proper NDK install always has a _source.properties_ which declares
the revision and release strings. That is used as the source of
revision and release. This only reads from the local filesystem, and
reads the official source of version info (_source.properties_),
thereby avoiding any potential network calls that sdkmanager might
do. This implementation was inspired by @uniqx's:
ed931d47d7 (27b997d583cd1c0a05b2213437e0d9fe6536bfe3)
This commit is contained in:
parent
40f411d417
commit
b1b30d13a4
8 changed files with 178 additions and 6 deletions
2
tests/source-files/ndk/11.1.2683735/source.properties
Normal file
2
tests/source-files/ndk/11.1.2683735/source.properties
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
Pkg.Desc = Android NDK
|
||||
Pkg.Revision = 11.1.2683735
|
||||
4
tests/source-files/ndk/29.0.14033849/source.properties
Normal file
4
tests/source-files/ndk/29.0.14033849/source.properties
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Pkg.Desc = Android NDK
|
||||
Pkg.Revision = 29.0.14033849-beta4
|
||||
Pkg.BaseRevision = 29.0.14033849
|
||||
Pkg.ReleaseName = r29-beta4
|
||||
4
tests/source-files/ndk/29.0.14206865/source.properties
Normal file
4
tests/source-files/ndk/29.0.14206865/source.properties
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Pkg.Desc = Android NDK
|
||||
Pkg.Revision = 29.0.14206865
|
||||
Pkg.BaseRevision = 29.0.14206865
|
||||
Pkg.ReleaseName = r29
|
||||
Loading…
Add table
Add a link
Reference in a new issue