diff --git a/.gitmodules b/.gitmodules index ca1aa6458..c242b4487 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,12 @@ [submodule "extern/Universal-Image-Loader"] path = extern/Universal-Image-Loader url = https://github.com/nostra13/Android-Universal-Image-Loader - ignore = dirty + ignore = dirty +[submodule "extern/MemorizingTrustManager"] + path = extern/MemorizingTrustManager + url = https://github.com/ge0rg/MemorizingTrustManager.git + ignore = dirty +[submodule "extern/AndroidPinning"] + path = extern/AndroidPinning + url = https://github.com/binaryparadox/AndroidPinning.git + ignore = dirty diff --git a/AndroidManifest.xml b/AndroidManifest.xml index f5e374bde..2a7bffbba 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -112,6 +112,10 @@ + + + + + diff --git a/README.md b/README.md index 718c54b73..35ddb7e05 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,7 @@ The only required tools are the Android SDK and Apache Ant. ``` git submodule update --init -android update project -p . -android update project -p extern/Universal-Image-Loader/library +./ant-prepare.sh # This runs 'android update' on the libs and the main project ant clean release ``` diff --git a/ant-prepare.sh b/ant-prepare.sh new file mode 100755 index 000000000..7de7d1df7 --- /dev/null +++ b/ant-prepare.sh @@ -0,0 +1,6 @@ +#!/bin/bash -ex + +android update lib-project -p extern/Universal-Image-Loader/library +android update lib-project -p extern/AndroidPinning -t android-17 +android update lib-project -p extern/MemorizingTrustManager +android update project -p . --name F-Droid diff --git a/ant.properties b/ant.properties new file mode 100644 index 000000000..54f6fd670 --- /dev/null +++ b/ant.properties @@ -0,0 +1 @@ +java.encoding=UTF-8 diff --git a/build.gradle b/build.gradle index 164057946..a64f6146c 100644 --- a/build.gradle +++ b/build.gradle @@ -38,4 +38,8 @@ android { proguardFile getDefaultProguardFile('proguard-android.txt') } } + + tasks.withType(Compile) { + options.encoding = "UTF-8" + } } diff --git a/extern/AndroidPinning b/extern/AndroidPinning new file mode 160000 index 000000000..526654e1b --- /dev/null +++ b/extern/AndroidPinning @@ -0,0 +1 @@ +Subproject commit 526654e1b9997b32e513d58d9094d4c1102a6cb3 diff --git a/extern/MemorizingTrustManager b/extern/MemorizingTrustManager new file mode 160000 index 000000000..49452f67a --- /dev/null +++ b/extern/MemorizingTrustManager @@ -0,0 +1 @@ +Subproject commit 49452f67a760dfef77ddaa7e0b7d88c713c4a195 diff --git a/lint.xml b/lint.xml new file mode 100644 index 000000000..6401ff7f9 --- /dev/null +++ b/lint.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/project.properties b/project.properties index 9d03d0bbe..6da907dd2 100644 --- a/project.properties +++ b/project.properties @@ -3,3 +3,5 @@ proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project. target=android-19 android.library.reference.1=extern/Universal-Image-Loader/library +android.library.reference.2=extern/MemorizingTrustManager +android.library.reference.3=extern/AndroidPinning diff --git a/res/drawable/btn_check_off.png b/res/drawable/btn_check_off.png deleted file mode 100644 index ce0d4aac9..000000000 Binary files a/res/drawable/btn_check_off.png and /dev/null differ diff --git a/res/drawable/btn_check_on.png b/res/drawable/btn_check_on.png deleted file mode 100644 index 270263b5b..000000000 Binary files a/res/drawable/btn_check_on.png and /dev/null differ diff --git a/res/layout/addrepo.xml b/res/layout/addrepo.xml index 0638049ee..667bf02fa 100644 --- a/res/layout/addrepo.xml +++ b/res/layout/addrepo.xml @@ -2,7 +2,8 @@ + android:orientation="vertical" + android:padding="6dp"> + android:text="@string/https" /> + + + + + + + + + + diff --git a/res/layout/repodetails.xml b/res/layout/repodetails.xml new file mode 100644 index 000000000..ad06cdc07 --- /dev/null +++ b/res/layout/repodetails.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +