From 4decdbf3e6135f1497b8300948e9727418293517 Mon Sep 17 00:00:00 2001 From: akwizgran Date: Tue, 2 Feb 2016 16:35:08 +0000 Subject: [PATCH] Giant whitespace-only indentation patch. --- briar-android/build.gradle | 156 ++++----- briar-android/proguard-rules.txt | 10 +- briar-android/res/drawable/bluetooth.xml | 46 +-- .../res/drawable/contact_connected.xml | 32 +- .../res/drawable/contact_disconnected.xml | 6 +- briar-android/res/drawable/ic_add_white.xml | 6 +- .../res/drawable/message_delivered.xml | 6 +- briar-android/res/drawable/message_sent.xml | 6 +- briar-android/res/drawable/message_stored.xml | 6 +- .../res/drawable/social_remove_person.xml | 6 +- .../res/drawable/social_send_now.xml | 6 +- briar-android/res/drawable/transport_bt.xml | 6 +- briar-android/res/drawable/transport_lan.xml | 8 +- briar-android/res/drawable/transport_tor.xml | 6 +- .../res/layout/activity_password.xml | 132 ++++---- .../res/layout/activity_startup_failure.xml | 38 +-- .../res/layout/briar_recycler_view.xml | 8 +- ...invitation_bluetooth_confirmation_code.xml | 218 ++++++------- .../invitation_bluetooth_invitation_code.xml | 192 +++++------ briar-android/res/layout/invitation_error.xml | 68 ++-- briar-android/res/layout/view_code_entry.xml | 28 +- briar-android/res/values-v14/styles.xml | 14 +- briar-android/res/values/color.xml | 40 +-- briar-android/res/values/strings.xml | 302 +++++++++--------- briar-android/res/values/styles.xml | 166 +++++----- .../identicons/AsymmetricIdenticon.java | 88 ++--- .../android/identicons/IdenticonBase.java | 192 +++++------ .../android/identicons/IdenticonDrawable.java | 138 ++++---- .../android/identicons/IdenticonView.java | 150 ++++----- .../identicons/SymmetricIdenticon.java | 104 +++--- briar-api/build.gradle | 24 +- .../api/event/MessagesSentEvent.java | 2 +- briar-core/build.gradle | 22 +- briar-desktop/build.gradle | 14 +- briar-tests/build.gradle | 40 +-- build.gradle | 14 +- 36 files changed, 1150 insertions(+), 1150 deletions(-) diff --git a/briar-android/build.gradle b/briar-android/build.gradle index 6be595b80..fd7393e4b 100644 --- a/briar-android/build.gradle +++ b/briar-android/build.gradle @@ -2,97 +2,97 @@ apply plugin: 'com.android.application' apply plugin: 'witness' repositories { - jcenter() + jcenter() } dependencies { - def supportVersion = '23.1.1' - compile project(':briar-api') - compile project(':briar-core') - compile fileTree(dir: 'libs', include: '*.jar') - compile "com.android.support:support-v4:$supportVersion" - compile("com.android.support:appcompat-v7:$supportVersion") { - exclude module: 'support-v4' - } - compile("com.android.support:preference-v7:$supportVersion") { - exclude module: 'support-v4' - } - compile("com.android.support:preference-v14:$supportVersion") { - exclude module: 'support-v4' - exclude module: 'preference-v7' - exclude module: 'recyclerview-v7' - } - compile("com.android.support:design:$supportVersion") { - exclude module: 'support-v4' - exclude module: 'recyclerview-v7' - } - compile "org.roboguice:roboguice:2.0" - compile "info.guardianproject.panic:panic:0.5" - compile "info.guardianproject.trustedintents:trustedintents:0.2" - compile "de.hdodenhof:circleimageview:2.0.0" + def supportVersion = '23.1.1' + compile project(':briar-api') + compile project(':briar-core') + compile fileTree(dir: 'libs', include: '*.jar') + compile "com.android.support:support-v4:$supportVersion" + compile("com.android.support:appcompat-v7:$supportVersion") { + exclude module: 'support-v4' + } + compile("com.android.support:preference-v7:$supportVersion") { + exclude module: 'support-v4' + } + compile("com.android.support:preference-v14:$supportVersion") { + exclude module: 'support-v4' + exclude module: 'preference-v7' + exclude module: 'recyclerview-v7' + } + compile("com.android.support:design:$supportVersion") { + exclude module: 'support-v4' + exclude module: 'recyclerview-v7' + } + compile "org.roboguice:roboguice:2.0" + compile "info.guardianproject.panic:panic:0.5" + compile "info.guardianproject.trustedintents:trustedintents:0.2" + compile "de.hdodenhof:circleimageview:2.0.0" } dependencyVerification { - verify = [ - 'com.android.support:support-v4:5c7dceb6c824089fe80f502e5206264048ef8bffa4e8ddeab180b81723e79b7f', - 'com.android.support:appcompat-v7:0a8762214382b7e8d4b989b4ac10b5c846b957d767ccb7bccbc6be5afa885a82', - 'com.android.support:preference-v7:4b6dabaa4400cbed885c7edc885aa6372468f48d628cc0d4a04b9ccd128ed324', - 'com.android.support:preference-v14:a69906c2b29b315ac3c1fdf01537a7557660a65b8ea1cf891baa8665e1197459', - 'com.android.support:design:41a9cd75ca78f25df5f573db7cedf8bb66beae00c330943923ba9f3e2051736d', - 'com.android.support:support-annotations:f347a35b9748a4103b39a6714a77e2100f488d623fd6268e259c177b200e9d82', - 'com.android.support:recyclerview-v7:7606373da0931a1e62588335465a0e390cd676c98117edab29220317495faefd', - 'org.roboguice:roboguice:c5302f2648170ee6015a0d18fe0fcc87e09e415a34aeae3566e8d1a9dbb53f28', - 'info.guardianproject.panic:panic:a7ed9439826db2e9901649892cf9afbe76f00991b768d8f4c26332d7c9406cb2', - 'info.guardianproject.trustedintents:trustedintents:6221456d8821a8d974c2acf86306900237cf6afaaa94a4c9c44e161350f80f3e', - ] + verify = [ + 'com.android.support:support-v4:5c7dceb6c824089fe80f502e5206264048ef8bffa4e8ddeab180b81723e79b7f', + 'com.android.support:appcompat-v7:0a8762214382b7e8d4b989b4ac10b5c846b957d767ccb7bccbc6be5afa885a82', + 'com.android.support:preference-v7:4b6dabaa4400cbed885c7edc885aa6372468f48d628cc0d4a04b9ccd128ed324', + 'com.android.support:preference-v14:a69906c2b29b315ac3c1fdf01537a7557660a65b8ea1cf891baa8665e1197459', + 'com.android.support:design:41a9cd75ca78f25df5f573db7cedf8bb66beae00c330943923ba9f3e2051736d', + 'com.android.support:support-annotations:f347a35b9748a4103b39a6714a77e2100f488d623fd6268e259c177b200e9d82', + 'com.android.support:recyclerview-v7:7606373da0931a1e62588335465a0e390cd676c98117edab29220317495faefd', + 'org.roboguice:roboguice:c5302f2648170ee6015a0d18fe0fcc87e09e415a34aeae3566e8d1a9dbb53f28', + 'info.guardianproject.panic:panic:a7ed9439826db2e9901649892cf9afbe76f00991b768d8f4c26332d7c9406cb2', + 'info.guardianproject.trustedintents:trustedintents:6221456d8821a8d974c2acf86306900237cf6afaaa94a4c9c44e161350f80f3e', + ] } android { - compileSdkVersion 23 - buildToolsVersion "23.0.2" + compileSdkVersion 23 + buildToolsVersion "23.0.2" - sourceSets { - main { - manifest.srcFile 'AndroidManifest.xml' - java.srcDirs = ['src'] - resources.srcDirs = ['src'] - aidl.srcDirs = ['src'] - renderscript.srcDirs = ['src'] - res.srcDirs = ['res'] - assets.srcDirs = ['assets'] - } + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + java.srcDirs = ['src'] + resources.srcDirs = ['src'] + aidl.srcDirs = ['src'] + renderscript.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + } - // Move the tests to tests/java, tests/res, etc... - instrumentTest.setRoot('tests') + // Move the tests to tests/java, tests/res, etc... + instrumentTest.setRoot('tests') - // Move the build types to build-types/ - // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... - // This moves them out of them default location under src//... which would - // conflict with src/ being used by the main source set. - // Adding new build types or product flavors should be accompanied - // by a similar customization. - debug.setRoot('build-types/debug') - release.setRoot('build-types/release') - } + // Move the build types to build-types/ + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... + // This moves them out of them default location under src//... which would + // conflict with src/ being used by the main source set. + // Adding new build types or product flavors should be accompanied + // by a similar customization. + debug.setRoot('build-types/debug') + release.setRoot('build-types/release') + } - buildTypes { - debug { - // Set this to true to run proguard in debug - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' - } - release { - minifyEnabled true - proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' - } - } + buildTypes { + debug { + // Set this to true to run proguard in debug + minifyEnabled true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + release { + minifyEnabled true + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' + } + } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_6 - targetCompatibility JavaVersion.VERSION_1_6 - } - lintOptions { - abortOnError false - } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_6 + targetCompatibility JavaVersion.VERSION_1_6 + } + lintOptions { + abortOnError false + } } diff --git a/briar-android/proguard-rules.txt b/briar-android/proguard-rules.txt index dcdd8c59a..1ee57c568 100644 --- a/briar-android/proguard-rules.txt +++ b/briar-android/proguard-rules.txt @@ -16,17 +16,17 @@ -keep public class com.android.vending.licensing.ILicensingService -keepclasseswithmembers class * { native ; } -keepclasseswithmembers class * { - public (android.content.Context, android.util.AttributeSet); + public (android.content.Context, android.util.AttributeSet); } -keepclasseswithmembers class * { - public (android.content.Context, android.util.AttributeSet, int); + public (android.content.Context, android.util.AttributeSet, int); } -keepclassmembers class * implements android.os.Parcelable { static android.os.Parcelable$Creator *; } -keepclassmembers class **.R$* { public static ; } -keepclasseswithmembernames class * { native ; } -keepclassmembers enum * { - public static **[] values(); - public static ** valueOf(java.lang.String); + public static **[] values(); + public static ** valueOf(java.lang.String); } -keepclassmembers class * extends android.app.Activity { public void *(android.view.View); @@ -37,7 +37,7 @@ } # Just in case Roboguice events are used -keepclassmembers class * { - void *(**On*Event); + void *(**On*Event); } -keep class org.h2.** { *; } diff --git a/briar-android/res/drawable/bluetooth.xml b/briar-android/res/drawable/bluetooth.xml index 613a79f16..a39bbc2a8 100644 --- a/briar-android/res/drawable/bluetooth.xml +++ b/briar-android/res/drawable/bluetooth.xml @@ -1,13 +1,13 @@  + android:width="499.24373dp" + android:height="175.49413dp" + android:viewportWidth="499.24373" + android:viewportHeight="175.49413"> - - - - - + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24" + android:alpha="0.56"> - - - + - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/ic_add_white.xml b/briar-android/res/drawable/ic_add_white.xml index 3052692a0..b24296899 100644 --- a/briar-android/res/drawable/ic_add_white.xml +++ b/briar-android/res/drawable/ic_add_white.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/message_delivered.xml b/briar-android/res/drawable/message_delivered.xml index 7df040f3c..414c707b6 100644 --- a/briar-android/res/drawable/message_delivered.xml +++ b/briar-android/res/drawable/message_delivered.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="16dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/message_sent.xml b/briar-android/res/drawable/message_sent.xml index 8a074e0fc..37dd9ca84 100644 --- a/briar-android/res/drawable/message_sent.xml +++ b/briar-android/res/drawable/message_sent.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="16dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/message_stored.xml b/briar-android/res/drawable/message_stored.xml index b91196f03..d687ff520 100644 --- a/briar-android/res/drawable/message_stored.xml +++ b/briar-android/res/drawable/message_stored.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="16dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/social_remove_person.xml b/briar-android/res/drawable/social_remove_person.xml index 4adacc148..5c1e173ee 100644 --- a/briar-android/res/drawable/social_remove_person.xml +++ b/briar-android/res/drawable/social_remove_person.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/social_send_now.xml b/briar-android/res/drawable/social_send_now.xml index bd34e7fc2..941911ed3 100644 --- a/briar-android/res/drawable/social_send_now.xml +++ b/briar-android/res/drawable/social_send_now.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/transport_bt.xml b/briar-android/res/drawable/transport_bt.xml index d22170869..be80561b5 100644 --- a/briar-android/res/drawable/transport_bt.xml +++ b/briar-android/res/drawable/transport_bt.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/drawable/transport_lan.xml b/briar-android/res/drawable/transport_lan.xml index d2cc9189e..ad12a9625 100644 --- a/briar-android/res/drawable/transport_lan.xml +++ b/briar-android/res/drawable/transport_lan.xml @@ -1,6 +1,6 @@ - - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + + diff --git a/briar-android/res/drawable/transport_tor.xml b/briar-android/res/drawable/transport_tor.xml index fe462b2f7..9084ddbad 100644 --- a/briar-android/res/drawable/transport_tor.xml +++ b/briar-android/res/drawable/transport_tor.xml @@ -1,5 +1,5 @@ - + android:viewportHeight="24.0" android:viewportWidth="24.0" + android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> + diff --git a/briar-android/res/layout/activity_password.xml b/briar-android/res/layout/activity_password.xml index d69ff185f..8905963ea 100644 --- a/briar-android/res/layout/activity_password.xml +++ b/briar-android/res/layout/activity_password.xml @@ -1,79 +1,79 @@ + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent"> - + - + - - - + + -