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
15
gaia/dev_apps/test-otasp/index.html
Executable file
15
gaia/dev_apps/test-otasp/index.html
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<title>OTASP Receiver</title>
|
||||
<script type="text/javascript" src="js/otasp.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Status<br>
|
||||
<span id="status"></span>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
22
gaia/dev_apps/test-otasp/js/otasp.js
Executable file
22
gaia/dev_apps/test-otasp/js/otasp.js
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
/* -*- 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() {
|
||||
var mobileConnection = window.navigator.mozMobileConnections &&
|
||||
window.navigator.mozMobileConnections[0];
|
||||
|
||||
if (!mobileConnection)
|
||||
return;
|
||||
|
||||
mobileConnection.addEventListener('otastatuschange', function(status) {
|
||||
// To UI
|
||||
document.getElementById('status').value = status;
|
||||
|
||||
// To logcat
|
||||
dump('###################### OTA Status Changed ######################\n');
|
||||
dump('Status: ' + status + '\n');
|
||||
dump('################################################################\n');
|
||||
});
|
||||
});
|
||||
20
gaia/dev_apps/test-otasp/manifest.webapp
Executable file
20
gaia/dev_apps/test-otasp/manifest.webapp
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "Test OTASP",
|
||||
"description": "OTASP receiver",
|
||||
"type": "certified",
|
||||
"launch_path": "/index.html",
|
||||
"developer": {
|
||||
"name": "The Gaia Team",
|
||||
"url": "https://github.com/mozilla-b2g/gaia"
|
||||
},
|
||||
"permissions": {
|
||||
"mobileconnection":{}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
BIN
gaia/dev_apps/test-otasp/style/icons/default_126.png
Executable file
BIN
gaia/dev_apps/test-otasp/style/icons/default_126.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
BIN
gaia/dev_apps/test-otasp/style/icons/default_142.png
Executable file
BIN
gaia/dev_apps/test-otasp/style/icons/default_142.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
BIN
gaia/dev_apps/test-otasp/style/icons/default_189.png
Executable file
BIN
gaia/dev_apps/test-otasp/style/icons/default_189.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
BIN
gaia/dev_apps/test-otasp/style/icons/default_284.png
Executable file
BIN
gaia/dev_apps/test-otasp/style/icons/default_284.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
BIN
gaia/dev_apps/test-otasp/style/icons/default_84.png
Executable file
BIN
gaia/dev_apps/test-otasp/style/icons/default_84.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in a new issue