Compile curve25519/webcrypto into libtextsecure.js

This commit is contained in:
Matt Corallo 2015-01-13 15:49:38 -10:00
parent 07899557dc
commit 5785f4033c
10 changed files with 2895 additions and 22 deletions

View file

@ -31,7 +31,7 @@ module.exports = function(grunt) {
'build/curve25519_compiled.js',
'build/curve25519.js',
],
dest: 'js/curve25519_compiled.js',
dest: 'libtextsecure/curve25519_concat.js',
options: {
banner: ';(function(){\n',
footer: '\n})();'
@ -49,7 +49,7 @@ module.exports = function(grunt) {
'components/cryptojs/src/aes.js',
'build/webcrypto.js'
],
dest: 'js/webcrypto.js',
dest: 'libtextsecure/webcrypto_concat.js',
options: {
banner: ';(function(){\n',
footer: '\n})();'
@ -65,6 +65,10 @@ module.exports = function(grunt) {
},
libtextsecure: {
src: [
'libtextsecure/curve25519_concat.js',
'libtextsecure/nativeclient.js',
'libtextsecure/webcrypto_concat.js',
'libtextsecure/protobufs.js',
'libtextsecure/websocket.js',
'libtextsecure/websocket-resources.js',

View file

@ -16,11 +16,6 @@
<html>
<head>
<script type="text/javascript" src="js/components.js"></script>
<script type="text/javascript" src="js/curve25519_compiled.js"></script>
<script type="text/javascript" src="js/nativeclient.js"></script>
<script type="text/javascript" src="js/webcrypto.js"></script>
<script type="text/javascript" src="js/libtextsecure.js"></script>
<script type="text/javascript" src="js/database.js"></script>

View file

@ -131,10 +131,6 @@
</script>
<script type="text/javascript" src="js/components.js"></script>
<script type="text/javascript" src="js/curve25519_compiled.js"></script>
<script type="text/javascript" src="js/nativeclient.js"></script>
<script type="text/javascript" src="js/webcrypto.js"></script>
<script type="text/javascript" src="js/libtextsecure.js"></script>
<script type="text/javascript" src="js/database.js"></script>

File diff suppressed because one or more lines are too long

View file

@ -34,9 +34,9 @@
<script type="text/javascript" src="../components.js"></script>
<script type="text/javascript" src="../../js/curve25519_compiled.js"></script>
<script type="text/javascript" src="../../js/nativeclient.js"></script>
<script type="text/javascript" src="../../js/webcrypto.js"></script>
<script type="text/javascript" src="../curve25519_concat.js"></script>
<script type="text/javascript" src="../nativeclient.js"></script>
<script type="text/javascript" src="../webcrypto_concat.js"></script>
<script type="text/javascript" src="../protobufs.js" data-cover></script>
<script type="text/javascript" src="../websocket.js" data-cover></script>

View file

@ -96,10 +96,6 @@
</div>
<script type="text/javascript" src="js/components.js"></script>
<script type="text/javascript" src="js/curve25519_compiled.js"></script>
<script type="text/javascript" src="js/nativeclient.js"></script>
<script type="text/javascript" src="js/webcrypto.js"></script>
<script type="text/javascript" src="js/libtextsecure.js"></script>
<script type="text/javascript" src="js/database.js"></script>

View file

@ -125,10 +125,6 @@
<script type="text/javascript" src="../js/components.js"></script>
<script type="text/javascript" src="../js/curve25519_compiled.js"></script>
<script type="text/javascript" src="../js/nativeclient.js"></script>
<script type="text/javascript" src="../js/webcrypto.js"></script>
<script type="text/javascript" src="../js/libtextsecure.js"></script>
<script type="text/javascript" src="../js/libphonenumber-util.js"></script>