Permalink
Browse files

No more PhoneGap, only the Web!

  • Loading branch information...
nhoizey committed Feb 16, 2016
1 parent 0f2ee54 commit 6b5607d3556dca7dbdc1c703be0a9017a7880f5c
Showing with 24 additions and 279 deletions.
  1. +1 −31 Gruntfile.js
  2. +2 −2 package.json
  3. +0 −88 src/config.xml
  4. +7 −14 src/index.html
  5. +14 −144 src/js/esviji.js
View
@@ -57,9 +57,6 @@ module.exports = function(grunt) {
build: {
src: 'build/',
},
- phonegap: {
- src: '../esviji-phonegap/www/',
- },
},
copy: {
@@ -99,27 +96,6 @@ module.exports = function(grunt) {
},
],
},
- phonegap: {
- files: [
- {
- expand: true,
- cwd: 'build/',
- src: [
- '*',
- '**/*',
- ],
- dest: '../esviji-phonegap/www/',
- },
- ],
- },
- phonegapiosicon: {
- files: [
- {
- src: 'build/apple-touch-icon-57x57.png',
- dest: '../esviji-phonegap/www/icon.png',
- },
- ],
- },
},
useminPrepare: {
@@ -285,11 +261,6 @@ module.exports = function(grunt) {
pattern: '\\\\/',
replacement: '/',
},
- phonegapjs: {
- path: '../esviji-phonegap/www/index.html',
- pattern: '<\/title>',
- replacement: '<\/title><script type="text/javascript" src="cordova.js"></script>',
- },
},
devUpdate: {
@@ -305,7 +276,6 @@ module.exports = function(grunt) {
grunt.registerTask('default', ['compile', 'watch']);
grunt.registerTask('compile', ['growl', 'sass', 'autoprefixer', 'manifest:src']);
- grunt.registerTask('build', ['sass', 'autoprefixer', 'clean:build', 'copy:build', 'useminPrepare', 'concat', 'removelogging', 'uglify', 'cssmin', 'rev', 'usemin', 'realFavicon', 'sed:version', 'sed:title', 'sed:description', 'sed:jsonld', 'sed:cleanManifestFilePaths', 'manifest:build']);
- grunt.registerTask('phonegap', ['build', 'clean:phonegap', 'copy:phonegap', 'copy:phonegapiosicon', 'sed:phonegapjs']);
+ grunt.registerTask('build', ['sass', 'autoprefixer', 'clean', 'copy:build', 'useminPrepare', 'concat', 'removelogging', 'uglify', 'cssmin', 'rev', 'usemin', 'realFavicon', 'sed', 'manifest:build']);
grunt.registerTask('up', ['devUpdate']);
};
View
@@ -1,8 +1,8 @@
{
"name": "esviji",
"version": "2.1.13",
- "title": "esviji, a free puzzle game on the Web and mobiles",
- "description": "Play esviji on any device! You'll have to destroy balls based on their colors and place on the board.",
+ "title": "esviji, a free puzzle game for the Web",
+ "description": "Play esviji on any device with your browser! You'll have to destroy balls based on their colors and place on the board.",
"main": "index.html",
"repository": {
"type": "git",
View
@@ -1,88 +0,0 @@
-<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.esviji.app" version="%VERSION%">
- <!-- http://phonegap.com/blog/2016/02/09/phonegap_6_now_on_build/ -->
- <!-- <preference name="phonegap-version" value="cli-6.0.0" /> -->
-
- <name>esviji</name>
- <description>%TITLE%</description>
- <author href="http://nicolas-hoizey.com" email="nicolas@hoizey.com">Nicolas Hoizey</author>
-
- <content src="index.html#utm_source=native_app" />
- <access origin="*" />
-
- <preference name="Orientation" value="default" />
-
- <icon src="icon.png" />
-
- <!-- Android only -->
- <platform name="android">
- <preference name="android-build-tool" value="gradle" />
- <preference name="Fullscreen" value="false" />
- <preference name="android-minSdkVersion" value="19" />
- <preference name="android-installLocation" value="auto" />
- <preference name="KeepRunning" value="true" />
-
- <allow-intent href="market:*" />
-
- <!-- icons -->
- <icon src="android-chrome-36x36.png" platform="android" qualifier="ldpi" />
- <icon src="android-chrome-48x48.png" platform="android" qualifier="mdpi" />
- <icon src="android-chrome-72x72.png" platform="android" qualifier="hdpi" />
- <icon src="android-chrome-96x96.png" platform="android" qualifier="xhdpi" />
- <icon src="android-chrome-144x144.png" platform="android" qualifier="xxhdpi" />
- <icon src="android-chrome-192x192.png" platform="android" qualifier="xxxhdpi" />
-
- <!-- Use the Crosswalk WebView (Chromium) instead of the stock browser one -->
- <plugin name="org.crosswalk.engine" source="pgb" />
- </platform>
-
- <!-- iOS only -->
- <platform name="ios">
- <preference name="target-device" value="universal" />
- <preference name="Fullscreen" value="true" />
- <preference name="prerendered-icon" value="true" />
- <preference name="detect-data-types" value="false" />
- <preference name="ios-statusbarstyle" value="black-opaque" />
- <preference name="exit-on-suspend" value="false" />
-
- <allow-intent href="itms:*" />
- <allow-intent href="itms-apps:*" />
- <plugin name="de.appplant.cordova.plugin.hidden-statusbar-overlay" source="pgb" />
-
- <!-- icons -->
- <icon src="icon.png" platform="ios" width="57" height="57" />
-
- <!-- iPhone 6 / 6+ -->
- <icon src="apple-touch-icon-180x180.png" platform="ios" width="180" height="180" />
-
- <!-- iPhone / iPod Touch -->
- <icon src="apple-touch-icon-60x60.png" platform="ios" width="60" height="60" />
- <icon src="apple-touch-icon-120x120.png" platform="ios" width="120" height="120" />
-
- <!-- iPad -->
- <icon src="apple-touch-icon-76x76.png" platform="ios" width="76" height="76" />
- <icon src="apple-touch-icon-152x152.png" platform="ios" width="152" height="152" />
- </platform>
-
- <preference name="DisallowOverscroll" value="true" />
- <preference name="BackgroundColor" value="0xff444444" />
-
- <preference name="permissions" value="none" />
- <preference name="deployment-target" value="8.0" />
- <preference name="SuppressesLongPressGesture" value="true" />
- <preference name="Suppresses3DTouchGesture" value="true" />
-
- <preference name="webviewbounce" value="true" />
- <preference name="stay-in-webview" value="false" />
- <preference name="show-splash-screen-spinner" value="true" />
- <preference name="auto-hide-splash-screen" value="true" />
- <preference name="disable-cursor" value="false" />
-
- <plugin name="cordova-plugin-google-analytics" source="npm" />
-
- <plugin name="cordova-plugin-whitelist" source="npm" />
- <access origin="https://fiery-heat-4665.firebaseio.com/" />
-
- <!-- http://stackoverflow.com/a/26581226/717195 -->
- <access origin="*://*.google-analytics.com/*" subdomains="true" />
- <!-- <access origin="*" /> Required for iOS9? -->
-</widget>
View
@@ -12,32 +12,23 @@
<meta property="og:url" content="http://play.esviji.com/" />
<meta property="og:image" content="http://play.esviji.com/img/esviji-screenshot.png" />
-<meta name="twitter:card" content="app" />
-<meta name="twitter:site" content="@esviji" />
-<meta name="twitter:description" content="%DESCRIPTION%" />
-<meta name="twitter:app:name:googleplay" content="%TITLE%" />
-<meta name="twitter:app:id:googleplay" content="com.esviji.app" />
-<!--
-<meta name="twitter:app:name:iphone" content="%TITLE%" />
-<meta name="twitter:app:id:iphone" content="1076156592" />
-<meta name="twitter:app:name:ipad" content="%TITLE%" />
-<meta name="twitter:app:id:ipad" content="1076156592" />
--->
-
-<!-- these should not be used with the "app" card type… -->
+<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@nhoizey" />
+<meta name="twitter:site" content="@esviji" />
<meta name="twitter:title" content="%TITLE%" />
+<meta name="twitter:description" content="%DESCRIPTION%" />
<meta name="twitter:image" content="http://play.esviji.com/img/esviji-mockup.jpg" />
<!-- build:css css/styles.css -->
<link rel="stylesheet" media="all" href="css/styles.css" type="text/css" />
<!-- endbuild -->
+
<!-- iOS features -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
-<link rel="manifest" href="manifest.json" />
+<link rel="manifest" href="manifest.json" />
<style>
[aria-hidden=true] {
@@ -59,6 +50,8 @@
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ga('create', 'UA-1655999-4', 'auto');
</script>
</head>
Oops, something went wrong.

0 comments on commit 6b5607d

Please sign in to comment.