diff options
Diffstat (limited to 'files/zh-cn/archive/b2g_os/introduction/index.html')
-rw-r--r-- | files/zh-cn/archive/b2g_os/introduction/index.html | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/files/zh-cn/archive/b2g_os/introduction/index.html b/files/zh-cn/archive/b2g_os/introduction/index.html new file mode 100644 index 0000000000..5652a42443 --- /dev/null +++ b/files/zh-cn/archive/b2g_os/introduction/index.html @@ -0,0 +1,110 @@ +--- +title: Firefox OS简介 +slug: Archive/B2G_OS/Introduction +tags: + - B2G + - Firefox OS + - Gaia + - 介绍 + - 社区 +translation_of: Archive/B2G_OS/Introduction +--- +<p> </p> + +<div class="summary"> +<p><span style="font-weight: bold; background-color: rgb(244, 247, 248);">Firefox OS 致力于推进关于手机完全运行web的可能性和允许新的手机使用用户完全的在线使用他们的首部智能手机的范围. 它是一个开放源码的基于Linux的移动操作系统, 开放的Web标准和Mozilla的Gecko引擎科技提供的关于对手机移动平台的重新定义. 通过关于WebAPI对硬件调用的能力的介绍和提供用户一个直观的, 简洁并且优雅的智能手机体验, Mozilla相信对开发者来讲Web将会提供巨大的机遇去得到用户的青睐用优秀的Web软件.</span></p> +</div> + +<h2 style="margin-bottom: 20px; line-height: 30px;" id="目标读者">目标读者</h2> + +<p>这套文档是针对于那些想要学习知道Firefox OS的工作机制,怎样去开发项目,怎样去编译和安装他们自己开发的软件的web和平台开发者们. 对那些想要创建和发布他们的web应用的开发者来说, <a href="https://developer.mozilla.org/en-US/Apps">App Center</a>和<a href="https://developer.mozilla.org/en-US/Marketplace">Marketplace Zone</a>是理想的去处. </p> + +<h2 style="margin-bottom: 20px; line-height: 30px;" id="Firefox_OS_的基本承诺">Firefox OS 的基本承诺</h2> + +<p>对于Web/平台开发者来讲, 最重要的部分是理解整个用户调用接口层其实就是一个能够显示和发布其他Web应用的Web应用. 即使对移动设备的硬件和服务可访问性增强了, 但是任何对于用户接口的修改和你在Firfox OS上新建的应用都还是将会引用标准的web技术. 从一个产品的远景来看, Firefox OS是支持用Gecko(操作系统的产品工程研发代号)去启动系统后运行服务的Mozilla平台品牌. Firefox OS的用户接口层叫做Gaia, 其中包含了系统的默认的应用和系统函数. 想要发现更多关于平台的架构, 请访问 <a href="https://developer.mozilla.org/en-US/Firefox_OS/Platform">平台指南</a>. </p> + +<h2 style="margin-bottom: 20px; line-height: 30px;" id="当前和未来的计划">当前和未来的计划</h2> + +<p>Firefox 0S 2.0正在开发中, 将要出来1.3/1.4 稳定的编译版本. 在开发者和消费者中有很多各种型号不同的手机. 可以知道的更多通过阅读下面的几点:</p> + +<ul> + <li>Firefox OS <a href="https://developer.mozilla.org/en-US/Firefox_OS/Releases">developer release notes</a>: What's newly supported in each release.</li> + <li><a href="https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide">Phone guide</a>: What phones are available.</li> + <li><a href="https://wiki.mozilla.org/B2G/Roadmap">B2G roadmap</a>: See where Firefox OS is headed, and when.</li> +</ul> + +<h3 style="line-height: 24px; letter-spacing: normal;" id="发布周期">发布周期</h3> + +<p>Since Firefox OS 1.2, the Firefox OS release cycle has been aligned as closely as possible with the Gecko and Firefox desktop version release cycle (6 weeks). A new Firefox OS version is released new every three months, so there will be a Firefox OS release for every two Gecko (Firefox browser core) releases.</p> + +<p>For example. Gecko 30 is bundled with Firefox 1.4, bypassing Gecko 29, and Gecko 32 is bundled with Firefox 2.0 (was 1.5), bypassing Gecko 31.</p> + +<div class="note"> +<p><strong>Note</strong>: Check out our <a href="https://wiki.mozilla.org/RapidRelease/Calendar">rapid release calendar</a> to check the corresponding versions between Firefox OS and Gecko / Desktop Firefox, and read <a href="https://wiki.mozilla.org/Release_Management/FirefoxOS/Release_Milestones">Firefox OS Release Milestones</a> for more information on how our releases are managed.</p> +</div> + +<h2 style="margin-bottom: 20px; line-height: 30px;" id="社区">社区</h2> + +<p>Boot to Gecko and Gaia are developed by teams of engineers inside Mozilla, plus, many external contributors from the wider Mozilla/open source community. If you want to talk to the community about any aspect of Firefox OS or Gaia development, a good place to start is our mailing lists and IRC channels, detailed in the below info box.</p> + +<p></p><div class="overheadIndicator communitybox"> + + <div class="column-container"> + <h2 id="加入_Firefox_OS_社区">加入 Firefox OS 社区</h2> + <div class="column-half"> + <div class="communitysubhead">请选择你喜欢的方式加入我们:</div> + <ul class="communitymailinglist"> + <li><a href="https://lists.mozilla.org/listinfo/dev-b2g"> 邮件列表</a></li> + + + <li><a href="http://groups.google.com/group/mozilla.dev.b2g"> 新闻组</a></li> + <li><a href="http://groups.google.com/group/mozilla.dev.b2g/feeds"> Web feed</a></li> +</ul> + </div> + <div class="column-half"> + <ul class="communitycontact"><li><strong>IRC: </strong><a href="irc://irc.mozilla.org/b2g">#b2g</a> <span class="smaller">(<a href="https://wiki.mozilla.org/IRC">了解 IRC</a>)</span></li><li><strong>Other IRC channels: </strong><a href="irc://irc.mozilla.org/gaia" title="Discuss Gaia, the Firefox OS user experience">#gaia</a>, <a href="irc://irc.mozilla.org/openwebapps" title="Talk with Web app developers">#openwebapps</a>, <a href="irc://irc.mozilla.org/webapi" title="Discuss Web APIs used to create powerful Web apps">#webapi</a></li></ul> + </div> + </div> +</div><p></p> + +<p>To file bugs, use our Bugzilla system, and file bugs against the <a href="https://bugzilla.mozilla.org/describecomponents.cgi?product=Firefox%20OS">Firefox OS components</a>. If you are not sure what component to file a bug against, feel free to ask.</p> + +<div class="note"> +<p><strong>Note</strong>: If you have a question or a point to raise about a specific part of the B2G/Gaia source code (for example, a specific Gaia app), you can find more specific contact details on our<a href="https://wiki.mozilla.org/Modules/FirefoxOS">Firefox Modules page</a>.</p> +</div> + +<h2 style="margin-bottom: 20px; line-height: 30px;" id="构建一个操作系统">构建一个操作系统</h2> + +<p>The B2G operating system is based on Mozilla's <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Gecko">Gecko</a> rendering engine, and sits on top of a Linux kernel and userspace hardware abstraction layer (HAL) called <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Platform/Gonk">Gonk</a>. The Gecko talked about here is basically the same Gecko used in Firefox for Android, or Windows, or Mac OS X, etc. Gonk is basically another porting target of Gecko.</p> + +<p>To learn how to build and install Firefox OS, consult our guide to <a href="https://developer.mozilla.org/en-US/Firefox_OS/Building_and_installing_Firefox_OS">Building and installing Firefox OS</a>. You can find the <a href="https://github.com/mozilla-b2g/B2G">B2G source code on Github</a>.</p> + +<h2 style="margin-bottom: 20px; line-height: 30px;" id="为_Gaia_做贡献">为 Gaia 做贡献</h2> + +<p>To contribute to Gaia, you don't need much more than a solid knowledge of web development. To learn about getting Gaia up and running, consult our <a href="https://developer.mozilla.org/en-US/Firefox_OS/Hacking_Firefox_OS/Quickstart_guide_to_Gaia_development">Quickstart guide to Gaia development</a>.</p> + +<p>There are a number of useful tools available to you for debugging Gaia and other web apps running on Firefox OS. To learn about these and much more, consult our guide to <a href="https://developer.mozilla.org/en-US/Firefox_OS/Platform/Gaia/Hacking">Hacking Gaia</a>.</p> + +<h2 style="margin-bottom: 20px; line-height: 30px;" id="为_Firefox_OS_开发_app">为 Firefox OS 开发 app</h2> + +<p>Firefox OS apps are built using standard web technologies — HTML, CSS, JavaScript, etc. — so if you are a web developer you will also have most of what you need. There are a few special JavaScript APIs to know about, which allow you to access device hardware and key features (for example camera, gyroscope, light sensor, contacts, system alarms and notifications...), but these are all well documented on our <a href="https://developer.mozilla.org/en-US/Apps">App Center</a> and <a href="https://developer.mozilla.org/en-US/docs/Web">Web Platform</a> pages.</p> + +<div class="note"> +<p><strong>Note</strong>: If you are a beginner to building open web/Firefox OS apps, or if you want a concise account of the differences between web apps and traditional web pages, the best place to start is our <a href="https://developer.mozilla.org/en-US/Apps/Quickstart">apps Quickstart guide</a>.</p> +</div> + +<h3 style="line-height: 24px; letter-spacing: normal;" id="支持跨_Firefox_OS_版本的应用">支持跨 Firefox OS 版本的应用</h3> + +<p>Note that when developing apps for Firefox OS, you need to bear in mind what platform versions will be available on the devices your customers will have (see our <a href="https://developer.mozilla.org/en-US/Firefox_OS/Developer_phone_guide/Phone_specs#Firefox_OS_phones_available">available phones table</a> for a list.) Remember that it is not as simple to update phone platform software as it is desktop software — users tend to be at the mercy of the network providers. You therefore need to develop apps to support these versions. As an example, multiline Flexbox doesn't work on Firefox OS versions below 1.3, so you may need to use a simpler layout method or provide a fallback for older versions.</p> + +<p>This issue should go away soon, as more consumer Firefox OS devices appear, equipped with newer versions of Firefox OS out of the box.</p> + +<div style="background-color: rgba(193, 56, 50, 0.839844); font-size: 14px;" class="warning"> +<p>The current baseline platform we recommended developing for is <a href="https://developer.mozilla.org/en-US/Firefox_OS/Releases/1.1">Firefox 1.1</a>.</p> +</div> + +<div class="note"> +<p><strong>Note</strong>: MDN's <a href="https://developer.mozilla.org/en-US/docs/Web">web platform reference pages</a> include browser/platform support information, plus you can find support information for more App-specific technologies on our <a href="https://developer.mozilla.org/en-US/Apps/Reference">Apps API Reference</a>.</p> +</div> + +<p> </p> |