Commit Graph

9269 Commits

Author SHA1 Message Date
Peter Serwylo 85f3232de0 Started implementing ApkProvider tests.
Refactored a couple of common things from AppProviderTest to either
FDroidProviderTest (baseclass) or TestUtils (static methods) where
relevant.
2014-02-18 02:52:02 +11:00
Daniel Martí 799be52224 Fix regression: Don't count apps which we don't want to update 2014-02-17 16:09:57 +01:00
Daniel Martí b222887745 Start TODO to be emptied before the upcoming stable release 2014-02-17 10:42:19 +01:00
Daniel Martí 8473627370 Update changelog with my recent changes 2014-02-17 10:34:28 +01:00
Peter Serwylo 43f8ea0814 Added category tests.
This will be useful when somebody wants to move categories from a comma
separated string in the app table, to a separate table all together.
2014-02-16 21:54:50 +11:00
Daniel Martí 41b5797307 Automatic tab fixing 2014-02-16 02:48:22 +01:00
Daniel Martí feec3b1c51 Make all the gradle libs use the same latest build-tools version
This makes it completely build from source properly on a standard setup
2014-02-15 12:31:15 +01:00
Daniel Martí 901545d404 Don't recreate main activity when returning to it
Huge improvements! Amongst them:
* Pressing Up is just as fast as pressing Back
* Like Back, it keeps the scroll position and everything
* Now FDroid behaves like the other activities that an user may navigate up to
2014-02-15 11:49:29 +01:00
Daniel Martí 4e26c77327 Don't crash on startup if NFC is not available 2014-02-15 11:23:30 +01:00
Daniel Martí 6b2b759a16 Whoops, forgot to also change the ant setup 2014-02-15 11:18:58 +01:00
Hans-Christoph Steiner 3a1b814603 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-02-14 23:17:48 -05:00
Hans-Christoph Steiner 739ecfdea3 commit Eclipse project files to make it easier for others to start
Having the pre-configured Eclipse files in git will make it easier for
other people to work with FDroid in Eclipse, and should not affect anything
else. The key files are .classpath and .project.  The .settings/ folder is
for user-specific settings, so its ignored.
2014-02-14 23:07:49 -05:00
Hans-Christoph Steiner 6d111c6e7d document NFC/Bluetooth send methods in CHANGELOG 2014-02-14 22:45:48 -05:00
Hans-Christoph Steiner c0cd0d33bf send the FDroid.apk via bluetooth on devices that support it
This is another easy method to send FDroid to a device that doesn't have it
yet.  Unfortunately, stock Android blocks the receiving of APKs, but many
ROMs and even some Samsung devices do not have this block.

You can find the lengthy backstory on this work here:
https://dev.guardianproject.info/issues/2084
2014-02-14 22:45:48 -05:00
Hans-Christoph Steiner 0c06b67f3d do not require WiFi in a device, any internet access will work
Setting android.permission.ACCESS_WIFI_STATE automatically sets up
uses-feature to require wifi.  Therefore, we have to manually say that
wifi is not actually required.
2014-02-14 22:45:48 -05:00
Daniel Martí b709f9e17a Update AndroidPinning 2014-02-14 21:26:04 +01:00
Daniel Martí 1e9c6ccf2e Finally give up on UIL and set up the gradle project ourselves 2014-02-14 12:17:07 +01:00
Daniel Martí fffae79c24 Add MemorizingTrustManager as gradle library too 2014-02-14 10:51:30 +01:00
Daniel Martí 967174b549 Finally get UIL working as a gradle library
The problem were the dashes in the path 'extern/Universal-Image-Loader'
2014-02-14 10:34:36 +01:00
Daniel Martí c99cf93c8b Test projects can't have --name it seems 2014-02-14 09:18:21 +01:00
Daniel Martí cf1519f792 Add eclipse files to gitignore 2014-02-14 09:16:18 +01:00
Daniel Martí 51a02fe40f Update libraries 2014-02-14 09:12:52 +01:00
Daniel Martí 97e3bac98e Bump gradle plugin to 0.8 (gradle 1.10) 2014-02-14 09:10:58 +01:00
Ciaran Gultnieks f60ce3f56c Merge branch 'merge-requests/61' 2014-02-14 06:30:48 +00:00
Hans-Christoph Steiner cdad2c66ed add instructions for running the embedded Android Test Project 2014-02-13 23:28:31 -05:00
Hans-Christoph Steiner 9871ad0f01 ant-prepare.sh: also set up test suite, should not affect normal ant builds
This adds the command to update the embedded Android Test Project, so that
it can be run using `cd test/; ant clean emma debug install test`

It also changes -p to --path just to make things a little easier to read.
2014-02-13 21:53:52 -05:00
Hans-Christoph Steiner 113ae202b7 include Eclipse project for the embedded Android Test Project
This should make it easier for some people get started with the tests.
2014-02-13 21:51:29 -05:00
Hans-Christoph Steiner 9c9c0a4819 setup main FDroid screen to NFC Beam the FDroid.apk
This pre-configures a file:// URI that points to the installed location of
the FDroid.apk.  When users put two devices together, and touch the screen
on the device with FDroid on it, it will "beam" over the APK, and prompt
the user to install it.
2014-02-12 21:19:19 -05:00
Hans-Christoph Steiner ceed2c31d7 prevent crash when using back button after screen rotate
To reproduce the crash:
0. click a fdroidrepo:// URI to bring up the "app repo" dialog
1. rotate the device
2. click back to make the keyboard go away
3. click back to make the dialog go away
4. click back on Manage Repos screen
5. boom!
2014-02-12 21:19:19 -05:00
Hans-Christoph Steiner ba8de64686 split out RepoListFragment from ManageRepo, Fragments need to be public
Otherwise we get errors like this upon rotation:

"android.support.v4.app.Fragment$InstantiationException: Unable to
instantiate fragment org.fdroid.fdroid.RepoListFragment: make sure class
name exists, is public, and has an empty constructor that is public"
2014-02-12 21:19:19 -05:00
Hans-Christoph Steiner ea7f82ed1a add menu item to enable NFC to RepoDetails view
It is now possible to beam a repo config via NFC but just selecting the
repo in FDroid, then touching two NFC devices together, and clicking on the
FDroid one.  There is no indication that NFC is off, so this commit adds a
menu item that makes it easy to enable the required NFC settings for
sending a repo to another device via NFC.
2014-02-12 21:19:19 -05:00
Hans-Christoph Steiner 4489037619 NFC beam the repo in RepoDetailsActivity
This is the framework for easily swapping repos.  The idea is that a user
can send the URL with the fingerprint for trusted bootstrapping of the repo
on a new user's device.  This will be essential for p2p repos provided
by Bazaar/Kerplapp.

The required NFC APIs were introduced in android-14. So android-14 and below
skip the NFC stuff.
2014-02-12 21:19:19 -05:00
Hans-Christoph Steiner 220b3d1441 ensure repo fingerprints are always stored in all upper case
this makes sure that the repo fingerprints are always going to have the
same case, no matter how they were added.  Repo.fingerprint probably should
be converted to a BigInteger so that the comparison can be numeric rather
than String.  Then when the fingerprint needs to be displayed, it can be
formatted appropriately.
2014-02-12 21:19:19 -05:00
Hans-Christoph Steiner fc511fd94f use https for fdroid.org everywhere, avoid redirects 2014-02-12 21:19:19 -05:00
Hans-Christoph Steiner ae10cd0db4 save/restore current category in Available view
This saves the currently selected category in the Available apps view, and
restores that category when the user returns to the Available screen. It
drives me totally nuts that it always forgets the category when I nav away
from that screen, always returning to What's New.
2014-02-12 21:19:19 -05:00
Daniel Martí 2f6a812fdc Fix db rewrite regression, filtering pref used the wrong way 2014-02-12 20:53:26 +01:00
Daniel Martí a3b316c4a8 Fix a couple regressions 2014-02-12 20:46:32 +01:00
Daniel Martí 4c58514152 Apply similar layout improvement to app list elements 2014-02-12 20:23:19 +01:00
Daniel Martí f35528cd78 Fix remaining issues related to vertical length and centering 2014-02-12 20:15:43 +01:00
Daniel Martí 9bd236d66c Some much needed fixes to appdetails headers
* If the info is taller than the icon, grow larger to fit it in
* Center icon vertically
* Move padding out of the header
* Revert some font sizes to how they were some time ago, a bit smaller
2014-02-12 19:30:26 +01:00
Daniel Martí 9b2e5c2426 Don't let AppDetails header textviews overflow 2014-02-12 19:10:47 +01:00
Daniel Martí 81359f929e Place top categories in the original order 2014-02-11 09:06:36 +01:00
Peter Serwylo 1083f57ec1 Case insensitive sort of app list, if sorting by name. 2014-02-11 10:19:32 +11:00
Peter Serwylo 7ca6db9555 Added ArrayAdapterCompat so addAll doesn't need to be wrapped in a guard condition. 2014-02-11 10:12:29 +11:00
Peter Serwylo ef784dffa8 Update categories list after app list update. 2014-02-11 09:02:03 +11:00
Peter Serwylo e4d106a298 Fixed incorrect size of category spinner. 2014-02-11 08:30:36 +11:00
Daniel Martí 9ec0a9060c Add .fdmeta for testing reasons 2014-02-10 11:13:44 +01:00
Daniel Martí 52dc6f8977 Update README with new translation info 2014-02-10 09:37:03 +01:00
Daniel Martí 6da00f84cb Fix proguard use in gradle 2014-02-10 09:30:08 +01:00
Daniel Martí 34cdacc303 Run remove-unused-trans again 2014-02-10 09:23:40 +01:00