Use SpongyCastle for crypto
Requires i2p.i2p-bote rev 474ac06823cf555f824fdf914fe40247e38eab55
This commit is contained in:
@@ -28,6 +28,9 @@ android {
|
||||
packagingOptions {
|
||||
exclude 'LICENSE.txt'
|
||||
}
|
||||
dexOptions {
|
||||
jumboMode = true
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -43,6 +46,8 @@ dependencies {
|
||||
// Remote dependencies
|
||||
compile 'net.i2p.android:client:0.4@aar'
|
||||
compile 'net.i2p.android.ext:floatingactionbutton:1.5.1'
|
||||
compile 'com.madgag.spongycastle:core:1.51.0.0'
|
||||
compile 'com.madgag.spongycastle:prov:1.51.0.0'
|
||||
compile ('com.mcxiaoke.viewpagerindicator:library:2.4.1') {
|
||||
exclude group: 'com.android.support', module: 'support-v4'
|
||||
}
|
||||
@@ -62,6 +67,8 @@ dependencyVerification {
|
||||
'com.android.support:appcompat-v7:5dbeb5316d0a6027d646ae552804c3baa5e3bd53f7f33db50904d51505c8a0e5',
|
||||
'net.i2p.android:client:9176b5e32f74929856eeedf1dbe7e9f0a64fbb8a58a62b13f929c362353773d3',
|
||||
'net.i2p.android.ext:floatingactionbutton:ea904b3f290498d6184c5b9affa87949ed5dfe76c5b6a0a307f62313ec094249',
|
||||
'com.madgag.spongycastle:core:8d6240b974b0aca4d3da9c7dd44d42339d8a374358aca5fc98e50a995764511f',
|
||||
'com.madgag.spongycastle:prov:b8c3fec3a59aac1aa04ccf4dad7179351e54ef7672f53f508151b614c131398a',
|
||||
'com.mcxiaoke.viewpagerindicator:library:470bbd2bec1ede64ad21efd6f02676807d22f1b526c4ac6a5b41a428c6e47e67',
|
||||
'com.google.zxing:core:f00b32f7a1b0edc914a8f74301e8dc34f189afc4698e9c8cc54e5d46772734a5',
|
||||
'com.google.zxing:android-integration:89e56aadf1164bd71e57949163c53abf90af368b51669c0d4a47a163335f95c4',
|
||||
|
||||
@@ -2,7 +2,13 @@ package i2p.bote.android;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import java.security.Security;
|
||||
|
||||
public class InitActivities {
|
||||
static {
|
||||
Security.insertProviderAt(new org.spongycastle.jce.provider.BouncyCastleProvider(), 1);
|
||||
}
|
||||
|
||||
private final String myDir;
|
||||
|
||||
public InitActivities(Context c) {
|
||||
|
||||
@@ -9,7 +9,6 @@ task buildJars(type: Exec) {
|
||||
|
||||
artifacts {
|
||||
'default' file: file('libs/router.jar'), builtBy: buildJars
|
||||
'default' file: file('libs/bcprov-ecc-jdk16-146.jar'), builtBy: buildJars
|
||||
'default' file: file('libs/flexi-gmss-1.7p1.jar'), builtBy: buildJars
|
||||
'default' file: file('libs/lzma-9.20.jar'), builtBy: buildJars
|
||||
'default' file: file('libs/ntruenc-1.2.jar'), builtBy: buildJars
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
<jar destfile="${jar.libs.dir}/i2pbote.jar" >
|
||||
<!-- remove classes that are overridden or stubbed out -->
|
||||
<zipfileset src="${botelib}/i2pbote.jar" >
|
||||
<exclude name="i2p/bote/crypto/ECUtils.class" />
|
||||
<exclude name="i2p/bote/imap/" />
|
||||
<exclude name="i2p/bote/service/seedless/" />
|
||||
<exclude name="i2p/bote/smtp/" />
|
||||
@@ -106,7 +107,6 @@
|
||||
<!-- bote deps -->
|
||||
<copy todir="${jar.libs.dir}">
|
||||
<fileset dir="${botelib}">
|
||||
<include name="bcprov-ecc-jdk16-146.jar" />
|
||||
<!-- Regular JavaMail currently doesn't work on Android
|
||||
<include name="mailapi.jar" />-->
|
||||
<include name="lzma-9.20.jar" />
|
||||
|
||||
Reference in New Issue
Block a user