doc02 - KoreaSenchaUserGroup/Lab1 GitHub Wiki
DOC 2. [Overview] What's New in Sencha Touch 2.0
์๋ฌธ : http://docs.sencha.com/touch/2-0/#!/guide/whats_new
๋ฒ์ญ : ์ ๊ฑด์ฐ [Github:NangChun]
Here's a list of the new features and functionality in Sencha Touch 2.0 that were not part of the earlier versions.
Note: This guide is a work in progress and does not cover all new Sencha Touch 2 functionality. Check back frequently for updates. Sencha Touch 2 is currently in Developer Preview. Expect there to be bugs, missing features, and incomplete documentation.
์ผ์ฐจํฐ์น 2.0 ์์ ์๋ก์์ง ์
๋ค์์ ์ด์ ๋ฒ์ ์ ์ผ๋ถ๊ฐ ์๋์๋ ์ผ์ฐจํฐ์น 2.0์ ์๋ก์ด ๊ธฐ๋ฅ๊ณผ ๊ธฐ๋ฅ์ ๋ชฉ๋ก์ ๋๋ค.
์ฐธ๊ณ : ์ด ๊ฐ์ด๋๋ ์งํ์ค์ธ ์ํ์ด๋ฉฐ ๋ชจ๋ ์๋ก์ด ์ผ์ฐจํฐ์น 2 ๊ธฐ๋ฅ์ด ์ ์ฉ๋์ง ์์ต๋๋ค. ์ ๋ฐ์ดํธ๋ฅผ ์์ฃผ ํ์ธํ์ญ์์ค. ์ผ์ฐจํฐ์น 2๋ ํ์ฌ ๊ฐ๋ฐ์ ํ๋ฆฌ๋ทฐ ์ ๋๋ค. ๋ฒ๊ทธ, ๋๋ฝ๋ ๊ธฐ๋ฅ ๋ฐ ๋ถ์์ ํ ๋ฌธ์๊ฐ ์์ ์ ์์ต๋๋ค.
Welcome to Sencha Touch 2
Sencha Touch was the first HTML5 mobile framework and 2.0 is its most significant upgrade. The foremost focus of the release is performance -- getting apps running fast on as many devices as possible. Apps start up much faster, provide a much snappier initial render and layout, and lay out again immediately when a device is roatated. Among the other significant enhancements:
-
A brand new scroller, optimized for each platform and faster than ever - especially on Android devices. We've optimized the rendering process and have applied innovative techniques to reuse existing components without having to instantiate new ones.
-
Many innovations from Ext JS 4, including the advanced new class system, reconfigurable components, and improvements to application architecture.
-
Increased support for a wider range of devices with reduced emphasis on WebKit and a more robust platform that we can use to support more devices over time.
Here's a closer look at these and other enhancements introduced with Sencha Touch 2.0.
์ผ์ฐจํฐ์น2์ ์ค์ ๊ฒ์ ํ์ํฉ๋๋ค.
์ผ์ฐจํฐ์น๋ ์ฒซ๋ฒ์งธ HTML5 ๋ชจ๋ฐ์ผ ํ๋ ์์ํฌ์ด๋ฉฐ 2.0์์ ๊ฐ์ฅ ์ค์ํ ์ ๊ทธ๋ ์ด๋๊ฐ ์์์ต๋๋ค. ๋ฆด๋ฆฌ์ค์ ์ ์ผ์ ์ด์ฒจ์ ์ฑ๋ฅ ์ ๋๋ค. ๋ณด๋ค ๋ง์ ์ฅ๋น์์ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋น ๋ฅด๊ฒ ์คํํ ์ ์์ต๋๋ค. ํ ์ฌ ๋ ๋น ๋ฅด๊ฒ ์ ํ๋ฆฌ์ผ์ด์ ์ด ์์๋๊ณ , ํ ์ฌ ์ ์ํ๊ฒ ์ด๊ธฐ ๋ ๋๋ง๊ณผ ๋ ์ด์์์ ์ ๊ณตํ๋ฉฐ, ์ฅ์น๊ฐ ํ์ ํ๋ฉด ํ๋ฉด์ ์ฆ์ ๋ค์ ๋ฐฐ์นํฉ๋๋ค. ๊ทธ ์ค ๋ค๋ฅธ ์ค์ํ ๊ฐ์ ์ฌํญ ์ ๋๋ค :
-
์๋ก์ด ์คํฌ๋กค๋ฌ, ์ด๋ ๋ ๋ณด๋ค๋ ๊ฐ ํ๋ซํผ์ - ํนํ ์๋๋ก์ด๋ ์ฅ์น์์ ๋น ๋ฅด๊ณ ์ต์ ํ๋. ๋ ๋๋ง ํ๋ก์ธ์ค๋ฅผ ์ต์ ํํ๊ณ ์ ์ธ์คํด์ค๋ฅผ ์ ์ฉํ์ง ์๊ณ ๊ธฐ์กด์ ์ปดํฌ๋ํธ๋ฅผ ์ฌ์ฌ์ฉํ๊ธฐ ์ํด ํ์ ์ ์ธ ๊ธฐ์ ์ ์ฌ์ฉ.
-
์๋ก์ด ๊ณ ๊ธ ํด๋์ค ์์คํ , ์ฌ๊ตฌ์ฑ ๊ตฌ์ฑ ์์ ๋ฐ ์์ฉ ํ๋ก๊ทธ๋จ ์ํคํ ์ฒ์ ๋ํ ํฅ์๋ ๊ธฐ๋ฅ์ ํฌํจํ๋ฉฐ EXT JS 4์์์ ๋ง์ ํ์ .
-
์๊ฐ์ด ์ง๋๋ฉด์ ์ฅ์น๋ค์ ์ข ๋ฅ๊ฐ ๊ด๋ฒ์ํ๊ฒ ๋์ด๋จ๊ณผ ๋์์ ์นํท์ด ๊ฐํ๊ณ ๊ฐ๋ฒผ์์ง๋ฉด์ ๋๋ง์ ์ฅ์น๋ค์ ์ง์ํ๋๋ฐ ์ฌ์ฉํ ์ ์๋ ๋ณด๋ค ๊ฐ๋ ฅํ ํ๋ซํผ.
์ฌ๊ธฐ ์ผ์ฐจํฐ์น 2.0๊ณผ ํจ๊ป ์๊ฐ๋ ์ด๋ฌํ ๋ฐ ๊ธฐํ ํฅ์๋ ๊ธฐ๋ฅ์ ๋ํด ์์ธํ ์ดํด๋ณด์ค ์ ์์ต๋๋ค.
Smaller, faster layout engine
Sencha Touch offers a very flexible layout system that makes it easy to lay out apps for a variety of device shapes and sizes. Version 2 brings a layout engine that runs much more like the browser's optimized CSS engine. The result is enormously improved performance in several key areas:
- Apps render and lay out faster on startup
- Updating the screen after rotating the device is much faster than with Sencha Touch 1.x apps
- Layout engine is much smaller, resulting in faster download
All of the layout configuration options from Sencha Touch 1 continue to work with the new layout engine so you don't have to change a line of code.
The result is massively improved layout performance across the board. Screens pop onto the page much faster when navigating through the app, giving a much more fluid experience. The most dramatic improvement occurs when a device changes orientation. The new layout engine is so fast we had to use a high-speed camera to measure it. Hereโs the Kitchen Sink buttons example running on 1.x and 2.x, slowed down to one quarter speed:
์๊ณ ๋น ๋ฅธ ๋ ์ด์์ ์์ง
์ผ์ฐจํฐ์น๋ ์ฝ๊ฒ ์ฅ์น ํํ์ ํฌ๊ธฐ์ ๋ค์ํ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ฐฐ์นํ๊ธฐ ์ํด ๋ง๋ค์ด์ ธ ๋งค์ฐ ์ ์ฐํ ๋ ์ด์์ ์์คํ ์ ์ ๊ณตํฉ๋๋ค. ๋ฒ์ 2๋ ๋ธ๋ผ์ฐ์ ์ ์ต์ ํ๋ CSS์์ง๊ณผ ๊ฐ์ด ๋ ๋ง์ ๊ฒ๋ค์ ์คํํ๋ ๋ ์ด์์ ์์ง์ ์ ๊ณตํฉ๋๋ค. ๊ทธ ๊ฒฐ๊ณผ ๋ช ๊ฐ์ง ์ฃผ์ ๋ถ์ผ์์ ์ฑ๋ฅ์ด ๋งค์ฐ ํฅ์ ๋์์ผ๋ฉฐ ๋ค์๊ณผ ๊ฐ์ต๋๋ค :
- ์ ํ๋ฆฌ์ผ์ด์ ๋ ๋๋ง ๋ฐ ์์ํ ๋ ๋นจ๋ฆฌ ๋ฐฐ์น
- ์ ํ๋ฆฌ์ผ์ด์ ์์ ์ฅ์น๋ฅผ ํ์ ํ ํ๋ฉด์ด ์ผ์ฐจํฐ์น 1.x๋ณด๋ค ํจ์ฌ ๋น ๋ฅธ ์ ๋ฐ์ดํธ
- ๋ ์ด์์ ์์ง์ ํจ์ฌ ์์์ง๊ณ , ๋น ๋ฅธ ๋ค์ด๋ก๋
์ฝ๋๋ผ์ธ์ ๋ณ๊ฒฝํ์ง ์์๋ ๋๋๋ก ์ผ์ฐจํฐ์น 1์ ๋ชจ๋ ๋ ์ด์์ ๊ตฌ์ฑ ์ต์ ์ ์ ๋ ์ด์์ ์์ง๊ณผ ์ง์์ ์ผ๋ก ์ผํ๊ณ ์์ต๋๋ค.
๊ทธ ๊ฒฐ๊ณผ ๋ณด๋๊ฐ ๊ต์ฐจํ ๋์ ์ฑ๋ฅ์ด ํํํ๊ฒ ํฅ์๋์์ต๋๋ค. ์ฑ์ ํญ์ ๋น ๋ฅด๊ฒ ํ์ ํ ๋์๋ ํ์ ์ฐฝ์ด ๋งค์ฐ ๋น ๋ฅด๊ฒ ๋จ๋ฉฐ, ์ ์ฐํ ๊ฒฝํ์ ๋์ฑ ๋ง์ด ์ ๊ณตํด์ค๋๋ค. ์ ๋ ์ด์์ ์์ง์ด ๋นจ๋ผ์ง ๋งํผ ๊ทธ๋ฅผ ์ธก์ ํ๋ ๊ณ ์ ์นด๋ฉ๋ผ ๋๊ตฌ๋ฅผ ์ด์ฉํ๊ณ ์์ต๋๋ค. ๋ค์์ ์ฑํฌ๋ ๋ฒํผ ์์ ๋ก 1.x์ 2.x๋ณด๋ค ๋งค๋ถ๊ธฐ๋ง๋ค ์คํ์๋๊ฐ ๋ํ๋ฉ๋๋ค :
Stronger, smarter core
Sencha Touch benefits from a shared development environment with Ext JS. Ext JS 4 brought a range of new innovations that are now build into Sencha Touch, including the following:
- Upgraded class system with support for dynamic loading and dependencies
- Support for class configurations as a core construct - gives you getters and setters for free and a clean, consistent API
๋๋ํ๋ฉฐ ๋๊ฐํด์ง ์ฝ์ด
์ผ์ฐจํฐ์น EXT JS์ ๊ณต์ ๊ฐ๋ฐ ํ๊ฒฝ์ ์ฅ์ . EXT JS 4๋ ์ด์ ๋ค์๊ณผ ๊ฐ์ ์ผ์ฐจํฐ์น์ ๋น๋๋๋ ์๋ก์ด ํ์ ์ ๋ฒ์๋ฅผ ๊ฐ์ ธ์์ต๋๋ค :
- ๋์ ๋ก๋ฉ๊ณผ ์ข ์์ฑ์ ์ง์ํ๋๊ฒ๊ณผ ์ ๊ทธ๋ ์ด๋๋ ํด๋์ค ์์คํ
- ์ฝ์ด ๊ตฌ์กฐ์ ๊ฐ์ ํด๋์ค ๊ตฌ์ฑ ์ง์ - ๋ฌด๋ฃ์ด๋ฉฐ ๊นจ๋ํ๊ณ ์ผ๊ด๋ API์ ๋น์ ์๊ฒ getters์ setters์ ์ ๊ณต
Faster startup time
We werenโt happy with app startup time in 1.x so weโre optimizing everything we can with startup. So far weโre seeing between 10% to 25% improvement in startup time on a range of devices when testing our Kitchen Sink example. This app is sizableโit demonstrates almost every component in the framework. On many devices, it loads almost a second faster in 2.x:
ํ ์์๋ ๋ชจ๋ ์์์ ์ต์ ํํ๊ณ ์์ผ๋ฏ๋ก 1.x์์์ ์์ฉ ํ๋ก๊ทธ๋จ ์์์๊ฐ์ ๋ง์กฑํ์ง ๋ชปํ์์ต๋๋ค. ์ง๊ธ๊น์ง ์ฑํฌ๋ ์์ ๋ฅผ ํ ์คํธํ ๋ ๊ธฐ๊ธฐ์ ๋ํ ์์์๊ฐ ๋ฒ์๋ฅผ 25% 10% ์ฌ์ด๋ก ๊ฐ์ ํ ๊ฒ์ผ๋ก ๋ณด๊ณ ์์ต๋๋ค. ์ด ์ ํ๋ฆฌ์ผ์ด์ ์ ์๋นํ ํฐ ํ๋ ์์ํฌ์ ๊ฑฐ์ ๋ชจ๋ ๊ตฌ์ฑ ์์๋ฅผ ๋ณด์ฌ์ค๋๋ค. ๋ง์ ์ฅ์น์์ 2.x๊ฐ ๊ฑฐ์ ๋๋ฐฐ๊ฐ ๋น ๋ฅด๊ฒ ๋ก๋ ๋์์ต๋๋ค :
Class system and apps
Sencha Touch 2 uses the powerful new class system from Ext JS 4. This provides all the benefits of dynamic loading, intelligent builds that only include the classes you use, mixins, configurations, and all the other features of the new engine. For details, see the How to use classes in Sencha Touch 2 guide.
Weโve also brought across the Ext JS 4 application architecture, that includes ComponentQuery and production build support. Weโre not quite done with the model view controller (MVC) packaged in the developer beta release and will be adding features like deep linking/history support in upcoming previews and betas.
์ดํ๋ฆฌ์ผ์ด์ ๊ณผ ํด๋์ค ์์คํ
์ผ์ฐจํฐ์น 2๋ EXT JS 4์ ๊ฐ๋ ฅํ๊ณ ์๋ก์ด ์์ค์ ํด๋์ค ์์คํ ์ ์ฌ์ฉํฉ๋๋ค. ์ด๋ ๋์ ๋ก๋ฉ์๋ง ์ฌ์ฉํ ํด๋์ค, mixins, ๊ตฌ์ฑ, ๊ทธ๋ฆฌ๊ณ ์๋ก์ด ์์ง์ ๋ค๋ฅธ ๋ชจ๋ ๊ธฐ๋ฅ์ ํฌํจํ ์ง๋ฅ์ ๋น๋์ ๋ชจ๋ ์ด์ ์ ์ ๊ณตํฉ๋๋ค. ์์ธํ ๋ด์ฉ์ ์ฐธ์กฐ Sencha ํฐ์น 2์์ ํด๋์ค ์ด์ฉ ๋ฐฉ๋ฒ ์๋ด.
๋ํ EXT JS 4 ์ ํ๋ฆฌ์ผ์ด์ ์ํคํ ์ฒ๋ฅผ ๊ฐ์ ธ ์์ผ๋ฉฐ, ComponentQuery ๋ฐ ์ ์ ๋น๋์ง์์ด ํฌํจ๋์ด ์์ต๋๋ค. ๊ฐ๋ฐ์ ๋ฒ ํ ๋ฆด๋ฆฌ์ฆ๋ ์์ง ๋๋๊ฒ ์์๊ณ ๋ชจ๋ธ๋ทฐ ์ปจํธ๋กค๋ฌ ํจํค์ง(MVC)์ ํจ๊ป deep linking / ์์ ๋ ํ๋ฆฌ๋ทฐ์ ํ์คํ ๋ฆฌ ์ง์๊ณผ ๊ฐ์ ๋ฒ ํ๊ธฐ๋ฅ์ ์ถ๊ฐํ ๊ฒ์ ๋๋ค.
Config-driven components
One of the benefits of the new class system is the ability to set up 'configs' - simple properties that are automatically given getter and setter functions, defaults, and more.
Sencha Touch 2 makes use of the config system throughout the framework. Whenever you see a config on a class you already know that you can reconfigure it at any time (even after it is rendered). Even better, because the config's setter name always follows the same pattern you already know what function to call.
For example, we can give a 'Text Field' a label when we instantiate it and then know we can easily change it later:
var text = Ext.create('Ext.form.Text', {
label: 'My Field'
});
//anything we can configure also has a setter function
//its name always follows the setConfigName pattern
text.setLabel('Another Field');
Configs are great because they give classes a very clean API. Everything you see under the 'Config options' in the API docs for each class is a true config complete with standardized getter and setter functions.
For a full overview of the new capabilities see the Class System guide .
config ๊ธฐ๋ฐ์ ๊ตฌ์ฑ ์์
์ ํด๋์ค ์์คํ ์ ์ฅ์ ์ค ํ๋๋ 'configs'์ ์ค์ ํ๋ ๊ธฐ๋ฅ์ ๋๋ค - ์๋ getter ๋ฐ setter ๊ธฐ๋ฅ, ๋ํดํธ๊ฐ ๋ฑ์ ๋ถ์ฌํ๋ ์์ฑ์ ๋๋ค. ์ผ์ฐจํฐ์น 2 ํ๋ ์์ํฌ์ ๊ฑธ์ณ config ์์คํ ์ ์ฌ์ฉํฉ๋๋ค. ์๋ค์ํผ ํด๋์ค์ config๋ฅผ ๋ณผ ๋๋ง๋ค ์ธ์ ๋ ์ง reconfigure(๋ ๋๋ง ํ์๋) ํ ์ ์์ต๋๋ค. ํจ์ฌ ๋์ผ๋ฉฐ, ๋๋ฌธ์ ์ธ์ ๋ config's Setter ์ ๊ฐ์ ์ด๋ฆ์ ํจ์ํธ์ถ ๋ฐฉ์์ ๋ฐ๋ฆ ๋๋ค.
์๋ฅผ ๋ค์ด, 'ํ ์คํธ ํ๋'์ ์ด๊ธฐํํ๊ณ ์ฝ๊ฒ ๋์ค์ ๋ณ๊ฒฝํด ์ค ์ ์์์ ์๊ณ ์์ ๋์ label ์ ๋๋ค :
var text = Ext.create('Ext.form.Text', {
label: 'My Field'
});
//์ธ์ ๋ setter ํจ์๋ฅผ ๊ฐ์ง๊ณ configure ํ ์ ์๋ค.
//์ด๋ฆ์ ํญ์ setConfigName ํจํด์ ๋ฐ๋ฅธ๋ค.
text.setLabel('Another Field');
Configs๋ฅผ ์ฐ๋ ์ฃผ๋ ์ด์ ๋ ํด๋์ค์๊ฒ ๋งค์ฐ ๊น๋ํ API๋ฅผ ์ ๊ณตํ๊ธฐ ๋๋ฌธ์ ๋๋ค. ๋ณด์ด๋ ๋ชจ๋ ๊ท๊ฒฉํ๋ getter์ setter ํจ์๋ ํจ๊ป ๊ฐ๊ฐ์ ๊ตฌ์ฑ์ด ์๋ฃ๋ ํด๋์ค๋ฅผ ์ํ API๋ฌธ์์ 'Config ์ต์ '์ ๋ฐ๋ฆ ๋๋ค.
์๋ก์ด ๊ธฐ๋ฅ์ ์ ์ฒด ๊ฐ์๋ ํด๋์ค ์์คํ ๊ฐ์ด๋๋ฅผ ์ฐธ์กฐ.
Improved MVC Capabilities
Sencha Touch 1 came with a simple way to organize your application along MVC (Model View Controller) lines. Sencha Touch 2 significantly improves on this, incorporating full history support, a powerful new way to control Components, and a powerful way to customize your application for a different screen sizes.
On top of this, the data package has been ported to use the new class system, making it much more flexible and improving performance. For a full overview on the MVC improvements in Sencha Touch 2 see the following guides:
- Intro to Applications
- Profiles
- Controllers
- History Support
ํฅ์๋ MVC ๊ธฐ๋ฅ
์ผ์ฐจํฐ์น 1์ MVC (๋ชจ๋ธ ๋ทฐ ์ปจํธ๋กค๋ฌ) ๊ตฌ์กฐ๋ฅผ ๋ฐ๋ผ ์์ฉํ๋ก๊ทธ๋จ์ ๊ตฌ์ฑํ๋ ๊ฐ๋จํ ๋ฐฉ๋ฒ์ผ๋ก ํด์์ต๋๋ค. ์ผ์ฐจํฐ์น 2๋ ํฌ๊ฒ ์ ์ฒด ํ์คํ ๋ฆฌ ์ง์, ๊ฐ๋ ฅํ๊ณ ์๋ก์ด ๋ฐฉ๋ฒ์ผ๋ก ๊ตฌ์ฑ ์์๋ฅผ ์ ์ด, ๊ทธ๋ฆฌ๊ณ ์์ฉํ๋ก๊ทธ๋จ์์ ์๋ก ๋ค๋ฅธ ํ๋ฉด ํฌ๊ธฐ๋ฅผ ์ฌ์ฉ์์๊ฒ ๋ง์ถ๋ ๊ฐ๋ ฅํ ๋ฐฉ๋ฒ๋ฑ์ ํตํฉํ์ฌ ํฅ์์ํต๋๋ค.
๋ฐ์ดํฐ ํจํค์ง๋ ํจ์ฌ ๋ ์ ์ฐํ ์ ์ ๋ฐ ์ฑ๋ฅ์ ๊ฐ์ , ์ ํด๋์ค ์์คํ ์ ์ฌ์ฉํ๋ ํผ์ ์ฅ์ฐฉ์ ํ ์ ์์ต๋๋ค. ์ผ์ฐจํฐ์น 2 MVC ๊ฐ์ ์ ๋ํ ์ ์ฒด ๊ฐ์๋ ๋ค์ ๊ฐ์ด๋๋ฅผ ์ฐธ์กฐํ์ญ์์ค :
- ์ดํ๋ฆฌ์ผ์ด์ ๊ฐ๋ก
- ํ๋กํ
- ์ปจํธ๋กค๋ฌ
- ๊ธฐ๋ก ์ง์
Much better Android support
Sencha Touch 2 brings a big improvement in Android performance, particularly when it comes to scrolling and animation. In Sencha Touch 1.x Android devices were noticeably slower when scrolling through large lists. Animations could be choppy and exhibit weird visual artifacts.
Touch 2 gives Android its own optimized mechanism for achieving both smooth scrolling and fast, fluid animations. Weโll go further into the technology behind these advances at SenchaCon later this month, but for now hereโs the Motorola Atrix again, showing just how much faster 2.x feels on Android devices:
ํฅ์๋ ์๋๋ก์ด๋ ์ง์
์ผ์ฐจํฐ์น 2๋ ์คํฌ๋กค ์ ๋๋ฉ์ด์ ์ ๊ดํด์, ์๋๋ก์ด๋์ ์ฑ๋ฅ์ ํนํ ํฐ ํฅ์์ ๊ฐ์ ธ์ต๋๋ค. ์ผ์ฐจํฐ์น 1.x ์์ ์๋๋ก์ด๋ ๋๋ฐ์ด์ค์์ ํฐ ๋ชฉ๋ก์ ์คํฌ๋กค์ด ๋์ ๋๊ฒ ๋๋ ค์ง๋๋ค. ์ ๋๋ฉ์ด์ ์ด ์์ฃผ ๋์ด์ง์ ์์ผ๋ฉฐ ์ด์ํ ๊ฒฐ๊ณผ๋ฌผ์ด ๋ณด์ผ ์ ์์ต๋๋ค.
ํฐ์น 2๋ ์๋๋ก์ด๋์๊ฒ ๋ถ๋๋ฌ์ด ์คํฌ๋กค๊ณผ ์ ๋์ ์ธ ๊ณ ์ ์ ๋๋ฉ์ด์ ์ ๋ชจ๋ ๋ฌ์ฑํ๊ธฐ ์ํด ์์ฒด์ ์ผ๋ก ์ต์ ํ๋ ๋ฉ์ปค๋์ฆ์ ์ ๊ณตํฉ๋๋ค. ์ด๋ฌ SenchaCon ์ดํ๋ก๋ ๋์ค์ ๊ธฐ์ ์ ์ผ๋ก ๋ ๋์๊ฐ ๊ฒ ์ ๋๋ค๋ง, ์ง๊ธ์ ์๋๋ก์ด๋ ์ฅ์น์์ 2.x์ด ์ผ๋ง๋ ๋นจ๋ผ์ก๋์ง๋ฅผ ๋ชจํ ๋ก๋ผ Atrix๋ก ๋๊ปด๋ณด์ญ์์.
Native packaging
One of the most common questions developers ask when building Sencha Touch apps is, โHow do I get my app in front of customers?โ In many scenarios, building and deploying apps to the web is exactly what developers want and customers expect. In other cases, getting apps in to app stores is the fastest way to reach customers.
Sencha Touch 2 makes it incredibly easy to build and deploy apps to both the Android Marketplace and the iOS App Store. Today, along with Sencha Touch 2 preview, weโre shipping a developer preview of our SDK Tools 2.0. The new SDK Tools include a new sencha package
command that enables you to take your Sencha Touch app and package it up as an APP for iOS or an APK for Android. Itโs that easy: One command, and your app is ready to be submitted to Apple or Google for distribution.
To make a developerโs life easier, on iOS the packager doesnโt require the native SDK so you can package without having to download Appleโs SDK. Just download the SDK Tools and youโre ready to build. If youโre deploying to Android, youโll need to download the Android SDK from Google. For developers who do have the the native SDKs, you can use the SDK Tools to directly push your app to the iOS and Android emulators so you can see how your app will run on device.
The SDK Tools Developer Preview is now available on Mac OS X; Windows and Linux support will be added soon. Weโll also be adding device APIs that will make it easy to use native features like camera and contacts among others. For all the details on how to use the new packaging capabilities, see Native Packaging for iOS on Mac and Native Android Packaging. We think youโll be as excited as we are with how easy it is now to build and package your web app for native distribution.
๋ค์ดํฐ๋ธ ํจํค์ง
์ผ์ฐจํฐ์น ์ ํ๋ฆฌ์ผ์ด์ ์ ๋น๋ํ๋ ์ค ๊ฐ๋ฐ์ ํ๋ช ์ด ๊ฐ์ฅ ํํ ์ง๋ฌธ์ ํ๊ธธ, "์ ์ ์ฑ์ ์ด๋ป๊ฒ ๊ณ ๊ฐ ์์ ๋ ธ์ถํ ์ ์์๊น์?" ๋ง์ ์๋๋ฆฌ์ค ์์์, ๊ณ ๊ฐ๋ค๊ณผ ๊ฐ๋ฐ์๋ค์ด ์ ํํ ์ผ๋ง๋งํผ ์๊ตฌํ๋๋์ ๋ฐ๋ผ ์น์ผ๋ก ์ฑ์ด ๋น๋๋๊ณ ๋ฐฐํฌ๋ฉ๋๋ค. ๊ทธ ์ธ์ ์ฑ์คํ ์ด๋ก ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ฐ๋ ๊ฒ์ ๊ณ ๊ฐ์๊ฒ ์ ๊ทผํ๋ ๊ฐ์ฅ ๋น ๋ฅธ ๋ฐฉ๋ฒ์ ๋๋ค.
์ผ์ฐจํฐ์น 2๋ ์๋๋ก์ด๋ ๋ง์ผ๊ณผ iOS ์ฑ์คํ ์ด ๋ชจ๋ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋น๋ํ๊ณ ๋ฐฐํฌํ๊ธฐ๊ฐ ๋งค์ฐ ์ฝ์ต๋๋ค. ์ค๋๋ ์ผ์ฐจํฐ์น2 ํ๋ฆฌ๋ทฐ ์ ํจ๊ป, ์ฐ๋ฆฌ๋ SDK ๋๊ตฌ 2.0 ๊ฐ๋ฐ์ ํ๋ฆฌ๋ทฐ๋ฅผ ์ถ์ํ๊ณ . ์๋ก์ด SDK ๋๊ตฌ๋ ์๋ก์ด ์ผ์ฐจํจํค์ง์ ํฌํจ๋๊ณ ์ผ์ฐจํฐ์น ์ ํ๋ฆฌ์ผ์ด์ ์ ๊ฐ์ง๊ณ iOS์ด๋ ์๋๋ก์ด๋์ ๋ํ APK๋ฅผ์ํ APP๋ก ์ต๋ ํจํค์ง ํ ์ ์๋๋ก ๋ช ๋ นํ ์ ์์ต๋๋ค. ํน์ ๋ง์ผ์ ์ข ์๋์ง ์๊ฒ ๋ฐฐํฌ ์ค๋น๋ฅผ ํ๋ ์ผ์ ์ฝ์ง ์์ต๋๋ค.
์ ํ์ SDK๋ฅผ ๋ค์ด๋ก๋ํ์ง ์๊ณ ํจํค์งํ ์ ์๊ฒ packager๊ฐ ๋ค์ดํฐ๋ธ SDK๋ฅผ ์๊ตฌํ์ง ์๋ iOS๋ก, ๊ฐ๋ฐ์์ ํ๋์ ๋ ํธํ๊ฒ ํฉ๋๋ค. ๊ทธ์ SDK ๋๊ตฌ๋ฅผ ๋ค์ด๋ก๋ํ๋ฉด ๋น๋ ์ค๋น๊ฐ ๋ ๊ฒ์ ๋๋ค. ์๋๋ก์ด๋๋ก ๋ฐฐํฌํ๋ ๊ฒฝ์ฐ ๊ตฌ๊ธ์์ ์๋๋ก์ด๋ SDK๋ฅผ ๋ค์ด๋ก๋ํด์ผํฉ๋๋ค. ๊ฐ๋ฐ์๋ค์ ์ํด ๋ค์ดํฐ๋ธ SDKs๊ฐ ์์ผ๋ฉฐ, iOS์ ์๋๋ก์ด๋ ์๋ฎฌ๋ ์ดํฐ์ ์ฆ์ ์ฑ์ ๋ฃ์ด ์ฑ์ด ์ด๋ป๊ฒ ์ฅ์น์์ ์คํ๋๋์ง ๋ณผ ์์๋ sdk๋๊ตฌ๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
SDK ๋๊ตฌ ๊ฐ๋ฐ์ ํ๋ฆฌ๋ทฐ๋ ์ด์ ๋งฅ OS X์์ ์ฌ์ฉํ ์ ์๊ณ , Windows ๋ฐ Linux ์ง์์ ๊ณง ์ถ๊ฐ๋ฉ๋๋ค. ๋ํ ์ฝ๊ฒ โโ์นด๋ฉ๋ผ์ ๋ค๋ฅธ ์ฌ๋ ์ฌ์ด์ ์ ์ด๊ณผ ๊ฐ์ ๊ธฐ๋ณธ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๋ ์ฅ์น API๊ฐ ์ถ๊ฐ๋ฉ๋๋ค. ์๋ก์ด ํจํค์ง ๊ธฐ๋ฅ ์ฌ์ฉ ๋ฐฉ๋ฒ์ ๋ํ ๋ชจ๋ ์ธ๋ถ ์ฌํญ์ ๋ณด๋ ค๋ฉด Mac์์ iOS๋ฅผ ์ํ ๋ค์ดํฐ๋ธ ํจํค์ง ๋ฐ ๋ค์ดํฐ๋ธ ์๋๋ก์ด๋ ํจํค์ง. ์ด์ ๋ค์ดํฐ๋ธ ๋ฐฐํฌ๋ฅผ ๋ชฉ์ ์ผ๋ก ์น์ฑ์ ๋น๋ํ๊ณ ํจํค์ง ํ๋๊ฒ์ด ๋๋ฌด๋ ์ฌ์์ ธ์ ์ฐ๋ฆฌ์ฒ๋ผ ํฅ๋ถ๋์๋ฆฌ๋ผ ์๊ฐํฉ๋๋ค.
Overhauled docs
All of the most widely used classes in Sencha Touch 2 feature excellent documentation right in the API reference. Interspersed into the class docs are dozens of live examples that run right in your browser and let you see (and even modify) the example code on the fly. Weโve also brought all of the SASS variables for each component into the API docs, making it much easier to see what you can customize.
Weโre shipping 11 brand new guides out of the box. We have guides that explain core concepts like layouts, components, and classes, others that cover how to use components like tab panels, forms, and carousels, and a new getting started guide that takes you through building your first app from scratch.
์ฒ ์ ํ ๋ฌธ์๋๊ตฌ
API ๋ ํผ๋ฐ์ค์์ ๋ฐ์ด๋ ๊ธฐ๋ฅ์ ์ผ์ฐจํฐ์น2 ํด๋์ค๊ฐ ๋ฌธ์ ์ค๋ฅธ์ชฝ์ ๊ฐ์ฅ ๋๊ฒ ์ฌ์ฉ ๋์์ต๋๋ค. ํด๋์ค ๋ฌธ์๋ก ๋ฐฐ์น๋์ด ๋ฐ๋ก ๋ธ๋ผ์ฐ์ ์์ ์คํ๋๋ ๋ผ์ด๋ธ ์์ ์์ญ๊ฐ์ง๊ฐ ์์ผ๋ฉฐ (์ง์์ ์ธ ์์ ๊ณผ) ์์ ์ฝ๋๋ฅผ ๋ฐ๋ก ๋ณด์ญ์์ค. ๋ํ API ๋ฌธ์์ ๊ฐ ์ปดํฌ๋ํธ์ ๋ํ SASS ๋ณ์๋ฅผ ๋ชจ๋ ๊ฐ์ ธ ์์ผ๋ฉฐ, ํจ์ฌ ์ฌ์ ๋ณด์ด๋๋ก ์ ์ ํฉ๋๋ค.
11๊ฐ์ง์ ์๋ก์ด ๊ฐ์ด๋๋ฅผ ์ถ์ํ์์ต๋๋ค. ๋ ์ด์์, ์ปดํฌ๋ํธ ๊ทธ๋ฆฌ๊ณ ํด๋์ค, ๋ค๋ฅธ๊ฒ์ ๊ฐ์ถ๋ ํญ ํจ๋๊ณผ ๊ฐ์ ์ปดํฌ๋ํธ๋ฅผ ์ด๋ป๊ฒ ์ฌ์ฉํ๋์ง, forms, ๋ฐ carousels, ๊ทธ๋ฆฌ๊ณ ์์ ๊ฐ์ด๋๋ฅผ ํตํด ์ฒซ ๋ฒ์งธ ์ฑ์ ๊ตฌ์ถ ํ ์ ์์ต๋๋ค.