Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 012f66a

Browse files
author
Max Waterman
committed
Switching to npm grunt-crosswalk, some cleanup.
1 parent 94f3080 commit 012f66a

File tree

3 files changed

+5
-233
lines changed

3 files changed

+5
-233
lines changed

Gruntfile.js

Lines changed: 3 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = function (grunt) {
22

33
grunt.loadNpmTasks('grunt-tizen');
4+
grunt.loadNpmTasks('grunt-crosswalk');
45
grunt.loadNpmTasks('grunt-contrib-clean');
56
grunt.loadNpmTasks('grunt-contrib-uglify');
67
grunt.loadNpmTasks('grunt-contrib-copy');
@@ -16,117 +17,37 @@ module.exports = function (grunt) {
1617

1718
crosswalk: {
1819
arm: {
19-
//"outDir": process.env.HOME+'/z/webapps/webapps-annex/build',
2020
"outDir": 'build',
21-
2221
verbose: false,
23-
2422
version: '<%= packageInfo.version %>',
25-
26-
// display name for the app on the device;
27-
// the sanitisedName used to construct the Locations object later
28-
// is derived from this
2923
name: '<%= packageInfo.name %>',
30-
31-
// package for the app's generated Java files; this works best if
32-
// you have at least one period character between two character
33-
// strings, and no digits
3424
pkg: 'org.org01.webapps.<%= packageInfo.name.toLowerCase() %>',
35-
3625
icon: 'icon_128.png',
37-
3826
fullscreen: true,
39-
4027
remoteDebugging: true,
41-
42-
// path to the directory containing your HTML5 app;
43-
// note that this must use the correct path separators for your
44-
// platform: Windows uses '\\' while Linux uses '/'
4528
appRoot: 'build/xpk',
46-
47-
// relative path from appRoot of the entry HTML file for your app
4829
appLocalPath: 'index.html',
49-
50-
// embed crosswalk itself into the package
5130
//embedded: true,
52-
53-
// path to the root of your Android SDK installation;
54-
// on Windows, use the path to the sdk directory inside
55-
// the installation, e.g. 'c:\\android-sdk\\sdk'
56-
// default: automatically obtain from the 'android' command's path
5731
//androidSDKDir: '/opt/android-sdk-linux/',
58-
59-
// path to the xwalk_app_template directory; you can either
60-
// download and unpack this manually, or use the xwalk_android_dl
61-
// script to do so (part of this project; see the README for details);
62-
// note that path separators specific to your platform must be used
63-
// eg: export XWALK_APP_TEMPLATE=$HOME/Downloads/crosswalk-3.32.53.4-x86
64-
//xwalkAndroidDir: project/specific/folder
65-
66-
// architecture of embedded crosswalk
67-
// default: it is obtained from the contents of
68-
// xwalkAndroidDir/native_libs/ if there is only one arch in there,
69-
// else it should be specified as either 'x86' or 'arm'
32+
//xwalkAndroidDir: process.env.HOME+'/Downloads/crosswalk-3.32.53.4-arm'
7033
arch: 'arm',
71-
72-
// default: automatically obtains latest from androidSDKDir/build-tools
7334
//androidAPIVersion: "18.0.1"
7435
},
7536
x86: {
76-
//"outDir": process.env.HOME+'/z/webapps/webapps-annex/build',
7737
"outDir": 'build',
78-
7938
verbose: false,
80-
8139
version: '<%= packageInfo.version %>',
82-
83-
// display name for the app on the device;
84-
// the sanitisedName used to construct the Locations object later
85-
// is derived from this
8640
name: '<%= packageInfo.name %>',
87-
88-
// package for the app's generated Java files; this works best if
89-
// you have at least one period character between two character
90-
// strings, and no digits
9141
pkg: 'org.org01.webapps.<%= packageInfo.name.toLowerCase() %>',
92-
9342
icon: 'icon_128.png',
94-
9543
fullscreen: true,
96-
9744
remoteDebugging: true,
98-
99-
// path to the directory containing your HTML5 app;
100-
// note that this must use the correct path separators for your
101-
// platform: Windows uses '\\' while Linux uses '/'
10245
appRoot: 'build/xpk',
103-
104-
// relative path from appRoot of the entry HTML file for your app
10546
appLocalPath: 'index.html',
106-
107-
// embed crosswalk itself into the package
10847
//embedded: true,
109-
110-
// path to the root of your Android SDK installation;
111-
// on Windows, use the path to the sdk directory inside
112-
// the installation, e.g. 'c:\\android-sdk\\sdk'
113-
// default: automatically obtain from the 'android' command's path
11448
//androidSDKDir: '/opt/android-sdk-linux/',
115-
116-
// path to the xwalk_app_template directory; you can either
117-
// download and unpack this manually, or use the xwalk_android_dl
118-
// script to do so (part of this project; see the README for details);
119-
// note that path separators specific to your platform must be used
120-
// eg: export XWALK_APP_TEMPLATE=$HOME/Downloads/crosswalk-3.32.53.4-x86
121-
//xwalkAndroidDir: project/specific/folder
122-
123-
// architecture of embedded crosswalk
124-
// default: it is obtained from the contents of
125-
// xwalkAndroidDir/native_libs/ if there is only one arch in there,
126-
// else it should be specified as either 'x86' or 'arm'
49+
//xwalkAndroidDir: process.env.HOME+'/Downloads/crosswalk-3.32.53.4-x86'
12750
arch: 'x86',
128-
129-
// default: automatically obtains latest from androidSDKDir/build-tools
13051
//androidAPIVersion: "18.0.1"
13152
}
13253
},

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@
2020
"grunt-contrib-copy": "~0.4.0",
2121
"grunt-contrib-clean": "~0.4.0",
2222
"grunt-tizen": "~0.1.1",
23+
"grunt-crosswalk": "~0.0.1",
2324
"async": "~0.2.6",
2425
"node-native-zip": "~1.1.0",
2526
"lodash": "~1.1.1",
2627
"xml2js": "~0.2.6",
2728
"grunt-contrib-imagemin": "~0.1.3",
2829
"grunt-contrib-htmlmin": "~0.1.3",
2930
"connect": "~2.7.11",
30-
"grunt-release": "~0.6.0",
31-
"crosswalk-apk-generator": "*",
32-
"which": "~1.0.5",
33-
"semver": "~2.2.1"
31+
"grunt-release": "~0.6.0"
3432
}
3533
}

tools/grunt-tasks/grunt-crosswalk.js

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)