mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-23 17:22:16 -05:00
update gradle, description,...
This commit is contained in:
parent
75672fa5b3
commit
1421046c6d
18
DESCRIPTION
18
DESCRIPTION
@ -1,15 +1,21 @@
|
|||||||
THIS IS EXPERIMENTAL BETA SOFTWARE.
|
THIS IS EXPERIMENTAL SOFTWARE.
|
||||||
OpenPGP Keychain contains many remaining bugs, so help us developing on github:
|
Use OpenPGP Keychain at your own risk!
|
||||||
|
|
||||||
https://github.com/dschuermann/openpgp-keychain
|
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
OpenPGP Keychain is an open source OpenPGP implementation for Android.
|
OpenPGP Keychain is an open source OpenPGP implementation for Android.
|
||||||
|
|
||||||
OpenPGP Keychain is a fork based on the original Android Privacy Guard (APG) to introduce more features and a new user interface.
|
OpenPGP Keychain is a fork based on the original Android Privacy Guard (APG) to introduce more features and a new user interface.
|
||||||
|
|
||||||
|
Features:
|
||||||
|
• OpenPGP Keychain is Open Source and Free Software (GPLv3+) (-> verifiable cryptography)
|
||||||
|
• All basic OpenPGP operations: encrypt/decrypt/sign/verify
|
||||||
|
• NFC/QR code key exchange
|
||||||
|
• Key management (import/export/sign/upload)
|
||||||
|
• Import/export of GPG key rings and exported keys from/to the SD card
|
||||||
|
• Basic keyserver support
|
||||||
|
• Easy API
|
||||||
|
|
||||||
License:
|
License:
|
||||||
Apache License 2.0
|
GPLv3+
|
||||||
|
|
||||||
Permissions:
|
Permissions:
|
||||||
• Internet access: Internet access is ONLY used for key server queries.
|
• Internet access: Internet access is ONLY used for key server queries.
|
||||||
|
@ -6,7 +6,26 @@
|
|||||||
android:versionCode="20000"
|
android:versionCode="20000"
|
||||||
android:versionName="2.0" >
|
android:versionName="2.0" >
|
||||||
|
|
||||||
<!-- General remarks =============== - Last APG 1 version was 10900 (1.0.9 beta 00) - Keychain starting with versionCode 20000! Association of file types to APG ================================= General remarks about file ending conventions: - *.gpg for binary files - *.asc for ascii armored files The actual content can be anything. The file ending only shows if it is binary or ascii encoded. Remarks about the ugly android:pathPattern: We are matching all files with a specific file ending. This is done in an ugly way because of Android limitations. Read http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension and http://stackoverflow.com/questions/3400072/pathpattern-to-match-file-extension-does-not-work-if-a-period-exists-elsewhere-i/8599921 for more information. -->
|
<!--
|
||||||
|
General remarks
|
||||||
|
===============
|
||||||
|
- Last APG 1 version was 10900 (1.0.9 beta 00)
|
||||||
|
- Keychain starting with versionCode 20000!
|
||||||
|
|
||||||
|
Association of file types to Keychain
|
||||||
|
=====================================
|
||||||
|
General remarks about file ending conventions:
|
||||||
|
- *.gpg for binary files
|
||||||
|
- *.asc for ascii armored files The actual content can be anything.
|
||||||
|
|
||||||
|
The file ending only shows if it is binary or ascii encoded.
|
||||||
|
|
||||||
|
Remarks about the ugly android:pathPattern:
|
||||||
|
We are matching all files with a specific file ending.
|
||||||
|
This is done in an ugly way because of Android limitations.
|
||||||
|
Read http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-extension and http://stackoverflow.com/questions/3400072/pathpattern-to-match-file-extension-does-not-work-if-a-period-exists-elsewhere-i/8599921
|
||||||
|
for more information.
|
||||||
|
-->
|
||||||
|
|
||||||
<uses-sdk
|
<uses-sdk
|
||||||
android:minSdkVersion="8"
|
android:minSdkVersion="8"
|
||||||
|
@ -16,8 +16,9 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile fileTree(dir: 'libs', includes: ['*.jar'], excludes: ['android-support-v4.jar'])
|
compile fileTree(dir: 'libs', includes: ['*.jar'], excludes: ['android-support-v4.jar'])
|
||||||
compile 'com.android.support:support-v4:13.0.+'
|
//compile 'com.android.support:support-v4:18.0.+' // already in actionbarsherlock
|
||||||
compile 'com.actionbarsherlock:actionbarsherlock:4.4.+@aar'
|
compile 'com.actionbarsherlock:actionbarsherlock:4.4.+@aar'
|
||||||
|
compile project(':libraries:HtmlTextView')
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
@ -26,7 +27,7 @@ android {
|
|||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
minSdkVersion 8
|
minSdkVersion 8
|
||||||
targetSdkVersion 18
|
targetSdkVersion 17
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
@ -43,28 +44,31 @@ android {
|
|||||||
instrumentTest.setRoot('tests')
|
instrumentTest.setRoot('tests')
|
||||||
}
|
}
|
||||||
|
|
||||||
if (project.hasProperty('signingStoreLocation')) {
|
/*
|
||||||
/*
|
* To sign release build, create file gradle.properties in ~/.gradle/ with this content:
|
||||||
* To sign release build, create file gradle.properties in .gradle/ with this content:
|
*
|
||||||
*
|
* signingStoreLocation=/home/key.store
|
||||||
* signingStoreLocation=/home/key.store
|
* signingStorePassword=xxx
|
||||||
* signingStorePassword=xxx
|
* signingKeyAlias=alias
|
||||||
* signingKeyAlias=alias
|
* signingKeyPassword=xxx
|
||||||
* signingKeyPassword=xxx
|
*/
|
||||||
*/
|
if (project.hasProperty('signingStoreLocation') &&
|
||||||
signingConfigs {
|
project.hasProperty('signingStorePassword') &&
|
||||||
myConfig {
|
project.hasProperty('signingKeyAlias') &&
|
||||||
storeFile file(signingStoreLocation)
|
project.hasProperty('signingKeyPassword')) {
|
||||||
storePassword signingStorePassword
|
println "Found sign properties in gradle.properties! Signing build…"
|
||||||
keyAlias signingKeyAlias
|
|
||||||
keyPassword signingKeyPassword
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildTypes {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
signingConfig signingConfigs.myConfig
|
storeFile file(signingStoreLocation)
|
||||||
|
storePassword signingStorePassword
|
||||||
|
keyAlias signingKeyAlias
|
||||||
|
keyPassword signingKeyPassword
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildTypes.release.signingConfig = signingConfigs.release
|
||||||
|
} else {
|
||||||
|
buildTypes.release.signingConfig = null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,10 +51,11 @@ public class CryptoServiceActivity extends SherlockFragmentActivity {
|
|||||||
|
|
||||||
public static final String EXTRA_MESSENGER = "messenger";
|
public static final String EXTRA_MESSENGER = "messenger";
|
||||||
|
|
||||||
|
// passphrase action
|
||||||
public static final String EXTRA_SECRET_KEY_ID = "secret_key_id";
|
public static final String EXTRA_SECRET_KEY_ID = "secret_key_id";
|
||||||
|
// register action
|
||||||
public static final String EXTRA_PACKAGE_NAME = "package_name";
|
public static final String EXTRA_PACKAGE_NAME = "package_name";
|
||||||
|
// select pub keys action
|
||||||
// select activity
|
|
||||||
public static final String EXTRA_SELECTED_MASTER_KEY_IDS = "master_key_ids";
|
public static final String EXTRA_SELECTED_MASTER_KEY_IDS = "master_key_ids";
|
||||||
public static final String EXTRA_MISSING_USER_IDS = "missing_user_ids";
|
public static final String EXTRA_MISSING_USER_IDS = "missing_user_ids";
|
||||||
public static final String EXTRA_DUBLICATE_USER_IDS = "dublicate_user_ids";
|
public static final String EXTRA_DUBLICATE_USER_IDS = "dublicate_user_ids";
|
||||||
@ -63,10 +64,11 @@ public class CryptoServiceActivity extends SherlockFragmentActivity {
|
|||||||
|
|
||||||
// register view
|
// register view
|
||||||
private AppSettingsFragment mSettingsFragment;
|
private AppSettingsFragment mSettingsFragment;
|
||||||
// select pub key view
|
// select pub keys view
|
||||||
private SelectPublicKeyFragment mSelectFragment;
|
private SelectPublicKeyFragment mSelectFragment;
|
||||||
|
|
||||||
// has the user clicked one of the buttons?
|
// has the user clicked one of the buttons
|
||||||
|
// or do we need to handle the callback in onStop()
|
||||||
private boolean finishHandled;
|
private boolean finishHandled;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -267,7 +269,6 @@ public class CryptoServiceActivity extends SherlockFragmentActivity {
|
|||||||
getSupportFragmentManager().beginTransaction()
|
getSupportFragmentManager().beginTransaction()
|
||||||
.add(R.id.api_select_pub_keys_fragment_container, mSelectFragment).commit();
|
.add(R.id.api_select_pub_keys_fragment_container, mSelectFragment).commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.e(Constants.TAG, "Wrong action!");
|
Log.e(Constants.TAG, "Wrong action!");
|
||||||
finish();
|
finish();
|
||||||
|
10
README.md
10
README.md
@ -1,10 +1,10 @@
|
|||||||
# OpenPGP Keychain (for Android)
|
# OpenPGP Keychain (for Android)
|
||||||
|
|
||||||
OpenPGP Keychain is a EXPERIMENTAL fork of Android Privacy Guard (APG)
|
OpenPGP Keychain is an OpenPGP implementation for Android.
|
||||||
|
The development began as a fork of Android Privacy Guard (APG).
|
||||||
|
|
||||||
see http://sufficientlysecure.org/keychain
|
see http://sufficientlysecure.org/keychain
|
||||||
|
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
|
|
||||||
## Build with Gradle
|
## Build with Gradle
|
||||||
@ -13,12 +13,14 @@ see http://sufficientlysecure.org/keychain
|
|||||||
2. Export ANDROID_HOME pointing to your Android SDK
|
2. Export ANDROID_HOME pointing to your Android SDK
|
||||||
3. Install gradle
|
3. Install gradle
|
||||||
4. Execute ``gradle wrapper`` (http://www.gradle.org/docs/current/userguide/gradle_wrapper.html)
|
4. Execute ``gradle wrapper`` (http://www.gradle.org/docs/current/userguide/gradle_wrapper.html)
|
||||||
5. Execute ``./gradlew assemble``
|
5. Execute ``./gradlew build``
|
||||||
|
|
||||||
## Build with Ant
|
## Build with Ant
|
||||||
|
|
||||||
1. Have Android SDK "tools" directory in your PATH (http://developer.android.com/sdk/index.html)
|
1. Have Android SDK "tools" directory in your PATH (http://developer.android.com/sdk/index.html)
|
||||||
2. Execute ``android update project -p OpenPGP-Keychain`` and ``android update project -p libraries/ActionBarSherlock``
|
2. Execute ``android update project -p OpenPGP-Keychain``
|
||||||
|
3. Execute``android update project -p libraries/ActionBarSherlock``
|
||||||
|
3. Execute``android update project -p libraries/HtmlTextView``
|
||||||
3. Execute ``cd OpenPGP-Kechain``, ``ant debug``
|
3. Execute ``cd OpenPGP-Kechain``, ``ant debug``
|
||||||
|
|
||||||
# Contribute
|
# Contribute
|
||||||
|
15
build.gradle
15
build.gradle
@ -1,3 +1,18 @@
|
|||||||
|
buildscript {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.android.tools.build:gradle:0.5.+'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
gradleVersion = '1.6'
|
gradleVersion = '1.6'
|
||||||
|
@ -1 +1,3 @@
|
|||||||
include ':OpenPGP-Keychain'
|
include ':OpenPGP-Keychain'
|
||||||
|
include ':libraries:ActionBarSherlock'
|
||||||
|
include ':libraries:HtmlTextView'
|
Loading…
Reference in New Issue
Block a user