From ca462a2d6c2783c380a40ccfb528e3e308fc6410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Mon, 27 Jan 2014 14:44:20 +0100 Subject: New gradle folder structure for API Demo --- OpenPGP-Keychain-API-Demo/AndroidManifest.xml | 34 -- OpenPGP-Keychain-API-Demo/build.gradle | 62 ++++ OpenPGP-Keychain-API-Demo/build.xml | 83 ----- OpenPGP-Keychain-API-Demo/proguard-project.txt | 20 -- OpenPGP-Keychain-API-Demo/project.properties | 11 - .../res/drawable-hdpi/ic_launcher.png | Bin 2626 -> 0 bytes .../res/drawable-mdpi/ic_launcher.png | Bin 1732 -> 0 bytes .../res/drawable-xhdpi/ic_launcher.png | Bin 3517 -> 0 bytes .../res/drawable-xxhdpi/ic_launcher.png | Bin 5717 -> 0 bytes .../res/layout/aidl_demo2.xml | 40 --- .../res/layout/crypto_provider_demo.xml | 83 ----- .../res/layout/intent_demo.xml | 93 ------ .../res/xml/base_preference.xml | 23 -- .../src/main/AndroidManifest.xml | 34 ++ .../org/openintents/openpgp/IOpenPgpCallback.aidl | 45 +++ .../openpgp/IOpenPgpKeyIdsCallback.aidl | 39 +++ .../org/openintents/openpgp/IOpenPgpService.aidl | 143 +++++++++ .../aidl/org/openintents/openpgp/OpenPgpData.aidl | 20 ++ .../aidl/org/openintents/openpgp/OpenPgpError.aidl | 20 ++ .../openpgp/OpenPgpSignatureResult.aidl | 20 ++ .../org/openintents/openpgp/IOpenPgpCallback.aidl | 45 +++ .../openpgp/IOpenPgpKeyIdsCallback.aidl | 39 +++ .../org/openintents/openpgp/IOpenPgpService.aidl | 143 +++++++++ .../org/openintents/openpgp/OpenPgpConstants.java | 10 + .../java/org/openintents/openpgp/OpenPgpData.aidl | 20 ++ .../java/org/openintents/openpgp/OpenPgpData.java | 127 ++++++++ .../java/org/openintents/openpgp/OpenPgpError.aidl | 20 ++ .../java/org/openintents/openpgp/OpenPgpError.java | 81 +++++ .../org/openintents/openpgp/OpenPgpHelper.java | 52 +++ .../openintents/openpgp/OpenPgpListPreference.java | 203 ++++++++++++ .../openpgp/OpenPgpServiceConnection.java | 93 ++++++ .../openpgp/OpenPgpSignatureResult.aidl | 20 ++ .../openpgp/OpenPgpSignatureResult.java | 110 +++++++ .../keychain/demo/AidlDemoActivity2.java | 168 ++++++++++ .../keychain/demo/BaseActivity.java | 87 +++++ .../keychain/demo/Constants.java | 25 ++ .../keychain/demo/OpenPgpProviderActivity.java | 352 +++++++++++++++++++++ .../src/main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 2626 bytes .../src/main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 1732 bytes .../src/main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 3517 bytes .../src/main/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 5717 bytes .../src/main/res/layout/aidl_demo2.xml | 40 +++ .../src/main/res/layout/crypto_provider_demo.xml | 83 +++++ .../src/main/res/layout/intent_demo.xml | 93 ++++++ .../src/main/res/xml/base_preference.xml | 23 ++ .../org/openintents/openpgp/IOpenPgpCallback.aidl | 45 --- .../openpgp/IOpenPgpKeyIdsCallback.aidl | 39 --- .../org/openintents/openpgp/IOpenPgpService.aidl | 143 --------- .../org/openintents/openpgp/OpenPgpConstants.java | 10 - .../src/org/openintents/openpgp/OpenPgpData.aidl | 20 -- .../src/org/openintents/openpgp/OpenPgpData.java | 127 -------- .../src/org/openintents/openpgp/OpenPgpError.aidl | 20 -- .../src/org/openintents/openpgp/OpenPgpError.java | 81 ----- .../src/org/openintents/openpgp/OpenPgpHelper.java | 52 --- .../openintents/openpgp/OpenPgpListPreference.java | 203 ------------ .../openpgp/OpenPgpServiceConnection.java | 93 ------ .../openpgp/OpenPgpSignatureResult.aidl | 20 -- .../openpgp/OpenPgpSignatureResult.java | 110 ------- .../keychain/demo/AidlDemoActivity2.java | 168 ---------- .../keychain/demo/BaseActivity.java | 87 ----- .../keychain/demo/Constants.java | 25 -- .../keychain/demo/OpenPgpProviderActivity.java | 352 --------------------- 62 files changed, 2217 insertions(+), 1982 deletions(-) delete mode 100644 OpenPGP-Keychain-API-Demo/AndroidManifest.xml create mode 100644 OpenPGP-Keychain-API-Demo/build.gradle delete mode 100644 OpenPGP-Keychain-API-Demo/build.xml delete mode 100644 OpenPGP-Keychain-API-Demo/proguard-project.txt delete mode 100644 OpenPGP-Keychain-API-Demo/project.properties delete mode 100644 OpenPGP-Keychain-API-Demo/res/drawable-hdpi/ic_launcher.png delete mode 100644 OpenPGP-Keychain-API-Demo/res/drawable-mdpi/ic_launcher.png delete mode 100644 OpenPGP-Keychain-API-Demo/res/drawable-xhdpi/ic_launcher.png delete mode 100644 OpenPGP-Keychain-API-Demo/res/drawable-xxhdpi/ic_launcher.png delete mode 100644 OpenPGP-Keychain-API-Demo/res/layout/aidl_demo2.xml delete mode 100644 OpenPGP-Keychain-API-Demo/res/layout/crypto_provider_demo.xml delete mode 100644 OpenPGP-Keychain-API-Demo/res/layout/intent_demo.xml delete mode 100644 OpenPGP-Keychain-API-Demo/res/xml/base_preference.xml create mode 100644 OpenPGP-Keychain-API-Demo/src/main/AndroidManifest.xml create mode 100644 OpenPGP-Keychain-API-Demo/src/main/aidl/org/openintents/openpgp/IOpenPgpCallback.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/aidl/org/openintents/openpgp/IOpenPgpKeyIdsCallback.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/aidl/org/openintents/openpgp/IOpenPgpService.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/aidl/org/openintents/openpgp/OpenPgpData.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/aidl/org/openintents/openpgp/OpenPgpError.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/aidl/org/openintents/openpgp/OpenPgpSignatureResult.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/IOpenPgpCallback.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/IOpenPgpKeyIdsCallback.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/IOpenPgpService.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpConstants.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpData.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpData.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpError.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpError.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpHelper.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpListPreference.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpServiceConnection.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.aidl create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/openintents/openpgp/OpenPgpSignatureResult.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/sufficientlysecure/keychain/demo/AidlDemoActivity2.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/sufficientlysecure/keychain/demo/BaseActivity.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/sufficientlysecure/keychain/demo/Constants.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/java/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/drawable-mdpi/ic_launcher.png create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/layout/aidl_demo2.xml create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/layout/crypto_provider_demo.xml create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/layout/intent_demo.xml create mode 100644 OpenPGP-Keychain-API-Demo/src/main/res/xml/base_preference.xml delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpCallback.aidl delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpKeyIdsCallback.aidl delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/IOpenPgpService.aidl delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpConstants.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpData.aidl delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpData.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpError.aidl delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpError.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpHelper.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpListPreference.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpServiceConnection.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpSignatureResult.aidl delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/openintents/openpgp/OpenPgpSignatureResult.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/AidlDemoActivity2.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/BaseActivity.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/Constants.java delete mode 100644 OpenPGP-Keychain-API-Demo/src/org/sufficientlysecure/keychain/demo/OpenPgpProviderActivity.java (limited to 'OpenPGP-Keychain-API-Demo') diff --git a/OpenPGP-Keychain-API-Demo/AndroidManifest.xml b/OpenPGP-Keychain-API-Demo/AndroidManifest.xml deleted file mode 100644 index 8b8c43776..000000000 --- a/OpenPGP-Keychain-API-Demo/AndroidManifest.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/OpenPGP-Keychain-API-Demo/build.gradle b/OpenPGP-Keychain-API-Demo/build.gradle new file mode 100644 index 000000000..164c3e83c --- /dev/null +++ b/OpenPGP-Keychain-API-Demo/build.gradle @@ -0,0 +1,62 @@ +buildscript { + repositories { + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:0.7.3' + } +} + +apply plugin: 'android' + +repositories { + mavenCentral() +} + +dependencies { + compile 'com.android.support:support-v4:19.0.+' +} + +android { + compileSdkVersion 19 + buildToolsVersion "19" + + defaultConfig { + minSdkVersion 8 + targetSdkVersion 19 + } + + /* + * To sign release build, create file gradle.properties in ~/.gradle/ with this content: + * + * signingStoreLocation=/home/key.store + * signingStorePassword=xxx + * signingKeyAlias=alias + * signingKeyPassword=xxx + */ + if (project.hasProperty('signingStoreLocation') && + project.hasProperty('signingStorePassword') && + project.hasProperty('signingKeyAlias') && + project.hasProperty('signingKeyPassword')) { + println "Found sign properties in gradle.properties! Signing build…" + + signingConfigs { + release { + storeFile file(signingStoreLocation) + storePassword signingStorePassword + keyAlias signingKeyAlias + keyPassword signingKeyPassword + } + } + + buildTypes.release.signingConfig = signingConfigs.release + } else { + buildTypes.release.signingConfig = null + } + + // Do not abort build if lint finds errors + lintOptions { + abortOnError false + } +} diff --git a/OpenPGP-Keychain-API-Demo/build.xml b/OpenPGP-Keychain-API-Demo/build.xml deleted file mode 100644 index 3e6cfa272..000000000 --- a/OpenPGP-Keychain-API-Demo/build.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/OpenPGP-Keychain-API-Demo/proguard-project.txt b/OpenPGP-Keychain-API-Demo/proguard-project.txt deleted file mode 100644 index f2fe1559a..000000000 --- a/OpenPGP-Keychain-API-Demo/proguard-project.txt +++ /dev/null @@ -1,20 +0,0 @@ -# To enable ProGuard in your project, edit project.properties -# to define the proguard.config property as described in that file. -# -# Add project specific ProGuard rules here. -# By default, the flags in this file are appended to flags specified -# in ${sdk.dir}/tools/proguard/proguard-android.txt -# You can edit the include path and order by changing the ProGuard -# include property in project.properties. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# Add any project specific keep options here: - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} diff --git a/OpenPGP-Keychain-API-Demo/project.properties b/OpenPGP-Keychain-API-Demo/project.properties deleted file mode 100644 index a5578ba09..000000000 --- a/OpenPGP-Keychain-API-Demo/project.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "ant.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-19 diff --git a/OpenPGP-Keychain-API-Demo/res/drawable-hdpi/ic_launcher.png b/OpenPGP-Keychain-API-Demo/res/drawable-hdpi/ic_launcher.png deleted file mode 100644 index cf114d7db..000000000 Binary files a/OpenPGP-Keychain-API-Demo/res/drawable-hdpi/ic_launcher.png and /dev/null differ diff --git a/OpenPGP-Keychain-API-Demo/res/drawable-mdpi/ic_launcher.png b/OpenPGP-Keychain-API-Demo/res/drawable-mdpi/ic_launcher.png deleted file mode 100644 index d55318843..000000000 Binary files a/OpenPGP-Keychain-API-Demo/res/drawable-mdpi/ic_launcher.png and /dev/null differ diff --git a/OpenPGP-Keychain-API-Demo/res/drawable-xhdpi/ic_launcher.png b/OpenPGP-Keychain-API-Demo/res/drawable-xhdpi/ic_launcher.png deleted file mode 100644 index 13ed3d450..000000000 Binary files a/OpenPGP-Keychain-API-Demo/res/drawable-xhdpi/ic_launcher.png and /dev/null differ diff --git a/OpenPGP-Keychain-API-Demo/res/drawable-xxhdpi/ic_launcher.png b/OpenPGP-Keychain-API-Demo/res/drawable-xxhdpi/ic_launcher.png deleted file mode 100644 index 831c993d4..000000000 Binary files a/OpenPGP-Keychain-API-Demo/res/drawable-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/OpenPGP-Keychain-API-Demo/res/layout/aidl_demo2.xml b/OpenPGP-Keychain-API-Demo/res/layout/aidl_demo2.xml deleted file mode 100644 index 73abd9b5c..000000000 --- a/OpenPGP-Keychain-API-Demo/res/layout/aidl_demo2.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - - -