-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfirefoxos.tex
More file actions
191 lines (140 loc) · 5.18 KB
/
firefoxos.tex
File metadata and controls
191 lines (140 loc) · 5.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
%%---------------------------------------------------------------
%%---------------------------------------------------------------
\section{Firefox OS}
%%---------------------------------------------------------------
\begin{frame}
\frametitle{¿Qué es Firefox OS?}
\begin{itemize}
\item Sistema operativo basado en Linux para \emph{smartphones} y tabletas
\item Promovido por Mozilla (y otros \emph{partners} industriales, entre ellos Telefónica)
\item Basado completamente en estándares abiertos: HTML5, CSS3 y JavaScript
\item Incluye un modelo de privilegios y una API web abierta para comunicarse con el hardware del dispositivo
\end{itemize}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}
\frametitle{La pila de Firefox OS}
\begin{center}
\begin{figure}[p]
\includegraphics[width=0.65\textwidth]{figs/firefox-os-stack.png}
\end{figure}
\end{center}
\begin{flushright}
{\tiny
Source: http://kumar303.github.io/mozilla-apps-talk/images/firefox-os-stack.png
}
\end{flushright}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}[fragile]
\frametitle{El manifiesto}
\begin{enumerate}
\item El archivo \texttt{manifest.webapp} proporciona información importante sobre la aplicación
\item Sólo el nombre y la descripción son obligatorios.
\end{enumerate}
\begin{footnotesize}
\begin{verbatim}
{
"version": "0.1",
"name": "Open Web App",
"description": "Your new awesome Open Web App",
"launch_path": "/app-template/index.html",
"icons": {
"16": "/app-template/app-icons/icon-16.png",
"48": "/app-template/app-icons/icon-48.png",
"128": "/app-template/app-icons/icon-128.png"
},
"developer": {
"name": "Your Name",
"url": "http://yourawesomeapp.com"
},
\end{verbatim}
\end{footnotesize}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}[fragile]
\frametitle{El manifiesto (y II)}
\begin{footnotesize}
\begin{verbatim}
"locales": {
"es": {
"description": "Su nueva aplicación impresionante Open Web",
"developer": {
"url": "http://yourawesomeapp.com"
}
},
"it": {
"description": "Il vostro nuovo fantastico Open Web App",
"developer": {
"url": "http://yourawesomeapp.com"
}
}
},
"default_locale": "en"
}
\end{verbatim}
\end{footnotesize}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}
\frametitle{Tipos de Aplicaciones en Firefox OS}
\begin{enumerate}
\item Empaquetadas: archivos .zip conteniendo todos los archivos necesarios: HTML, CSS, JavaScript, imágenes, \texttt{manifest}, etc.
\item Alojadas: en un servidor (con su URL). Requieren también un \texttt{manifest}.
\end{enumerate}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}
\frametitle{WebAPIs}
\begin{center}
\begin{figure}[p]
\includegraphics[width=0.99\textwidth]{figs/arewemobileyet.png}
\end{figure}
\end{center}
\begin{flushright}
{\tiny
Source: arewemobileyet.com
}
\end{flushright}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}[fragile]
\frametitle{Web APIs}
\begin{itemize}
\item APIs para interactuar con el \emph{hardware} de dispositivo
\item Algunas APIs requieren permisos
\item Hay APIs previstas para el futuro
\item Se puede ver un listado completo en \url{https://wiki.mozilla.org/WebAPI}
\end{itemize}
\begin{verbatim}
// If this device supports the vibrate API...
if('vibrate' in navigator) {
// ... vibrate for a second
navigator.vibrate(1000);
}
\end{verbatim}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}
\frametitle{Permisos}
Hay tres tipos de APIs, según el tipo de permisos que hacen falta para ser ejecutadas, que
dan lugar a tres tipos de aplicaciones diferentes:
\begin{enumerate}
\item Normales: APIs que no necesitan ningún tipo de permisos de acceso especiales.
\item Privilegiadas: APIs disponibles para los desarrolladores para su uso en aplicaciones. Han de indicar los permisos de acceso en el manifiesto, y han de distribuirse a través de una fuente (\emph{app store}) de confianza.
\item Certificadas: APIs que controlan funciones críticas en un dispositivo, como el marcador de llamadas y los servicios de mensajería. Estos por lo general no están disponibles para desarrolladores terceros.
\end{enumerate}
\end{frame}
%%---------------------------------------------------------------
\begin{frame}
\frametitle{Herramientas de desarrollo}
\begin{itemize}
\item Firefox OS Simulator: integrable en Firefox \\
\url{https://marketplace.firefox.com/developers/docs/firefox_os_simulator}
\item App Manager: permite conectar Firefox a un dispositivo compatible con Firefox OS y enviar las aplicaciones para probarlas \\
\url{https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Using_the_App_Manager}
\item A partir de Firefox 33, \texttt{App Manaer} está siendo reemplazado por \texttt{WebIDE} \\
\url{https://developer.mozilla.org/en-US/docs/Tools/WebIDE}
\item Tests unitarios: QUnit (\url{http://qunitjs.com/})
\end{itemize}
\end{frame}