From ff5d2b571fa3963da2440c6f7d2536e0acb7c1dc Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 3 Jun 2014 14:55:42 -0400 Subject: [PATCH 1/2] include script for jenkins to run for setting up the ant build Jenkins will then call ant directly after running this script. This then sets the debug builds made by Jenkins to have a versionCode of the UNIX time in seconds and adds the data to the versionName. This clearly marks these as debug builds and also makes it possible to have an fdroid repo of debug builds that will automatically update after each build. --- jenkins-build | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 jenkins-build diff --git a/jenkins-build b/jenkins-build new file mode 100755 index 000000000..244766226 --- /dev/null +++ b/jenkins-build @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Jenkins uses this script to set up the ant build. Jenkins will then call +# ant itself once this script has completed. + +set -e +set -x + +# reset version code/name to current date +versionCodeDate=`date +%s` +versionNameDate=`date +%Y-%m-%d_%H.%M.%S` + +sed -i \ + -e "s,android:versionCode=\"[0-9][0-9]*\",android:versionCode=\"$versionCodeDate\"," \ + -e "s,android:versionName=\"\([^\"][^\"]*\)\",android:versionName=\"\1.$versionNameDate\"," \ + AndroidManifest.xml + +. ~/.android/bashrc +./ant-prepare.sh From b7f0195234713cd22851e0100500ad7cec6184e8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 28 May 2014 19:55:47 -0400 Subject: [PATCH 2/2] add "HTTP Proxy" preference to support Tor, I2P, or any other proxy This is the most basic support for channeling all downloads through Tor or I2P. This does not include Orbot integration, so the use will have to know to start Orbot before using this. I don't know anything about I2P. closes #2367 https://dev.guardianproject.info/issues/2367 https://f-droid.org/repository/issues/?do=view_issue&issue=404 https://f-droid.org/repository/issues/?do=view_issue&issue=424 --- CHANGELOG.md | 2 ++ res/values/strings.xml | 8 +++++ res/xml/preferences.xml | 15 ++++++++ src/org/fdroid/fdroid/Preferences.java | 32 +++++++++++++++-- src/org/fdroid/fdroid/net/HttpDownloader.java | 14 +++++++- .../views/fragments/PreferenceFragment.java | 36 ++++++++++++++++++- 6 files changed, 103 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3943d2260..e3d179ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ * use FDroid repos on Tor Hidden Services (.onion addresses) +* support for a HTTP Proxy in Preferences + * directly send installed apps to other devices via Bluetooth and Android Beam (NFC+Bluetooth), also compatible with Samsung/HTC S-Beam diff --git a/res/values/strings.xml b/res/values/strings.xml index f523a3cb5..9e7772e52 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -197,6 +197,14 @@ Scan this QR Code to connect to the website for getting started. Send FDroid via WiFi… + Proxy + Enable HTTP Proxy + Configure HTTP Proxy for all network requests + Proxy Host + Configure your proxy\'s hostname (e.g. 127.0.0.1) + Proxy Port + Configure your proxy\'s port number (e.g. 8118) +