Skip to content

Commit

Permalink
Amend hooks and log message
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallySmallSoftware committed Jan 4, 2018
1 parent 1a2e3d0 commit 7691e3a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
12 changes: 12 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-android-fragmentactivity" version="0.0.1">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-android-fragmentactivity" version="0.0.2">

<name>Cordova Android FragmentActivity Plugin</name>
<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.</description>
Expand Down
9 changes: 2 additions & 7 deletions scripts/android/afterPluginInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
});
}
};

0 comments on commit 7691e3a

Please sign in to comment.