Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
51
gaia/dev_apps/test-wappush/index.html
Executable file
51
gaia/dev_apps/test-wappush/index.html
Executable file
|
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<title>WAP Push Receiver</title>
|
||||
<script type="text/javascript" src="js/wappush.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Sender<br>
|
||||
<input type="text" id="sender" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Content Type<br>
|
||||
<input type="text" id="contentType" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Auth - Pass<br>
|
||||
<input type="text" id="authPass" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Auth - Checked<br>
|
||||
<input type="text" id="authChecked" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Auth - Security Type<br>
|
||||
<input type="text" id="authSEC" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Auth - MAC<br>
|
||||
<input type="text" id="authMAC" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Auth - WBXML data Length<br>
|
||||
<input type="text" id="authWbxmlLength" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Auth - WBXML data<br>
|
||||
<textarea id="authWbxml" rows="15" style="width:90%"></textarea>
|
||||
</p>
|
||||
<p>
|
||||
Content Length<br>
|
||||
<input type="text" id="contentLength" style="width:90%"/>
|
||||
</p>
|
||||
<p>
|
||||
Content<br>
|
||||
<textarea id="content" rows="15" style="width:90%"></textarea>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
38
gaia/dev_apps/test-wappush/js/wappush.js
Executable file
38
gaia/dev_apps/test-wappush/js/wappush.js
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
/* -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
|
||||
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
||||
|
||||
'use strict';
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
window.navigator.mozSetMessageHandler('wappush-received', function(message) {
|
||||
// To UI
|
||||
document.getElementById('sender').value = message.sender;
|
||||
document.getElementById('contentType').value = message.contentType;
|
||||
document.getElementById('content').value = message.content;
|
||||
document.getElementById('contentLength').value = message.content.length;
|
||||
if (message.authInfo) {
|
||||
document.getElementById('authPass').value = message.authInfo.pass;
|
||||
document.getElementById('authChecked').value = message.authInfo.checked;
|
||||
document.getElementById('authSEC').value = message.authInfo.sec;
|
||||
document.getElementById('authMAC').value = message.authInfo.mac;
|
||||
document.getElementById('authWbxmlLength').value = message.authInfo.data.length;
|
||||
document.getElementById('authWbxml').value = JSON.stringify(message.authInfo.data);
|
||||
}
|
||||
|
||||
// To logcat
|
||||
dump('###################### Wap Push Received ######################\n');
|
||||
dump('Sender: ' + message.sender + '\n');
|
||||
dump('Content Type: ' + message.contentType + '\n');
|
||||
dump('Content: ' + message.content + '\n');
|
||||
if (message.authInfo) {
|
||||
dump('Authentication Infomation:\n');
|
||||
dump('Pass: ' + message.authInfo.pass + '\n');
|
||||
dump('Checked: ' + message.authInfo.checked + '\n');
|
||||
dump('SEC: ' + message.authInfo.sec + '\n');
|
||||
dump('MAC: ' + message.authInfo.mac + '\n');
|
||||
dump('Data(' + message.authInfo.data.length + '): ' + JSON.stringify(message.authInfo.data) + '\n');
|
||||
}
|
||||
dump('###############################################################\n');
|
||||
});
|
||||
});
|
||||
|
||||
23
gaia/dev_apps/test-wappush/manifest.webapp
Executable file
23
gaia/dev_apps/test-wappush/manifest.webapp
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"name": "Test Wap Push",
|
||||
"description": "Wap Push Receiver",
|
||||
"type": "certified",
|
||||
"launch_path": "/index.html",
|
||||
"developer": {
|
||||
"name": "The Gaia Team",
|
||||
"url": "https://github.com/mozilla-b2g/gaia"
|
||||
},
|
||||
"permissions": {
|
||||
"wappush":{}
|
||||
},
|
||||
"icons": {
|
||||
"84": "/style/icons/default_84.png",
|
||||
"126": "/style/icons/default_126.png",
|
||||
"142": "/style/icons/default_142.png",
|
||||
"189": "/style/icons/default_189.png",
|
||||
"284": "/style/icons/default_284.png"
|
||||
},
|
||||
"messages": [
|
||||
{ "wappush-received": "/index.html" }
|
||||
]
|
||||
}
|
||||
BIN
gaia/dev_apps/test-wappush/style/icons/default_126.png
Executable file
BIN
gaia/dev_apps/test-wappush/style/icons/default_126.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
gaia/dev_apps/test-wappush/style/icons/default_142.png
Executable file
BIN
gaia/dev_apps/test-wappush/style/icons/default_142.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
gaia/dev_apps/test-wappush/style/icons/default_189.png
Executable file
BIN
gaia/dev_apps/test-wappush/style/icons/default_189.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
BIN
gaia/dev_apps/test-wappush/style/icons/default_284.png
Executable file
BIN
gaia/dev_apps/test-wappush/style/icons/default_284.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
BIN
gaia/dev_apps/test-wappush/style/icons/default_84.png
Executable file
BIN
gaia/dev_apps/test-wappush/style/icons/default_84.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in a new issue