5569 Commits

Author SHA1 Message Date
Marcus Hoffmann
6ff3a422c4 readme: root install method is removed 2018-08-30 22:48:21 +02:00
Hans-Christoph Steiner
054bdb5cd4 Merge branch 'focusable' into 'master'
Add missing "focusable" attributes.

See merge request fdroid/fdroidclient!735
2018-08-30 20:33:20 +00:00
Hans-Christoph Steiner
c4265fe5cb Merge branch 'lintfix' into 'master'
Minor fixes for NonNull annotations and Javadoc

See merge request fdroid/fdroidclient!742
2018-08-30 20:09:30 +00:00
Hans-Christoph Steiner
070d9af9a8 Merge branch 'versions-overhaul' into 'master'
App version list overhaul

Closes #1564, #1327, #1525, #1333, and #1322

See merge request fdroid/fdroidclient!725
2018-08-30 20:07:31 +00:00
wsdfhjxc
3b711ea571 App version list overhaul 2018-08-30 20:07:31 +00:00
Reimar Döffinger
6b655b8c04 Minor JavaDoc fixes. 2018-08-30 19:14:14 +02:00
Reimar Döffinger
7e14bf4c10 Add @NonNull annotations to @Override methods. 2018-08-30 19:14:14 +02:00
Hans-Christoph Steiner
acefc4ca59 Merge branch 'header-image' into 'master'
Fix missing header image after scrolling down and scrolling up in app details

Closes #1540

See merge request fdroid/fdroidclient!731
2018-08-30 10:52:38 +00:00
Hans-Christoph Steiner
5701cfe34b Merge branch 'expert-mode-scroll' into 'master'
Keep "Expert mode" item at top of screen when revealing expert preferences

See merge request fdroid/fdroidclient!737
2018-08-30 10:08:15 +00:00
Hans-Christoph Steiner
037c6ec3f6 Merge branch 'about-forum' into 'master'
Replace e-mail address with forum link in "About F-Droid" screen

See merge request fdroid/fdroidclient!738
2018-08-30 10:06:21 +00:00
Hans-Christoph Steiner
6647bc465d Merge branch 'bottomnavupdate' into 'master'
Update bottom-navigation-bar version.

See merge request fdroid/fdroidclient!740
2018-08-30 09:58:52 +00:00
Hans-Christoph Steiner
766247c1d3 Merge branch 'app-null' into 'master'
Make checking app availability after external changes a little bit safer

Closes #1573

See merge request fdroid/fdroidclient!739
2018-08-28 13:59:39 +00:00
Reimar Döffinger
9eb6e3fc3e Update bottom-navigation-bar version.
It now supports keyboard/D-Pad navigation.
2018-08-26 19:27:03 +02:00
wsdfhjxc
37b310575a Make checking app availability after external changes a little bit safer 2018-08-25 13:02:45 +02:00
wsdfhjxc
834997c5cd Remove leftover translations 2018-08-22 16:02:05 +02:00
wsdfhjxc
9a1162c556 Replace e-mail address with forum link in "About F-Droid" screen 2018-08-22 15:29:57 +02:00
wsdfhjxc
e68de76185 Keep "Expert mode" item at top of screen when revealing expert preferences 2018-08-22 02:56:06 +02:00
Reimar Döffinger
da4c97c4c2 Add missing "focusable" attributes.
Fixes lint warnings and improves keyboard navigation
a little bit.
2018-08-20 13:25:07 +02:00
Hans-Christoph Steiner
6345195d41 version code 1004000 1.4-alpha0 2018-08-17 16:36:33 +02:00
Hans-Christoph Steiner
a5ba847df3 update changelog 2018-08-17 16:36:33 +02:00
Hans-Christoph Steiner
c6904bcd74 Merge branch 'weblate' into 'master'
Weblate

See merge request fdroid/fdroidclient!734
2018-08-17 14:38:19 +00:00
Hans-Christoph Steiner
add211ff67 Weblate 2018-08-17 14:38:19 +00:00
Hans-Christoph Steiner
795dd0dbf7 Merge branch 'swap-and-installer-improvements' into 'master'
Swap and installer improvements

See merge request fdroid/fdroidclient!733
2018-08-17 14:05:20 +00:00
Hans-Christoph Steiner
efd577b36b add Share button to "Installed Apps" to export CSV list
refs #1484
2018-08-17 15:32:27 +02:00
Hans-Christoph Steiner
aead26f02c show "Open" button when media is installed and viewable
This checks if there is an app that can view the installed media file, and
if so, it shows an "Open" button where the "Run" button is for apps.
2018-08-17 15:32:27 +02:00
Hans-Christoph Steiner
9cfe8ef091 Merge branch 'index-downloads-from-mirrors' into 'master'
Index downloads from mirrors

See merge request fdroid/fdroidclient!730
2018-08-17 13:07:20 +00:00
Hans-Christoph Steiner
6b6ab02c9c bump to bouncycastle 1.60 2018-08-17 15:05:00 +02:00
Hans-Christoph Steiner
6db0fa6387 add clickable list of APKs to the swap HTML index page
This allows for rapid, direct download of APKs.  It is sometimes useful, as
long as it doesn't get in the way.
2018-08-17 15:05:00 +02:00
Hans-Christoph Steiner
ab8948eb5a fix "Send F-Droid via Bluetooth"
The 'com.mediatek.bluetooth' Bluetooth or android-23 devices were not
being granted URI permissions.
2018-08-17 15:05:00 +02:00
Hans-Christoph Steiner
9ea6afef33 Merge branch 'espresso-tests' into 'master'
enable Espresso tests with some basic UI tasks

See merge request fdroid/fdroidclient!718
2018-08-17 12:45:19 +00:00
Hans-Christoph Steiner
db5ac3bdfc stop throwing an exception in DBHelper.onDowngrade()
I missed this little detail ind64a55e013882a7d6b3de646955ed68647a82e97,
the super version of this throws an exception, so it stops the downgrade.

fdroid/fdroidclient!729
2018-08-17 14:33:50 +02:00
Hans-Christoph Steiner
c291b8f0f8 retry index downloads from mirrors when failing for a networking reason
f1f56abd0f4253d69ee91bccaf09ce3730a648a3
fdroid/fdroidclient!697
2018-08-17 14:33:50 +02:00
Hans-Christoph Steiner
e02a5987d2 make DownloaderService use urlString var names like rest of code 2018-08-17 14:33:50 +02:00
Hans-Christoph Steiner
20a1b4c83d standardize on "sha256" as the hash name, like fdroidserver uses
fdroidserver has always written "sha256" to the index.xml file, so client
should use the same.  The Java hashers will correctly respond to both
"sha256" and "SHA-256", and the only place that the hashType is read from
the DB and used is in the swap repo index.xml generation, where it should
also use "sha256".
2018-08-17 14:33:50 +02:00
Hans-Christoph Steiner
20c93c64d8 eliminate .views.fragments package used by a single class 2018-08-17 14:33:50 +02:00
Hans-Christoph Steiner
8ce08c5920 fully ignore Espresso tests until something works out with gitlab-ci 2018-08-17 14:15:23 +02:00
Hans-Christoph Steiner
0fb65f6921 gitlab-ci: dump complete logcat into artifacts zipball
Before, it was only including errors.
2018-08-17 12:04:19 +02:00
Hans-Christoph Steiner
558dde5f77 run Deflator.end() to get rid of StrictMode errors:
java.lang.Throwable: Explicit termination method 'end' not called
	at dalvik.system.CloseGuard.open(CloseGuard.java:180)
	at java.util.zip.Deflater.<init>(Deflater.java:171)
	at kellinwood.zipio.ZioEntryOutputStream.<init>(ZioEntryOutputStream.java:35)
	at kellinwood.zipio.ZioEntry.getOutputStream(ZioEntry.java:482)
	at kellinwood.security.zipsigner.ZipSigner.signZip(ZipSigner.java:759)
	at kellinwood.security.zipsigner.ZipSigner.signZip(ZipSigner.java:664)
	at org.fdroid.fdroid.localrepo.LocalRepoKeyStore.signZip(LocalRepoKeyStore.java:213)
	at org.fdroid.fdroid.localrepo.LocalRepoManager.writeIndexJar(LocalRepoManager.java:492)
	at org.fdroid.fdroid.views.swap.SwapWorkflowActivity$PrepareSwapRepo.doInBackground(SwapWorkflowActivity.java:759)
	at org.fdroid.fdroid.views.swap.SwapWorkflowActivity$PrepareSwapRepo.doInBackground(SwapWorkflowActivity.java:709)
	at android.os.AsyncTask$2.call(AsyncTask.java:304)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
	at java.lang.Thread.run(Thread.java:761)
E StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
2018-08-17 12:03:31 +02:00
Hans-Christoph Steiner
2ddf94a9f0 gitlab-ci: set emulator RAM to 75% of available host RAM 2018-08-17 12:03:31 +02:00
Hans-Christoph Steiner
e450569a69 espresso: do extra memory clean up to keep StrictMode happy
There were some occasional StrictMode errors about multiple instances of
MainActivity.  This cleanup idea comes from Google:

6f3a38f3af
2018-08-17 12:03:31 +02:00
Hans-Christoph Steiner
7493118a92 gitlab-ci: only run emulator tests for full flavor
The emulator runs are super crashy on gitlab-ci, so just run the emulator
tests for the "full" build flavor.  Once these prove stable, the task
should be switched to connectedCheck to test all the build flavors
2018-08-17 12:03:31 +02:00
Hans-Christoph Steiner
9d8232472f tests: dismiss dialogs in the emulator with back button before run
The ARM emulator can show ANRs for 'system' on boot, so that dialog needs
to be dismissed before the Espresso tests can happen.

https://android.googlesource.com/platform/frameworks/testing/+/master/uiautomator_test_libraries/src/com/android/uiautomator/common/UiWatchers.java
2018-08-17 12:03:30 +02:00
Hans-Christoph Steiner
990d05dc0f skip Espresso tests on ARM emulators
ARM emulators are too slow to run these tests in a useful way.  The
sad thing is that it would probably work if Android didn't put up the
ANR "Process system isn't responding" on boot each time.  There seems
to be no way to increase the ANR timeout.
2018-08-17 12:03:08 +02:00
Hans-Christoph Steiner
fd7acd6304 disable all animations in emulator for Espresso tests
* https://gist.github.com/xrigau/11284124
* https://gist.github.com/xrigau/ea8d306e0a751fafb1e6
* https://artemzin.com/blog/easiest-way-to-give-set_animation_scale-permission-for-your-ui-tests-on-android/
* https://github.com/finn-no/android_emulator_hacks
* https://gist.github.com/caipivara/9371a79a7222a156ddad
2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
2f038d81e0 error on NewApi/InlinedApi to catch compat issues with old devices 2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
897a35aa76 enable lint TrustAllX509TrustManager as error 2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
896d4a788f enable lint PackageManagerGetSignatures as error 2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
4a684182ca enable lint "GetInstance" security check as error 2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
0e6e839ed7 fix lint "WifiManager Potential Leak" 2018-08-17 10:10:00 +02:00
Hans-Christoph Steiner
e75a1a7005 remove test runner that was needed by Jenkins and Eclipse
Even the project's README says it is no longer needed:
https://github.com/jsankey/android-junit-report
2018-08-17 10:10:00 +02:00