售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Mastering PhoneGap Mobile Application Development
Table of Contents
Mastering PhoneGap Mobile Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Task Automation
Before we begin
About Logology
Why use Gulp for task automation?
Setting up your app's directory structure
Installing Gulp
Creating your first Gulp configuration file
Creating a modular Gulp configuration
Copying assets
Performing substitutions
How to execute Cordova tasks
Managing version numbers
Supporting ES2015
Linting your code
Uglifying your code
Putting it all together
Summary
2. ECMAScript 2015 and Browserify
Getting started
Benefits of ES2015
Block scope
Arrow functions
Simpler object definitions
Default arguments
Variable arguments
Destructuring and named parameters
String interpolation
Promises and a taste of ES2016
Classes
Modules
More information
Using Browserify
Modifying our Gulp configuration
Including Node.js packages
Summary
3. Sassy CSS
Getting started
Learning Sass
Comments
Calculation
Variables
Nesting
Mixins and functions
Object-oriented CSS
Modules and partials
Integrating Sass with Gulp
Including the Stylesheets installed via npm
Summary
4. More Responsive Design
Getting started
Pixel densities
The CSS3 units
Media queries
Image sizing
Using flex-box layout
Summary
5. Hybrid Application Accessibility
Getting started
Types of accessibility features
Color vision deficient
Low vision
Blindness
Auditory disabilities
Motor disabilities
Dyslexia
Seizures
Accessibility for free
What is WAI-ARIA?
The WAI-ARIA roles
Accessibility examples
Separation of presentation and content
Accessible icon buttons
Accessible navigation
Accessible lists
Accessible alerts and dialogs
Fitting in with native accessibility features
Installing the Mobile Accessibility Plugin
Detecting the user's preferred text size
Detecting a screen reader
Speaking custom text
Useful tools
Summary
6. Testing and UI Automation
Getting started
An introduction to assertions
Writing tests using Chai
Language chains
Logical words
Testing existence and types
Testing equality
Testing collections
Running test suites using Mocha
Writing UI automation tests
Installing Appium
Exploring your app with Appium
Creating test cases
Running UI Automation tests using Appium and Mocha
Integrating our tests with Gulp
Summary
7. IndexedDB
Getting started
IndexedDB support and polyfills
Differences between relational and key-object storage
Creating a database
Creating an object store within the database
Handling database upgrades
Transactions
Storing objects
Getting objects
Deleting objects
Using cursors and indexes
Closing the database
Additional resources
Summary
8. Web SQL Database
Getting started
Web SQL Database support
The Cordova SQLite plugin
Creating and opening databases
Transactions
Creating tables
Inserting data and binding values
Querying data (single table, joins, and so on)
Deleting data
The SQLite utilities
Summary
9. Transferring Files
Getting started
Configuring the whitelist
Downloading files from a server
Receiving files using PHP on a server
Uploading files to a server
Monitoring progress
Aborting transfers
Security concerns
Summary
10. Performance
Getting started
Defining performance
The performance difference between desktop browsers, emulators, and physical devices
Desktop browser performance differences
Power availability and consumption
Battery life
Browser impacts
Memory
Storage
Lag
Emulator performance differences
Profiling your app
Profiling on Android
Profiling on iOS
Caveats
Correcting input lag
Correcting visual stutters
Reaching 60 fps
Correcting memory problems
Splitting up and delegating long computations
Summary
11. Graphical Assets
Getting started
App icon requirements
Creating an app icon
Launch screen requirements
Creating a Launch Screen
Configuring your app
Useful resources
Summary
12. Deployment
Build modes
Distribution methods
Signing up for developer accounts
Becoming an Apple iOS developer
Becoming a Google Play Store developer
Generating signed release builds
Managing the iOS signing identities
Managing iOS App IDs
Managing iOS devices
Managing the iOS provisioning profiles
Creating an Android keystore
Signing the release build
Deploying ad hoc releases
Deploying via e-mail
Deploying via URL
Deploying via Diawi
Deploying app store releases
Deploying to the Apple App Store
Deploying to the Google Play Store
Resources
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜