1593 Commits

Author SHA1 Message Date
Hans-Christoph Steiner
b5f7c0a481 preference for the "name" of the local repo
This name is used in the RepoList, the local repo website title, the
Bonjour broadcast, etc.  By default, a name is generated using the make and
model of the phone plus a random number.
2014-05-20 18:44:47 -04:00
Hans-Christoph Steiner
248cefe1f3 fix notification launching LocalRepoActivity
It was not working on my Nexus 7 running stock 4.4.2.  This seems to be the
recommend fix:
https://code.google.com/p/android/issues/detail?id=61850
2014-05-20 18:44:47 -04:00
Hans-Christoph Steiner
d25a395936 broadcast local repo via Bonjour/mDNS to enable auto-discovery
This adds support for registering the local repo with Bonjour/mDNS so that
it is broadcast out to all devices on the local network.  This makes it
easy to discover and add local repos on the same wifi.

refs #2900 https://dev.guardianproject.info/issues/2900
2014-05-20 18:37:45 -04:00
Hans-Christoph Steiner
7ca966be05 in local repo, make relative links to the index.html page
This should make the local repo files portable, like if the app gets
moved to the SD card or things like that.
2014-05-20 18:37:44 -04:00
Hans-Christoph Steiner
54283b71fd add jmdns submodule to Eclipse config
So those of us stuck in Eclipse can built FDroid :)
2014-05-20 18:37:44 -04:00
Daniel Martí
29048a0c60 Include spongycastle 2014-05-20 19:12:29 +02:00
Daniel Martí
dd60f5cd3b Re-add nanohttpd, from upstream this time 2014-05-20 18:54:06 +02:00
Daniel Martí
b7feebddf9 Also use jmdns like a java library in ant 2014-05-20 18:52:19 +02:00
Daniel Martí
0f98042520 Remove broken support for repo and Android.mk
* The repo instructions are just a duplicate of the simple git submodules
* The Android.mk build instructions don't work and will never support what
  e.g. gradle does

Anyone wanting to bundle F-Droid in a ROM can build it with git and gradle,
and then including the resulting apk.
2014-05-20 18:39:26 +02:00
Daniel Martí
67c7c9b8b5 Don't try to use nanohttpd as an android library either 2014-05-20 18:37:20 +02:00
Daniel Martí
319e1faf3b Add zipsigner as a submodule 2014-05-20 18:22:24 +02:00
Daniel Martí
4d44f3fce8 Build support-v4 from source with gradle
v7-appcompat can be enabled/used in gradle by changing :support-v4 with
:support-appcompat-v7 in build.gradle and bumping minSdk from 5 to 7
2014-05-19 11:56:45 +02:00
Daniel Martí
9d6cabe737 Update nanohttpd 2014-05-19 08:49:56 +02:00
Daniel Martí
cdbbb9d580 Add jmdns as a submodule 2014-05-18 14:04:07 +02:00
Daniel Martí
aa52516a41 Forgot to rollback the ant-prepare nanohttp path 2014-05-18 13:44:44 +02:00
Daniel Martí
b3107eb6b2 Fix gradle support while keeping ant support
Most of this was done by pserwylo on his branch feature/gradle. The only thing
left is merging the fixes into nanohttpd.
2014-05-18 12:55:30 +02:00
Daniel Martí
d68b959856 Update UIL 2014-05-18 12:33:42 +02:00
Daniel Martí
a8f9483684 Merge branch 'master' into 'master'
UI bug fixes

This fixes a couple of crasher issues with the UI. And also a small change to allow Eclipse to find the reference files for Android Support.
2014-05-15 21:11:19 +00:00
Hans-Christoph Steiner
c819d56f18 add link to SDK references for android-support jar
I tried lots of things to make it more general, but the implementation of
this jar properties file is just too simple, so no variables can be used.

I renamed the other files related to android-support to match the naming
scheme.
2014-05-15 14:32:16 -04:00
Hans-Christoph Steiner
8a6204205f store "Add Repo" AlertDialog to prevent crash on rotation
When the "Add Repo" dialog was showing and the screen was rotated, it would
first leak the AlertDialog because it was not dismissed, then it would
crash after rotation, because the AlertDialog was trying to be restored but
no longer existed.  That's what I think was happening at least... the
solution surprised me a bit here...
2014-05-15 11:46:17 -04:00
Hans-Christoph Steiner
09cbd036fa make new instances of LocalRepoActivity show state properly
LocalRepoActivity needs to get the current state of the LocalRepoService so
it can correctly represent it in the UI.

fixes #25 https://gitlab.com/fdroid/fdroidclient/issues/25
2014-05-15 09:37:37 -04:00
Hans-Christoph Steiner
776ad3f540 use only android-14 items in SelectLocalApps until appcompat-v7 is added
Set android-14 as minimum for SelectLocalApps and make sure that everything
will work on >= 14.

fixes #26 https://gitlab.com/fdroid/fdroidclient/issues/26
2014-05-15 09:37:37 -04:00
Daniel Martí
c7e1d4af7e Switch AP to our gitlab mirror
gitlab.doeg.gy has been down for a while
0.68-test
2014-05-14 18:56:03 +02:00
Daniel Martí
4f51970250 Prepare for 0.68-test 2014-05-12 19:17:35 +02:00
Daniel Martí
3c9d7b67cc Merge branch 'super-fdroid' 2014-05-12 19:15:28 +02:00
Dominik Schürmann
acd3137cbc Make prefs coherent, rename them, and rename SystemPermissionInstaller to SystemInstaller 2014-05-12 18:59:03 +02:00
Dominik Schürmann
1491f7318f Merge branch 'master' into super-fdroid 2014-05-12 13:01:53 +02:00
Dominik Schürmann
2bd686dfe8 Add preference to opt-out of SystemPermissionInstaller 2014-05-12 12:55:17 +02:00
Dominik Schürmann
c65a25524c Log errors 2014-05-12 11:45:26 +02:00
Dominik Schürmann
63b0bbd120 Move root access preference down into other category 2014-05-12 11:40:25 +02:00
Dominik Schürmann
54ce7a07a6 Cleanup for getActivityInstaller 2014-05-12 11:31:25 +02:00
Dominik Schürmann
91ddc838a7 More cleanup in installer classes 2014-05-11 11:16:26 +02:00
Dominik Schürmann
aeae0bcec3 Code/doc cleanup 2014-05-11 11:13:16 +02:00
Daniel Martí
e82690f324 Do not make the Local Repo activity a launcher icon 2014-05-11 10:45:34 +02:00
Dominik Schürmann
6710e9a4b9 dont show update all button for now... 2014-05-11 02:31:53 +02:00
Dominik Schürmann
6419915d5a Strings for error dialog, cleanup 2014-05-11 02:25:50 +02:00
Dominik Schürmann
df696ed81e Installer: define all methods as abstract that need to be implemented in subclasses 2014-05-11 02:13:27 +02:00
Dominik Schürmann
04577d213c Use ContentObserver to observe install status 2014-05-11 01:38:17 +02:00
Dominik Schürmann
919f9c63b8 Merge master into super-fdroid 2014-05-11 00:38:53 +02:00
Dominik Schürmann
d250ac727b Cleanup installer code 2014-05-11 00:36:54 +02:00
Dominik Schürmann
e1d9e0f3b1 Document installer callback hack 2014-05-11 00:26:31 +02:00
Dominik Schürmann
c48dcdc785 Change callback 2014-05-11 00:03:26 +02:00
Dominik Schürmann
0887da72ed Add default installer for Android >= 4.0 2014-05-10 19:46:46 +02:00
Daniel Martí
6a4b323d06 Prepare for 0.67-test 0.67-test 2014-05-08 13:23:20 +02:00
Daniel Martí
96c3af5485 Add missing RTL/LTR layout attributes 2014-05-08 13:16:21 +02:00
Daniel Martí
295ef8f02a Merge branch 'swap_ux_improvements' of https://gitlab.com/eighthave/fdroidclient 2014-05-08 12:53:04 +02:00
Hans-Christoph Steiner
0a8d08aac8 ensure that "Update Repo" is always shown in the Action Mode
Otherwise, it gets confusing what is the action the user should do. Perhaps
the Action Mode "Done" button should always trigger the "Update Repo"
action, right now it means do nothing and return.
2014-05-08 01:12:41 -04:00
Hans-Christoph Steiner
efacc22c10 include app icons in the SelectLocalApps view
Since we have the packageName, we can just fetch the Drawables directly.
This uses some shortcuts to try to make things run faster.  For example,
the ImageView does not have an ID, instead it is references by the index
number within the LinearLayout.
2014-05-08 00:58:42 -04:00
Hans-Christoph Steiner
107eab5eac Local Repo webserver turns itself off if it was automatically started
When you visit LocalRepoActivity, the swapping webserver is automatically
turned on, since it is required for any swapping to happen.  When it was
automatically turned on, it will automatically turn itself off after 15
minutes to make sure that it doesn't stay running forever.  If the user
manually turns it off, that cancels the automatic stop.
2014-05-08 00:58:42 -04:00
Hans-Christoph Steiner
16399b760b start the local repo webserver by default when going to LocalRepoActivity
To make it dead simple to swap repos when going to the Local Repos screen.
2014-05-08 00:58:42 -04:00