11module . 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 } ,
0 commit comments