Merge branch 'master' into development

This commit is contained in:
Dominik Schürmann
2014-12-04 19:43:41 +01:00
15 changed files with 51 additions and 52 deletions

View File

@@ -1,14 +1,11 @@
buildscript { buildscript {
repositories { repositories {
mavenCentral() jcenter()
// need this for com.novoda:gradle-android-test-plugin:0.9.9-SNAPSHOT below (0.9.3 in repos doesn't work!)
// run ./install-custom-gradle-test-plugin.sh to pull the thing into the local repository
mavenLocal()
} }
dependencies { dependencies {
// NOTE: Always use fixed version codes not dynamic ones, e.g. 0.7.3 instead of 0.7.+, see README for more information // NOTE: Always use fixed version codes not dynamic ones, e.g. 0.7.3 instead of 0.7.+, see README for more information
classpath 'com.novoda:gradle-android-test-plugin:0.9.9-SNAPSHOT' classpath 'com.novoda:gradle-android-test-plugin:0.10.0'
} }
} }
@@ -50,28 +47,30 @@ android {
projectUnderTest ':OpenKeychain' projectUnderTest ':OpenKeychain'
} }
jacoco { //jacoco {
toolVersion = "0.7.0.201403182114" // //toolVersion = "0.7.0.201403182114"
} // toolVersion = "0.7.2.201409121644"
//}
//
//
//coverageSourceDirs = [
// '../OpenKeychain/src/main/java',
// '../OpenKeychain/src/gen',
// '../OpenKeychain/build/source/apt/debug',
// '../OpenKeychain/build/source/generated/buildConfig/debug',
// '../OpenKeychain/build/source/generated/r/debug'
// ]
coverageSourceDirs = [ //jacocoTestReport {
'../OpenKeychain/src/main/java', // reports {
'../OpenKeychain/src/gen', // xml.enabled = true
'../OpenKeychain/build/source/apt/debug', // html.destination "${buildDir}/jacocoHtml"
'../OpenKeychain/build/source/generated/buildConfig/debug', // }
'../OpenKeychain/build/source/generated/r/debug' // // class R is used, but usage will not be covered, so ignore this class from report
] // classDirectories = fileTree(dir: '../OpenKeychain/build/intermediates/classes/debug/org/sufficientlysecure/keychain', exclude: [ 'R*.class' ])
// additionalSourceDirs = files(coverageSourceDirs)
jacocoTestReport { // executionData = files('build/jacoco/testDebug.exec')
reports { //}
xml.enabled = true
html.destination "${buildDir}/jacocoHtml"
}
// class R is used, but usage will not be covered, so ignore this class from report
classDirectories = fileTree(dir: '../OpenKeychain/build/intermediates/classes/debug/org/sufficientlysecure/keychain', exclude: [ 'R*.class' ])
additionalSourceDirs = files(coverageSourceDirs)
executionData = files('build/jacoco/testDebug.exec')
}
// new workaround to force add custom output dirs for android studio // new workaround to force add custom output dirs for android studio
task addTest { task addTest {

View File

@@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="org.sufficientlysecure.keychain" package="org.sufficientlysecure.keychain"
android:installLocation="auto" android:installLocation="auto"
android:versionCode="31200" android:versionCode="31201"
android:versionName="3.1.2"> android:versionName="3.2beta1">
<!-- <!--
General remarks General remarks
@@ -15,7 +15,7 @@
Association of file types to Keychain Association of file types to Keychain
===================================== =====================================
General remarks about file ending conventions: General remarks about file ending conventions:
- *.gpg for binary files - *.gpg for binary files
- *.asc for ascii armored files The actual content can be anything. - *.asc for ascii armored files The actual content can be anything.
The file ending only shows if it is binary or ascii encoded. The file ending only shows if it is binary or ascii encoded.

View File

@@ -5,7 +5,7 @@ buildscript {
dependencies { dependencies {
// NOTE: Always use fixed version codes not dynamic ones, e.g. 0.7.3 instead of 0.7.+, see README for more information // NOTE: Always use fixed version codes not dynamic ones, e.g. 0.7.3 instead of 0.7.+, see README for more information
classpath 'com.android.tools.build:gradle:0.12.2' classpath 'com.android.tools.build:gradle:1.0.0-rc3'
} }
} }
@@ -16,7 +16,7 @@ allprojects {
} }
task wrapper(type: Wrapper) { task wrapper(type: Wrapper) {
gradleVersion = '1.12' gradleVersion = '2.2.1'
} }
subprojects { subprojects {

2
extern/minidns vendored

Binary file not shown.

View File

@@ -1,6 +1,6 @@
#Mon Jun 09 22:04:23 CEST 2014 #Thu Dec 04 18:50:40 CET 2014
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-bin.zip

View File

@@ -10,16 +10,16 @@ if ! java -version 2>&1 | grep OpenJDK; then
return return
fi fi
tmpdir="$(mktemp -d)" #tmpdir="$(mktemp -d)"
( #(
cd "$tmpdir"; # cd "$tmpdir";
git clone https://github.com/nenick/gradle-android-test-plugin.git # git clone https://github.com/nenick/gradle-android-test-plugin.git
cd gradle-android-test-plugin # cd gradle-android-test-plugin
echo "rootProject.name = 'gradle-android-test-plugin-parent'" > settings.gradle # echo "rootProject.name = 'gradle-android-test-plugin-parent'" > settings.gradle
echo "include ':gradle-android-test-plugin'" >> settings.gradle # echo "include ':gradle-android-test-plugin'" >> settings.gradle
./gradlew :gradle-android-test-plugin:install # ./gradlew :gradle-android-test-plugin:install
) #)
rm -rf "$tmpdir" #rm -rf "$tmpdir"
echo -n "ok, adding tests to include list.. " echo -n "ok, adding tests to include list.. "
if grep OpenKeychain-Test settings.gradle >/dev/null ; then if grep OpenKeychain-Test settings.gradle >/dev/null ; then