Speed up Gradle qa task.
This commit is contained in:
parent
c6d0ef218a
commit
c98fd1a452
4 changed files with 8 additions and 8 deletions
|
@ -381,6 +381,7 @@ android {
|
|||
}
|
||||
|
||||
lintOptions {
|
||||
checkReleaseBuilds false
|
||||
abortOnError true
|
||||
baseline file("lint-baseline.xml")
|
||||
disable "LintError"
|
||||
|
|
|
@ -83,5 +83,5 @@ task qa {
|
|||
':Signal-Android:lintPlayProdRelease',
|
||||
'Signal-Android:ktlintCheck',
|
||||
':libsignal-service:test',
|
||||
':Signal-Android:assemblePlayProdDebug'
|
||||
':Signal-Android:assemblePlayProdRelease'
|
||||
}
|
||||
|
|
|
@ -17,14 +17,12 @@ import static org.whispersystems.signalservice.test.LibSignalLibraryUtil.assumeL
|
|||
public class DeviceTransferAuthenticationTest {
|
||||
|
||||
private byte[] certificate;
|
||||
private byte[] badCertificate;
|
||||
|
||||
@Before
|
||||
public void ensureNativeSupported() throws KeyGenerationFailedException {
|
||||
assumeLibSignalSupportedOnOS();
|
||||
|
||||
certificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
badCertificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
certificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -39,9 +37,10 @@ public class DeviceTransferAuthenticationTest {
|
|||
}
|
||||
|
||||
@Test(expected = DeviceTransferAuthenticationException.class)
|
||||
public void testServerCompute_withChangedClientCertificate() throws DeviceTransferAuthenticationException {
|
||||
Client client = new Client(badCertificate);
|
||||
Server server = new Server(certificate, client.getCommitment());
|
||||
public void testServerCompute_withChangedClientCertificate() throws DeviceTransferAuthenticationException, KeyGenerationFailedException {
|
||||
byte[] badCertificate = SelfSignedIdentity.create().getX509Encoded();
|
||||
Client client = new Client(badCertificate);
|
||||
Server server = new Server(certificate, client.getCommitment());
|
||||
|
||||
byte[] clientRandom = client.setServerRandomAndGetClientRandom(server.getRandom());
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
org.gradle.jvmargs=-Xmx3072m
|
||||
org.gradle.jvmargs=-Xmx4096m
|
||||
android.useAndroidX=true
|
||||
android.enableJetifier=true
|
||||
kapt.incremental.apt=false
|
Loading…
Add table
Reference in a new issue