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

Commit

Permalink
Update manifest.json to support app tools
Browse files Browse the repository at this point in the history
- Use app tools instead of make_apk
- Add xwalk_package_id, xwalk_extensions in manifest
- Update version to xwalk_app_version in manifest

https://crosswalk-project.org/jira/browse/XWALK-5737
  • Loading branch information
Li Hao committed Dec 4, 2015
1 parent cb8a230 commit 2575706
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 38 deletions.
13 changes: 7 additions & 6 deletions extensions-android/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Need to set Environment variables
# CROSSWALK_APP_TOOLS_CACHE_DIR=<path>: Keep downloaded files in this dir

# directory containing this script
PROJECT_DIR=$(cd $(dirname $0) ; pwd)

Expand All @@ -25,14 +28,12 @@ echo
cd $EXTENSION_SRC
ant

# location of Crosswalk Android (downloaded during extension build)
XWALK_DIR=$EXTENSION_SRC/lib/`ls lib/ | grep 'crosswalk-'`
# location of latest crosswalk zip
XWALK_ZIP=`find $CROSSWALK_APP_TOOLS_CACHE_DIR -name 'crosswalk-*.zip' |sort -r |sed -n '1p'`

# build the apks
echo
echo "********* BUILDING ANDROID APK FILES..."
cd $XWALK_DIR
python make_apk.py --fullscreen --enable-remote-debugging --manifest=$APP_SRC/manifest.json --extensions=$EXTENSION_SRC/xwalk-echo-extension/ --package=org.crosswalkproject.sample

# back to where we started
cd $PROJECT_DIR
$CROSSWALK_APP_TOOLS_CACHE_DIR/crosswalk-app-tools/src/crosswalk-pkg --crosswalk=$XWALK_ZIP --platforms=android --android=$1 --targets=$2 --enable-remote-debugging $APP_SRC

5 changes: 3 additions & 2 deletions extensions-android/xwalk-echo-app/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "xwalk_echo_app",
"version": "0.0.1",
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.crosswalkproject.sample",
"xwalk_extensions": ["../xwalk-echo-extension-src/xwalk-echo-extension"],
"icons": [
{
"src": "icon.png",
"type": "image/png",
"sizes": "96x96"
}
]
Expand Down
5 changes: 3 additions & 2 deletions hello-world/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Hello World",
"xwalk_version": "0.0.1",
"start_url": "index.html"
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.xwalk.helloworld"
}
5 changes: 3 additions & 2 deletions simd-mandelbrot/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "SIMD",
"xwalk_version": "0.0.1",
"start_url": "index.html"
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.xwalk.simd"
}
5 changes: 3 additions & 2 deletions space-dodge-game/base/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Space Dodge",
"xwalk_version": "0.0.1",
"start_url": "index.html"
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.xwalk.spacedodgegame"
}
10 changes: 2 additions & 8 deletions space-dodge-game/manifest-orientation-resize/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"name": "Space Dodge",
"xwalk_version": "0.0.1",
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"orientation": "landscape",
"display": "fullscreen",
"xwalk_launch_screen": {
"ready_when": "custom",
"landscape": {
"background_color": "#11f",
"image": "fg.png"
}
}
"xwalk_package_id": "org.xwalk.spacedodgegame"
}
10 changes: 2 additions & 8 deletions space-dodge-game/manifest-orientation-scale/manifest.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"name": "Space Dodge",
"xwalk_version": "0.0.1",
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"orientation": "landscape",
"display": "fullscreen",
"xwalk_launch_screen": {
"ready_when": "custom",
"landscape": {
"background_color": "#11f",
"image": "fg.png"
}
}
"xwalk_package_id": "org.xwalk.spacedodgegame"
}
5 changes: 3 additions & 2 deletions space-dodge-game/screen-orientation-resize/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Space Dodge",
"xwalk_version": "0.0.1",
"start_url": "index.html"
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.xwalk.spacedodgegame"
}
5 changes: 3 additions & 2 deletions space-dodge-game/screen-orientation-scale/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Space Dodge",
"xwalk_version": "0.0.1",
"start_url": "index.html"
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.xwalk.spacedodgegame"
}
5 changes: 3 additions & 2 deletions webgl/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "WebGLSample",
"xwalk_version": "0.0.1",
"start_url": "index.html"
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.xwalk.webgl"
}
5 changes: 3 additions & 2 deletions webrtc/client/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "WebRTC",
"xwalk_version": "0.0.1",
"start_url": "index.html"
"xwalk_app_version": "0.0.1",
"start_url": "index.html",
"xwalk_package_id": "org.xwalk.webrtc"
}

0 comments on commit 2575706

Please sign in to comment.