From 7691e3a135be7c2afff0f31e0686d12ce1cb9f46 Mon Sep 17 00:00:00 2001 From: Richard Windley Date: Thu, 4 Jan 2018 18:46:31 +0000 Subject: [PATCH] Amend hooks and log message --- README.MD | 12 ++++++++++++ package.json | 2 +- plugin.xml | 2 +- scripts/android/afterPluginInstall.js | 9 ++------- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/README.MD b/README.MD index d8b2658..c3597bf 100644 --- a/README.MD +++ b/README.MD @@ -23,3 +23,15 @@ AndroidManifest.xml is automatically updated to use the new MainActivity. Credits == Based on cordova-android-fragments (https://github.com/rajivnarayana/CordovaFragments) + +History +== + +0.0.2 +-- +- Correct log message +- Add history to README + +0.0.1 +-- +Initial release diff --git a/package.json b/package.json index ba63095..7cab4cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-android-fragmentactivity", - "version": "0.0.1", + "version": "0.0.2", "description": "An android plugin that provides a replacement activity to the default activity to start a cordova application with MainActivity as a Fragment Activity. Useful when you want to add native views on top of cordova webview.", "cordova": { "id": "cordova-plugin-android-fragmentactivity", diff --git a/plugin.xml b/plugin.xml index e91a3e5..af632b7 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + Cordova Android FragmentActivity Plugin An android plugin that provides a replacement activity to the default activity to start a cordova application with MainActivity as a Fragment Activity. Useful when you want to add native views on top of cordova webview. diff --git a/scripts/android/afterPluginInstall.js b/scripts/android/afterPluginInstall.js index e449407..10a75b3 100644 --- a/scripts/android/afterPluginInstall.js +++ b/scripts/android/afterPluginInstall.js @@ -34,13 +34,8 @@ module.exports = function(context) { console.log(newActivityPath); - fs.writeFile(newActivityPath, newActivity, function(err) { - if (err) { - return console.log(err); - } - - console.log("New MainActvity generated."); - }); + fs.writeFileSync(newActivityPath, newActivity); + console.log("New MainActivity generated."); }); } };