Michael Pöhn
e83221eb03
improve yaml build flag check cost; added unit test for unknown app fields, builds flags checks when parsing yaml
2018-08-14 12:31:12 +02:00
Michael Pöhn
25b4a47951
check for unknown app fields and build flags when parsing yml
2018-08-14 12:31:12 +02:00
Michael Pöhn
f53d1abcce
fix: make sure ensure_final_value always has a clearly defined return value
2018-08-14 11:07:44 +02:00
Marcus
cf3665b328
Merge branch 'facebook_sdk' into 'master'
...
scanner: add facebook sdk to forbidden libraries
Closes #534
See merge request fdroid/fdroidserver!542
2018-08-10 13:36:44 +00:00
Marcus Hoffmann
a6dfbc6e2e
scanner: add facebook sdk to forbidden libraries
...
These are sourceavailable but not under a free license.
I made sure that this matches only the facebook sdk's from here:
https://github.com/facebook/facebook-android-sdk and not some real open
source libraries by facebook (fresco, stetho, ...). These seem to be
under a different namespace.
fdroid/fdroidserver#534
2018-08-10 15:20:01 +02:00
Hans-Christoph Steiner
a01d11ba64
Merge branch '530-lint-issue-with-disable' into 'master'
...
Resolve "Lint issues with 'disable: ...` in YAML"
Closes #530
See merge request fdroid/fdroidserver!550
2018-08-03 09:07:09 +00:00
Michael Pöhn
74ae6a6a3b
set locale explicitly when using keytool
2018-08-03 04:36:00 +02:00
Michael Pöhn
1e7d9b854d
never interpret "disable" as bool in yaml metadata
2018-08-02 17:31:58 +02:00
Licaon_Kter
da0c541dec
Lint - the error should hint that the right word is Categories
2018-07-30 22:56:57 +00:00
Michael Pöhn
27d382e1f4
clean up globals in signatures.py
2018-07-30 13:07:07 +02:00
mimi89999
d76c5dc859
signatures: Don't pass config to extract
...
Closes #536
2018-07-29 17:45:45 +02:00
Hans-Christoph Steiner
481a6274f0
Merge branch 'archive_icons' into 'master'
...
update: populate app level info for archive only from archived apks
Closes #365
See merge request fdroid/fdroidserver!537
2018-07-27 13:09:13 +00:00
Marcus Hoffmann
753e9c8175
scanner: properly combine all gradle compile commands with flavors
2018-07-25 19:00:34 +02:00
Marcus Hoffmann
c44ab190bd
scanner: fix reformatting fail
...
This was broken by 44e8f425d :-(.
2018-07-25 19:00:37 +02:00
Areeb Jamal
7bdffde804
build: replace exclude with filter during source tar creation
...
Replace the deprecated exclude argument with filter in build.py
allowing users of Python 3.7 to use the fdroid CLI
Closes #531
2018-07-25 19:05:30 +05:30
Marcus Hoffmann
957b6b8d19
update: populate app level info for archive only from archived apks
...
Fixes fdroid/fdroidserver#365
2018-07-19 10:44:14 +02:00
Hans-Christoph Steiner
84dfd6b06a
update: more reliable handling of XMLNS with androguard
...
Sometimes androguard returns the XMLNS as entirely empty, which would make
it an invalid APK since normally the 'android' name is mapped to the
'http://schemas.amazon.com/apk/res/android ' value. Occasionally, a
different key is used.
closes fdroid/fdroidserver#515
2018-07-17 12:37:13 +02:00
Hans-Christoph Steiner
4352aa2792
update: pass resourceIds through if they can't be deferenced
...
People do odd tricks with `aapt --rename-manifest-package` and androguard
doesn't handle them all.
* https://github.com/androguard/androguard/issues/503
2018-07-17 12:37:13 +02:00
Hans-Christoph Steiner
0e0a5019ab
update: little trick to avoid some cases of XML app icons
...
refs #344
2018-07-17 12:37:13 +02:00
Hans-Christoph Steiner
75e9a9e176
update: support versionCode values in hex
2018-07-17 12:37:13 +02:00
Hans-Christoph Steiner
c8e61aa02d
update: handle random drawable folder names when parsing icons
...
The app com.android.acehk.aceapp37423 had this invalid stuff in it:
6165 2014-03-28 12:52 res/drawable-320dpi/ic_launcher.png
2018-07-17 12:37:13 +02:00
Hans-Christoph Steiner
56a5d868f1
update: purge --editor and --interactive, they were removed in 2013
...
48296df5b0
2018-07-17 12:37:13 +02:00
Michael Pöhn
b6ad6724cc
Revert "publish: avoid double removal of dev-supplied reference binary"
...
This reverts commit db5ed26517 .
Doh, messed up the rebase...
2018-07-13 00:07:58 +02:00
Hans-Christoph Steiner
58b81b5ca6
publish: strict regex replacement for .binary.apk
...
. matches anything \. matches the char "."
2018-07-12 23:53:05 +02:00
Hans-Christoph Steiner
68fb3d2bd9
fix typos
2018-07-12 23:53:05 +02:00
Michael Pöhn
db5ed26517
publish: avoid double removal of dev-supplied reference binary
2018-07-12 23:53:05 +02:00
Michael Pöhn
cdc2147de9
put .binary.apk files into sub-directory
2018-07-12 23:52:46 +02:00
Michael Pöhn
fab02a49dc
Merge branch 'better_gradle_support' into 'master'
...
Better gradle support
Closes #98
See merge request fdroid/fdroidserver!527
2018-07-11 15:20:19 +00:00
Marcus Hoffmann
9889a98dea
build: improve gradle experience
...
This expands the gradle wrapper shell script used by the buildserver for
usage outside the buildserver environment. It also allows downloading
whitelisted versions of gradle if they are not yet deployed to the
buildserver by simply upsating the copy of fdroidserver (in contrast to
having to reprovision the whole buildserver).
We first move the buildserver/gradle shell script to the repo root
as gradlew-fdroid, as it's an fdroid specific gradle wrapper.
We also now sync it inside the build VM before each build.
We then add a list of whitelisted gradle distributions taken from the
makebuildserver script.
The script additionally now reads two env vars which tell it where to
expect installed versions of gradle and where it might store downloaded
gradle .zip files. Both of those are configurable from config.py. As the
first should normally just be a subdir of the second it's not exposed in
the example config.py but only used by the buildserver config.py.
Default config now uses this internal gradle wrapper but a path to a
custom wrapper or specific gradle distribution can still be set from
config.py.
Closes fdroid/fdroidserver#98
Ref: fdroid/fdroidserver#370
2018-07-11 11:49:46 +02:00
Hans-Christoph Steiner
b03c4a7353
NoSourceSince Anti-Feature should only be added to index
...
Before, it was being added to the metadata, so that rewritemeta would
output it.
fdroid/fdroidserver!529
#508
2018-07-10 23:32:07 +02:00
Izzy
5d8e1bde4f
new AntiFeature: SourceGone (automatically set at NoSourceSince). closes #508
2018-07-10 12:36:49 +00:00
Marcus Hoffmann
a728582077
build: propagate --no-tarball option to buildserver
...
Closes #510
2018-07-09 14:48:59 +02:00
Michael Pöhn
5726432159
fix ignoring developer supplied reference apks for reproducible builds when publishing
2018-07-02 15:28:22 +02:00
Hans-Christoph Steiner
d20e8613fe
build: only test for all Android SDK paths where it is needed
...
Now that androguard can be used, the android-sdk is no longer required for
most operations.
2018-06-25 10:52:12 +02:00
Hans-Christoph Steiner
c3b361c91b
remove 'from distutils.util import strtobool' dependency
...
Most of distutils is being removed from the Python standard library, and
this is totally not needed here.
2018-06-25 10:52:12 +02:00
Michael Pöhn
12af173821
fix left out refactoring in build.py
2018-06-23 23:26:42 +02:00
Hans-Christoph Steiner
a736a37282
update: let it work without JDK, only JRE and apksigner
2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
8f2ee4bd1d
run 'zipalign' using standard flags used by Gradle Android Plugin
...
Nice find by @equeim! -p was added in build-tools-23.0.0
https://developer.android.com/studio/publish/app-signing#sign-manually
closes #288
2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
deccd013c9
nightly: --no-deploy option to skip rsyncing repo
2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
881074b2aa
nightly: --keep-private-keys option to allow further processing
...
This makes it possible to run `fdroid server update` after `fdroid nightly`
has completed. It also actually deletes all private key files.
2018-06-19 15:40:48 +02:00
Hans-Christoph Steiner
1d6c462605
Merge branch '495-publish-build-logs-with-rsync' into 'master'
...
publish build logs with rsync
See merge request fdroid/fdroidserver!515
2018-06-19 13:44:09 +00:00
Michael Pöhn
752f6a4ba2
applied review suggestions for deploying (build) logs
2018-06-19 15:18:13 +02:00
Michael Pöhn
a318a637a5
vmtools: use pythonic way to check for installed binaries
2018-06-19 14:47:03 +02:00
Michael Pöhn
ebe71472d3
use default logging style in vmtools
2018-06-19 14:37:18 +02:00
Michael Pöhn
88e64df3ef
deploying build logs to server after each individual build run
2018-06-19 12:24:52 +02:00
Michael Pöhn
4c53c71fcf
added helper function for uploading build logs with rsync
2018-06-19 12:24:52 +02:00
Marcus Hoffmann
3a6942ca77
scanner: whitelist www.jitpack.io
...
Only the non-www version was recognized so far.
Closes #498
2018-06-11 12:40:55 +02:00
Hans-Christoph Steiner
ff90c0246e
fix PEP8 W605 invalid escape sequence
...
Python 3.7 will get a lot stricter with escape sequences. They must be
valid.
* https://lintlyci.github.io/Flake8Rules/rules/W605.html
* https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2018-05-29 13:51:47 +02:00
Hans-Christoph Steiner
e6d5260c3c
fix PEP8: W504 line break after binary operator
2018-05-29 12:31:56 +02:00
Hans-Christoph Steiner
fb02073cab
fix "local variable 'e' is assigned to but never used"
2018-05-25 12:32:34 +02:00