1090 Commits

Author SHA1 Message Date
Rene Treffer
7fa25d3209 Add ROM building instructions
Android.mk enables ROM devs to bundle F-Droid. Add instruction on how to
do it.
2014-03-16 14:03:46 +01:00
Rene Treffer
1f799d1ef1 Say that f-droid is not an unknown source.
This property will be ignored if f-droid is not installed as priv-app,
but it _will_ skip the "you have to enable unknown sources" dialog if
f-droid is installed as priv-app.

There is thus no gain in keeping it as is (false).
2014-03-16 13:52:05 +01:00
Rene Treffer
61bbbf442d Make the list of default repos dynamic
This patch iterates over the configured list of repos and adds them to
the db on create. This means that the initial list of repositories is
now fully configurable. Added the guardian project repo (disabled) as a
testcase.
2014-03-16 13:50:17 +01:00
Rene Treffer
d55fc7cd69 Fix build failure with newer toolchains.
Android somehow wants every string to be externalized on newer
toolchains, let's prepare for that.

This fixes in-tree building of f-droid.
2014-03-16 13:44:25 +01:00
Rene Treffer
750da53970 Add Android.mk for building in ROMs
Android.mk is needed to build F-Droid as part of other ROMs. A ROM would
have to emulate the .gitmodules with repo.

Note: the build will fail until AndroidPinning pulls a trivial fix for
      super(null). There is also a layout bug that is fixed by the next
      commit.
2014-03-16 13:40:20 +01:00
Daniel Martí
49a3c3370f Don't finish the whole Repositores activity when cancelling "New Repository" 2014-03-10 18:36:35 +01:00
Daniel Martí
54d7849191 Get rid of lint TargetApi warnings 2014-03-10 18:30:42 +01:00
Daniel Martí
be4db93da5 Forgot the rtl fixes for layout-land 2014-03-10 18:27:43 +01:00
Daniel Martí
6fa72607b8 Fix relative layouts on <4.2, broken while trying to add RTL support 2014-03-10 18:19:15 +01:00
Daniel Martí
4454c0d261 No need to reset views in the app lists 2014-03-10 17:56:49 +01:00
Daniel Martí
0f44c5edba Fix scaling of icons on AppDetails 2014-03-10 17:56:38 +01:00
Hans-Christoph Steiner
1d3c18423b use https for fdroid.org everywhere, avoid redirects 2014-03-10 17:33:33 +01:00
Hans-Christoph Steiner
31fe8343ad fix RO translation's formats, based on lint warning
Inconsistent formatting types for argument #1 in format string
searchres_napps ('%s'): Found both 'd' and 's' (in values/strings.xml)

This lint check ensures the following: (1) If there are multiple
translations of the format string, then all translations use the same type
for the same numbered arguments (2) The usage of the format string in Java
consistent with the format string, meaning that the parameter types passed
to String.format matches those in the format string.

<string name="searchres_napps">Sa gasit o aplicatie potrivita cu %s\'</string>
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2014-03-10 17:32:06 +01:00
Peter Serwylo
ef17cc3489 Merge branch 'fix/update-notify-count' 2014-03-06 23:31:33 +11:00
Peter Serwylo
9fd8da42a1 Adding test coverage for "AppProvider.Helper.findIgnored()"
Also added tests for canAndWantToUpdate() while I was at it.
2014-03-06 23:31:26 +11:00
Peter Serwylo
81fcd44b66 Fixed update notification count
The update notification was not taking ignored apps into account.
This is the first manifestation of a class of bug I feared whereby
the properties of an App object are not initialized, but no error
is thrown. It occured because we were iterating over apps that were
created from the index file, rather than our database. Hence, they
had no knowledge about whether they should be ignored or not.

Also took the chance to perform a minor refactor of UpdateService
class. The onHandleIntent method was getting huge, so I extracted
two methods: verifyIsTimeForScheduledRun() and
performUpdateNotification(), as well as removing the unused "success"
flag.

The two methods should theoretically make the class more testable
later, as we can test the scheduled run code, and the update notification
code in separate tests, but we'll wait and see if that eventuates.
2014-03-06 23:31:26 +11:00
Daniel Martí
68f266d6be Remove silly values-qqq 2014-03-05 23:12:55 +01:00
Daniel Martí
91363bf753 Re-run fix-ellipsis 2014-03-05 22:58:58 +01:00
Daniel Martí
f7051a3f50 Run remove-unused-trans again 2014-03-05 22:58:38 +01:00
F-Droid Translatebot
bf040a73fa Translation updates 2014-03-05 21:44:48 +00:00
Daniel Martí
d647bfb097 Release 0.60-test 0.60-test 2014-02-28 00:37:34 +01:00
Peter Serwylo
aa9bfefd55 Fixed bug with only one apk being added from index for each app. 2014-02-28 10:32:32 +11:00
Peter Serwylo
7d985f137f Merge branch 'fix/manage-repos-crash-on-up' 2014-02-27 23:44:35 +11:00
Peter Serwylo
4004b6251f Fixed issue 474 - crash on "Up" button from ManageRepos.
Not sure that the "parent" activity of ManageRepos is required in
the manifest any more, due to the fact that the main use seems
to be to direct the "NavUtils.navigateUpSameTask" method uses it,
but this change switches to "NavUtils.navigateUpTo" and specifies
the activity explicitly.
2014-02-27 22:56:16 +11:00
Daniel Martí
7111f54c9b Update submodules 2014-02-27 11:32:20 +01:00
Peter Serwylo
141f133c7a Merge branch 'fix/count-apps-in-repo' 2014-02-24 11:06:57 +11:00
Peter Serwylo
45d046b445 Fix unique key violation in update service.
When two repos both add an apk with same version and id, then
it would break.
2014-02-24 11:01:56 +11:00
Peter Serwylo
87f2da7e2f Fix 'Number of apps' sql exception in repo details. 2014-02-24 10:45:25 +11:00
Peter Serwylo
568224ba78 s/curVersion/upstreamVersion/g, added suggestedVersion. Refactored QueryBuilder.
In order to support suggested version, I didn't want to have both
suggested version + versionCode in the App table. Rather, just the
code, and then use that (and the apps id) to join onto the apk table.
This is something we wanted to do elsewhere, so I refactored the
QueryBuilder class from the ApkProvider so that it can also be used
by the AppProvider.
db-version/41
2014-02-24 10:45:13 +11:00
Daniel Martí
955c2f5f6c Bump build-tools to 19.0.2 2014-02-23 12:22:04 +01:00
Daniel Martí
31aa3fcf30 Make titles and subtitles align properly in RTL
This is just a cosmetic fix to make the RTL layout look like the normal LTR
one. It is, effectively, making non-RTL text be aligned to the right. I
suppose that's fine, for the sake of making it readable since we don't want it
aligned to the left, breaking the layout.
2014-02-21 00:32:17 +01:00
Daniel Martí
8b823cdf59 Update changelog 2014-02-21 00:21:17 +01:00
Daniel Martí
f5c4018fee Merge branch 'rtl-layout' 2014-02-21 00:19:57 +01:00
Daniel Martí
57b2bc431e Merge branch 'rtl-layout' of gitorious.org:f-droid/fdroidclient into rtl-layout 2014-02-21 00:13:14 +01:00
Daniel Martí
2a03c51207 Use LayoutCompat in RepoAdapter 2014-02-21 00:11:58 +01:00
Daniel Martí
5d0074d821 Add ALIGN_PARENT_* to LayoutCompat.RelativeLayout 2014-02-21 00:11:58 +01:00
Daniel Martí
0fba2c255e Add START_OF to LayoutCompat.RelativeLayout 2014-02-21 00:11:58 +01:00
Daniel Martí
66563d30d9 First attempt at supporting RTL
Following the Android 4.2 changes, which explain how to add native support for
RTL, I've replaced Right for End and Left for Start. Enabling RTL to see the
results.
2014-02-21 00:11:58 +01:00
Daniel Martí
a3024bc837 Don't crash RepoDetailsFragment if nfc is not available 2014-02-21 00:10:52 +01:00
Daniel Martí
16c34a95d3 First attempt at supporting RTL
Following the Android 4.2 changes, which explain how to add native support for
RTL, I've replaced Right for End and Left for Start. Enabling RTL to see the
results.
2014-02-20 14:15:50 +01:00
Daniel Martí
44bb904ab0 Remove obsolete dbSyncModeValues array 2014-02-20 13:57:59 +01:00
Daniel Martí
93ea5ea9fb Try to get grade working again
Now it fails because it thinks that ":extern" is a subproject
2014-02-20 09:55:54 +01:00
Daniel Martí
28d5456e72 Update submodules 2014-02-20 09:32:43 +01:00
Daniel Martí
2c9d8ab7fc Merge commit 'refs/merge-requests/66' of gitorious.org:f-droid/fdroidclient
Conflicts:
	test/src/org/fdroid/fdroid/ApkProviderTest.java
2014-02-20 08:00:12 +01:00
Peter Serwylo
2dcd87cd41 Almost 100% test coverage of ApkProvider and ApkProvider.Helper
Removed unused code from ApkProvider.Helper, made it throw proper
exceptions when trying unsupported operations. Refactored tests
a little bit to facilitate separate test cases for the provider
and its helper.
2014-02-20 16:13:37 +11:00
Peter Serwylo
51a2159559 Removed maxage issue from TODO 2014-02-20 16:01:27 +11:00
Peter Serwylo
3240faf7f2 Fix "duplicate column: maxage" (issue #445)
The bug is explained in detail in the issue tracker.
This change added guard condition to check for existence of the field
before adding.

While I was at it, I also guarded a bunch of other ALTER statements
with the if (!columnExists()) check. It turns out that many of them
break, but we only saw the first one because it threw an exception
before getting to the others.
2014-02-20 15:55:29 +11:00
Hans-Christoph Steiner
576208d3aa Exception subclasses are supposed to have a serial number
This warning in Eclipse tells me so:

"The serializable class UpdateException does not declare a static final
serialVersionUID field of type long"
2014-02-19 20:11:30 -05:00
Hans-Christoph Steiner
27874b3a9e parameterize CategoryObserver.adapter
Helps Java do its error checking... and gets rid of a few warnings...
2014-02-19 20:06:17 -05:00
Hans-Christoph Steiner
dd3562c00f remove unnecessary cast
This is pretty cosmetic, but Eclipse did it for me, so why not? :-)
2014-02-19 20:06:17 -05:00