Compare commits
3 Commits
8d0bd1f853
...
879f682849
| Author | SHA1 | Date | |
|---|---|---|---|
|
879f682849
|
|||
|
e9af366986
|
|||
|
b0f0417d43
|
@@ -111,6 +111,12 @@ android {
|
|||||||
sourceCompatibility JavaVersion.VERSION_17
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
targetCompatibility JavaVersion.VERSION_17
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = "17"
|
||||||
|
}
|
||||||
|
kotlin {
|
||||||
|
jvmToolchain(17)
|
||||||
|
}
|
||||||
|
|
||||||
testOptions.unitTests.all {
|
testOptions.unitTests.all {
|
||||||
// log results of tests to console, useful for travis
|
// log results of tests to console, useful for travis
|
||||||
|
|||||||
@@ -46,11 +46,14 @@ import org.sufficientlysecure.keychain.operations.ImportOperation;
|
|||||||
import org.sufficientlysecure.keychain.operations.results.ImportKeyResult;
|
import org.sufficientlysecure.keychain.operations.results.ImportKeyResult;
|
||||||
import org.sufficientlysecure.keychain.pgp.CanonicalizedKeyRing;
|
import org.sufficientlysecure.keychain.pgp.CanonicalizedKeyRing;
|
||||||
import org.sufficientlysecure.keychain.pgp.CanonicalizedKeyRing.VerificationStatus;
|
import org.sufficientlysecure.keychain.pgp.CanonicalizedKeyRing.VerificationStatus;
|
||||||
|
import org.sufficientlysecure.keychain.pgp.CanonicalizedPublicKey;
|
||||||
|
import org.sufficientlysecure.keychain.pgp.exception.PgpKeyNotFoundException;
|
||||||
import org.sufficientlysecure.keychain.service.ImportKeyringParcel;
|
import org.sufficientlysecure.keychain.service.ImportKeyringParcel;
|
||||||
import org.sufficientlysecure.keychain.ui.base.CryptoOperationHelper;
|
import org.sufficientlysecure.keychain.ui.base.CryptoOperationHelper;
|
||||||
import org.sufficientlysecure.keychain.ui.keyview.ViewKeyActivity;
|
import org.sufficientlysecure.keychain.ui.keyview.ViewKeyActivity;
|
||||||
import org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils;
|
import org.sufficientlysecure.keychain.ui.util.KeyFormattingUtils;
|
||||||
import org.sufficientlysecure.keychain.ui.util.Notify;
|
import org.sufficientlysecure.keychain.ui.util.Notify;
|
||||||
|
import org.sufficientlysecure.keychain.util.IterableIterator;
|
||||||
import org.sufficientlysecure.keychain.util.ParcelableFileCache;
|
import org.sufficientlysecure.keychain.util.ParcelableFileCache;
|
||||||
import timber.log.Timber;
|
import timber.log.Timber;
|
||||||
|
|
||||||
@@ -209,10 +212,15 @@ public class ImportKeysAdapter extends RecyclerView.Adapter<ImportKeysAdapter.Vi
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void getKey(int position, ImportKeysListEntry entry, boolean skipSave) {
|
private void getKey(int position, ImportKeysListEntry entry, boolean skipSave) {
|
||||||
|
Timber.d("+getKey position %d, entry %s, skipSave %s", position, entry.getKeyIdHex(), skipSave ? "true" : "false");
|
||||||
|
Timber.d("getKeys => prepareKeyOperation");
|
||||||
ImportKeyringParcel inputParcel = prepareKeyOperation(entry, skipSave);
|
ImportKeyringParcel inputParcel = prepareKeyOperation(entry, skipSave);
|
||||||
ImportKeysResultListener listener = skipSave ? this : mListener;
|
ImportKeysResultListener listener = skipSave ? this : mListener;
|
||||||
|
Timber.d("getKeys => new ImportKeysOperationCallback");
|
||||||
ImportKeysOperationCallback cb = new ImportKeysOperationCallback(listener, inputParcel, position);
|
ImportKeysOperationCallback cb = new ImportKeysOperationCallback(listener, inputParcel, position);
|
||||||
|
Timber.d("getKeys => new CryptoOperationHelper");
|
||||||
CryptoOperationHelper opHelper = new CryptoOperationHelper<>(1, mActivity, cb, null);
|
CryptoOperationHelper opHelper = new CryptoOperationHelper<>(1, mActivity, cb, null);
|
||||||
|
Timber.d("getKeys => opHelper.cryptoOperation");
|
||||||
opHelper.cryptoOperation();
|
opHelper.cryptoOperation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -264,9 +272,18 @@ public class ImportKeysAdapter extends RecyclerView.Adapter<ImportKeysAdapter.Vi
|
|||||||
ArrayList<CanonicalizedKeyRing> canKeyRings = result.mCanonicalizedKeyRings;
|
ArrayList<CanonicalizedKeyRing> canKeyRings = result.mCanonicalizedKeyRings;
|
||||||
if (canKeyRings.size() == 1) {
|
if (canKeyRings.size() == 1) {
|
||||||
CanonicalizedKeyRing keyRing = canKeyRings.get(0);
|
CanonicalizedKeyRing keyRing = canKeyRings.get(0);
|
||||||
Timber.e("Key ID: " + keyRing.getMasterKeyId() +
|
Timber.e("Key ID: %016X| isRev: " + keyRing.isRevoked() + " | isExp: " + keyRing.isExpired()
|
||||||
"| isRev: " + keyRing.isRevoked() + "| isExp: " + keyRing.isExpired()
|
+ " | isSec: " + keyRing.isSecure(), keyRing.getMasterKeyId());
|
||||||
+ "| isSec: " + keyRing.isSecure());
|
try {
|
||||||
|
Timber.e("[E]: %016X", keyRing.getEncryptId());
|
||||||
|
} catch (PgpKeyNotFoundException ignored) {}
|
||||||
|
try {
|
||||||
|
Timber.e("[S]: %016X", keyRing.getSigningId());
|
||||||
|
} catch (PgpKeyNotFoundException ignored) {}
|
||||||
|
|
||||||
|
for (CanonicalizedPublicKey val : keyRing.publicKeyIterator()) {
|
||||||
|
Timber.e("KEY %016X; [%s%s%s%s]", val.getKeyId(), val.canAuthenticate() ? "A" : "", val.canCertify() ? "C" : "", val.canEncrypt() ? "E" : "", val.canSign() ? "S" : "");
|
||||||
|
}
|
||||||
|
|
||||||
ImportKeysListEntry entry = mData.get(position);
|
ImportKeysListEntry entry = mData.get(position);
|
||||||
entry.setUpdated(result.isOkUpdated());
|
entry.setUpdated(result.isOkUpdated());
|
||||||
|
|||||||
18
build.gradle
18
build.gradle
@@ -22,7 +22,23 @@ allprojects {
|
|||||||
google()
|
google()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
// needed for some legacy libs that aren't available on mavenCentral
|
// needed for some legacy libs that aren't available on mavenCentral
|
||||||
jcenter()
|
//jcenter()
|
||||||
|
// used by:
|
||||||
|
// - com.github.BelooS:ChipsLayoutManager:v0.3.7@aar
|
||||||
|
maven { url 'https://jitpack.io' }
|
||||||
|
// used by:
|
||||||
|
// - com.fidesmo:nordpol-android:0.1.22
|
||||||
|
// - com.journeyapps:zxing-android-embedded:3.4.0
|
||||||
|
maven { url 'https://repo.spring.io/libs-milestone/' }
|
||||||
|
// used by:
|
||||||
|
// - eu.davidea:flexible-adapter:5.1.0
|
||||||
|
maven { url 'https://verve.jfrog.io/artifactory/verve-gradle-release/' }
|
||||||
|
// used by:
|
||||||
|
// - eu.davidea:flexible-adapter-ui:1.0.0-b5
|
||||||
|
maven { url 'https://repo.spring.io/plugins-release/' }
|
||||||
|
// used by:
|
||||||
|
// - eu.davidea:flexible-adapter-livedata:1.0.0-b2
|
||||||
|
maven { url 'https://maven.scijava.org/content/repositories/public/' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
extern/MaterialChipsInput/build.gradle
vendored
2
extern/MaterialChipsInput/build.gradle
vendored
@@ -26,6 +26,6 @@ dependencies {
|
|||||||
|
|
||||||
// recycler
|
// recycler
|
||||||
implementation 'androidx.recyclerview:recyclerview:1.3.2'
|
implementation 'androidx.recyclerview:recyclerview:1.3.2'
|
||||||
implementation 'com.beloo.widget:ChipsLayoutManager:0.3.7@aar'
|
implementation 'com.github.BelooS:ChipsLayoutManager:v0.3.7@aar'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user