Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Merge pull request #19 from crosswalk-project/update-manifests
Browse files Browse the repository at this point in the history
Update manifests for Crosswalk 8+
  • Loading branch information
townxelliot committed Sep 23, 2014
2 parents b5f0fdc + ce7ee43 commit 8625abe
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 60 deletions.
14 changes: 7 additions & 7 deletions extensions-android/xwalk-echo-app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "xwalk_echo_app",
"version": "0.0.0.1",
"app": {
"launch":{
"local_path": "index.html"
"start_url": "index.html",
"icons": [
{
"src": "icon.png",
"type": "image/png",
"sizes": "96x96"
}
},
"icons": {
"96": "icon.png"
}
]
}
9 changes: 2 additions & 7 deletions hello_world/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"name": "HelloWorld",
"manifest_version": 1,
"version": "0.0.0.1",
"app": {
"launch":{
"local_path": "index.html"
}
}
"xwalk_version": "0.0.0.1",
"start_url": "index.html"
}
9 changes: 2 additions & 7 deletions simd-mandelbrot/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"name": "SIMD",
"manifest_version": 1,
"version": "0.0.0.1",
"app": {
"launch":{
"local_path": "index.html"
}
}
"xwalk_version": "0.0.0.1",
"start_url": "index.html"
}
8 changes: 2 additions & 6 deletions space-dodge-game/Crosswalk-6-resize/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"name": "space_dodge_game",
"version": "0.0.0.1",
"app": {
"launch": {
"local_path": "index.html"
}
}
"xwalk_version": "0.0.0.1",
"start_url": "index.html"
}
8 changes: 2 additions & 6 deletions space-dodge-game/Crosswalk-6-scale/manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"name": "space_dodge_game",
"version": "0.0.0.1",
"app": {
"launch": {
"local_path": "index.html"
}
}
"xwalk_version": "0.0.0.1",
"start_url": "index.html"
}
2 changes: 1 addition & 1 deletion space-dodge-game/Crosswalk-8-resize/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "space_dodge_game",
"version": "0.0.0.1",
"xwalk_version": "0.0.0.1",
"start_url": "index.html",
"orientation": "landscape",
"display": "fullscreen",
Expand Down
2 changes: 1 addition & 1 deletion space-dodge-game/Crosswalk-8-scale/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "space_dodge_game",
"version": "0.0.0.1",
"xwalk_version": "0.0.0.1",
"start_url": "index.html",
"orientation": "landscape",
"display": "fullscreen",
Expand Down
23 changes: 12 additions & 11 deletions space-dodge-game/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# space dodge game

A simple side-scrolling HTML5 game where you fly a spaceship and you
A simple side-scrolling HTML5 game where you fly a spaceship and
dodge stuff. The game is used as a basis for demonstrating various
techniques for scaling a game to a device screen using Crosswalk.

Expand Down Expand Up @@ -30,28 +30,32 @@ fit the application into the device screen:

* Crosswalk-6-scale

* landscape orientation set with screen.lockOrientation()
* fullscreen set with --fullscreen option to make_apk.py
* landscape orientation set with `screen.lockOrientation()`
* fullscreen set with `--fullscreen` option to make_apk.py
* whole game scaled in CSS to fit screen

* Crosswalk-6-resize

* landscape orientation set with screen.lockOrientation()
* fullscreen set with --fullscreen option to make_apk.py
* landscape orientation set with `screen.lockOrientation()`
* fullscreen set with `--fullscreen` option to make_apk.py
* game elements resized to fit screen

* Crosswalk-8-scale

* landscape orientation and fullscreen set in manifest
* xwalk_launch_screen enabled in manifest
* `xwalk_launch_screen` enabled in manifest
* whole game scaled in CSS to fit screen

* Crosswalk-8-resize

* landscape orientation and fullscreen set in manifest
* xwalk_launch_screen enabled in manifest
* `xwalk_launch_screen` enabled in manifest
* game elements resized to fit screen

The Crosswalk-6* versions should also work with Crosswalk 5 and 7 (6
is the version they were tested with); the Crosswalk-8* versions should
work with Crosswalk version 8 or above.

## Android packages

To create an Android package for the game, follow the instructions at:
Expand All @@ -60,17 +64,14 @@ https://crosswalk-project.org/#documentation/getting_started/run_on_android
You will need the correct version of Crosswalk for the version of
the code you intend to package (see above).

(The Crosswalk 6 version should also work for Crosswalk 5 and 7, but
6 is the version it was tested with.)

When building the Crosswalk 6 versions, you will need to pass the
`--fullscreen` option for the game to run in fullscreen, e.g.

python make_apk.py --fullscreen --manifest=Crosswalk-6-scale/manifest.json

python make_apk.py --fullscreen --manifest=Crosswalk-6-resize/manifest.json

This is not required for the Crosswalk 8 versions, e.g.
`--fullscreen` is not required for the Crosswalk 8 versions, e.g.

python make_apk.py --manifest=Crosswalk-8-scale/manifest.json

Expand Down
9 changes: 2 additions & 7 deletions webgl/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"name": "WebGLSample",
"manifest_version": 1,
"version": "0.0.0.1",
"app": {
"launch":{
"local_path": "index.html"
}
}
"xwalk_version": "0.0.0.1",
"start_url": "index.html"
}
9 changes: 2 additions & 7 deletions webrtc/client/manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"name": "WebRTC",
"description": "WebRTC client",
"version": "0.0.1",
"app": {
"launch": {
"local_path": "index.html"
}
}
"xwalk_version": "0.0.1",
"start_url": "index.html"
}

0 comments on commit 8625abe

Please sign in to comment.