740 Commits

Author SHA1 Message Date
Daniel Martí
7dfe9eac24 Add basic gradle support 2013-11-27 15:47:13 +01:00
Daniel Martí
78caf63093 Update UIL to latest master 2013-11-27 15:23:55 +01:00
Ciaran Gultnieks
62ddbe5ce1 Database upgrade fix 2013-11-27 13:54:55 +00:00
Ciaran Gultnieks
2e21f8abba Support for displaying UpstreamNonFree 2013-11-27 11:26:52 +00:00
Ciaran Gultnieks
d21788569f Accept declaration of maxage from repos 2013-11-26 19:59:42 +00:00
Ciaran Gultnieks
7dc56e6009 Add database field to enforce max age on index (per repo) db-version/30 2013-11-26 16:29:42 +00:00
Ciaran Gultnieks
46bcfcf015 Merge branch 'merge-requests/43' 2013-11-24 07:42:41 +00:00
Hans-Christoph Steiner
95f932f79f update database to store repo key fingerprint
The stored fingerprint is needed for comparing new, incoming repos that are
in the Add Repo dialog.  This is to prevent malicious use of the automated
adding of repos via QR Codes, NFC, etc.  The only other option that I could
think of for handling this situation is for the Add Repo dialog to open a
socket to the proposed repo to get its pubkey.  That seems much less
desirable than just storing the fingerprints in the database.
db-version/29
2013-11-23 13:42:22 -05:00
Hans-Christoph Steiner
ee21a2724c generate fingerprint as a hex String, leave formatting for display code
When the fingerprint is generated to be stored in the database in the repo
table, make it a single String that is a hex number.  This is a natural
format for working with the fingerprints programmatically.  The display
formatting can then be handled by the display code, and can freely change
without affecting the underlying function of the code.
2013-11-23 13:42:22 -05:00
Hans-Christoph Steiner
9b485bece3 switch repo key fingerprint to SHA-256 since SHA-1 is considered deprecated
* a number of sources have said to avoid SHA-1 in new implementations
* nothing currently depends on the SHA-1 fingerprint in the code, it is
  only used to display on the repo list.
* Java 7 requires SHA-256 to be included
* keytool -list -v shows the SHA-256 fingerprint
2013-11-23 13:42:22 -05:00
Hans-Christoph Steiner
fd28883429 break out signing key fingerprint calculation into its own method
This will be needed for checking an incoming repo URL with a fingerprint
included to see if that uri/fingerprint already exists in the database.
2013-11-23 13:42:22 -05:00
Hans-Christoph Steiner
240f03d372 add "proper" Java decorators that Android ADT insists on adding
Everytime I save a java file with Android ADT, it adds @Override decorators
and throws errors if a method is called that is not supported in API 4. My
setup might be more sensitive since its setup with the official Android
style plugin for Eclipse.  But the decorators are "correct" Java style, so
it would be nice to have them in F-Droid.
2013-11-23 13:39:26 -05:00
Hans-Christoph Steiner
c0eecabcca also match repo urls that have one, two or three extra levels to the path
Yes, you really have to do all this craziness to get it to match right!
2013-11-22 17:17:19 -05:00
F-Droid Translatebot
fbd7a0c8e7 Translation updates 2013-11-22 21:01:19 +00:00
F-Droid Translatebot
95af56a118 Translation updates 2013-11-22 20:08:59 +00:00
Ciaran Gultnieks
6a6c2287d4 Merge branch 'merge-requests/39' 2013-11-22 09:44:54 +00:00
Hans-Christoph Steiner
36da418660 add CheckBox to enable overwriting of existing repos when adding new ones
The "Add" button is disabled until the user turns overwrite on.  It should
prevent accidental overwriting, but I imagine this could be handled better.
2013-11-20 00:06:12 -05:00
Hans-Christoph Steiner
14c525e7ff add fingerprint field to Add Repo dialog, and alert if repo already exists
Previously, anything added via the Add New Repository dialog would just
overwrite any existing repo config that was there.  This has become a
bigger issue with the QR Code scanning since it could become an attack
vector.  This is the first step towards making this Add Repo dialog give
more info to the user about the state of things, and what the user might
replace by clicking OK.
2013-11-20 00:06:12 -05:00
Hans-Christoph Steiner
f5ce7d8588 simplify browse URL IntentFilter data for readability
Each piece of <data /> applies to the whole IntentFilter, so each scheme,
host, or pathPattern only needs to be stated once per IntentFilter.
2013-11-19 21:17:24 -05:00
Hans-Christoph Steiner
3301a57a01 handle incoming URIs based on patterns: "^https?://.*/(repo|archive)/*$"
This allows for clickable/scannable URIs for adding repos to F-Droid.
2013-11-19 15:04:48 -05:00
Hans-Christoph Steiner
6928bd1244 accept froidrepo and fdroidrepos URIs, which can be scanned via QRCode, etc
This patch makes F-Droid register with Android that it accepts the URI
schemes of fdroidrepo (HTTP) and fdroidrepos(HTTPS).  When F-Droid receives
one of these URIs, it launches the ManageRepo Activity and then launches
the New Repository dialog.

refs #2454
2013-11-19 10:56:38 -05:00
Ciaran Gultnieks
1b8ea8f3d5 Handle unrecognises antifeatures more gracefully
This allows us to add new ones without making a mess in the client.
Prior to this change it would add empty lines, and also if the only
antifeature was an unrecognised one, would enable the antifeature view
box but with nothing in it. It should now ignore them completely.
2013-11-17 11:33:05 +00:00
Aleksey Tulinov
4f717c663b Issue #413: removed "compacts" array to always re-layout reused views 2013-11-17 06:23:12 +02:00
Daniel Martí
5626adc574 Properly retab all layout xml files 2013-11-16 23:39:37 +01:00
Daniel Martí
a2b939d1fc AppList icons back to 40dp, AppDetails icons to real 48dp 2013-11-16 23:37:26 +01:00
Daniel Martí
0aeec1d2bb Merge commit 'refs/merge-requests/40' of gitorious.org:f-droid/fdroidclient 2013-11-16 23:28:52 +01:00
Daniel Martí
afb5762a71 Save ignore settings in onPause, fixes #409 2013-11-16 23:26:03 +01:00
Aleksey Tulinov
2ec7cb3e8d Changed app icon paddings into margins to fit 48x48dp exactly 2013-11-16 20:31:40 +02:00
Paul Sokolovsky
f7b3e0b81c finish(): Check for app non-null before accessing it.
finish() may be called from reset() which sets app to null. This issues
hits for example when clicking on wiki-link of an app which doesn't
currenty exist in client index, throws:

E/AndroidRuntime(17630): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.fdroid.fdroid/org.fdroid.fdroid.AppDetails}: java.lang.NullPointerException
E/AndroidRuntime(17630): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
E/AndroidRuntime(17630): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
E/AndroidRuntime(17630): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(17630): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
E/AndroidRuntime(17630): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(17630): 	at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(17630): 	at android.app.ActivityThread.main(ActivityThread.java:3691)
E/AndroidRuntime(17630): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(17630): 	at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(17630): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
E/AndroidRuntime(17630): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
E/AndroidRuntime(17630): 	at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(17630): Caused by: java.lang.NullPointerException
E/AndroidRuntime(17630): 	at org.fdroid.fdroid.AppDetails.finish(AppDetails.java:1012)
E/AndroidRuntime(17630): 	at org.fdroid.fdroid.AppDetails.reset(AppDetails.java:353)
E/AndroidRuntime(17630): 	at org.fdroid.fdroid.AppDetails.onCreate(AppDetails.java:243)
E/AndroidRuntime(17630): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(17630): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
2013-11-16 19:32:30 +02:00
Ciaran Gultnieks
fbdda9dc77 Improve changelog 0.55 2013-11-11 10:18:39 +00:00
Ciaran Gultnieks
44c1dc2c44 Version 0.55 2013-11-11 10:12:32 +00:00
F-Droid Translatebot
2efba7f932 Translation updates 2013-11-11 09:49:35 +00:00
Daniel Martí
7d5179b38a Fix remaining crashes when switching categories 2013-11-10 20:14:29 +01:00
Daniel Martí
9b5c2656ee Fix crashes when trying to view categories (fixes: #408) 2013-11-10 18:55:35 +01:00
Daniel Martí
080bab482d Fix possible crashes when entering AppDetails 2013-11-10 18:55:35 +01:00
Daniel Martí
36cba44c07 Bump project target to android-19 2013-11-10 18:55:35 +01:00
Daniel Martí
dc18bab86f Show categories on older devices properly (fixes #406) 2013-11-10 18:55:35 +01:00
Daniel Martí
ddfbcff0cb Bump support-v4 to r19 2013-11-10 18:55:35 +01:00
F-Droid Translatebot
03acf2002a Translation updates 2013-11-09 15:35:29 +00:00
F-Droid Translatebot
13b3944ae7 Translation updates 2013-11-08 23:39:54 +00:00
F-Droid Translatebot
32cf4375ad Translation updates 2013-11-08 22:24:04 +00:00
Ciaran Gultnieks
5fa4dde379 Remove all android2po/pootle-related stuff
No longer required
2013-11-08 22:04:13 +00:00
Ciaran Gultnieks
87bb85bdf1 Merge branch 'master' of gitorious.org:f-droid/fdroidclient
Conflicts:
	res/values-el/strings.xml
	res/values-eu/strings.xml
	res/values-sr/strings.xml
	res/values-tr/strings.xml
	res/values-ug/strings.xml
	res/values-uk/strings.xml
2013-11-08 17:03:13 +00:00
Ciaran Gultnieks
1b948f2489 Remove mysterious quotes from translations 2013-11-08 17:01:08 +00:00
F-Droid Translatebot
c11fffb8f2 Translation updates 2013-11-08 16:42:53 +00:00
Ciaran Gultnieks
6dcdbcbf1d Revert "Translation updates"
This reverts commit ed7736e31021aab84d9d6134bcf574880a2445f3.
It's not handling multi-line strings properly on export.
2013-11-08 12:48:18 +00:00
F-Droid Translatebot
ed7736e310 Translation updates 2013-11-08 12:41:25 +00:00
Ciaran Gultnieks
2f8cd8e202 Translation updates 2013-11-08 12:19:43 +00:00
Ciaran Gultnieks
34884a4e30 Move a few values to no_trans.xml 2013-11-08 07:51:25 +00:00
Daniel Martí
9734328488 Small fixes to changelog 2013-11-05 11:01:51 +01:00