Skip to content

Commit

Permalink
update package name ready to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenry22 committed Feb 12, 2020
1 parent 430a2b1 commit fca0875
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "cordova-music-controls",
"version": "2.2.1",
"name": "cordova-plugic-music-controls2",
"version": "3.0.0",
"description": "Music controls for Cordova apps",
"cordova": {
"id": "cordova-music-controls",
"id": "cordova-plugin-music-controls2",
"platforms": ["android", "windows", "ios"]
},
"repository": {
"type": "git",
"url": "git+https://github.com/yoojene/cordova-music-controls.git"
"url": "git+https://github.com/ghenry22/cordova-plugin-music-controls2.git"
},
"keywords": [
"cordova",
Expand All @@ -25,14 +25,14 @@
"engines": [
{
"name": "cordova",
"version": ">=3.4.0"
"version": ">=4.0.0"
}
],
"author": "homerours",
"author": "ghenry22",
"license": "MIT",
"bugs": {
"url": "https://github.com/yoojene/cordova-music-controls/issues"
"url": "https://github.com/ghenry22/cordova-plugin-music-controls2/issues"
},
"homepage":
"https://github.com/yoojene/cordova-music-controls#readme"
"https://github.com/ghenry22/cordova-plugin-music-controls2#readme"
}
16 changes: 10 additions & 6 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-music-controls"
version="2.2.1">
<name>MusicControls</name>
id="cordova-plugin-music-controls2"
version="3.0.0">
<name>Music Controls</name>
<keywords>cordova,music,controller,controls,media,plugin,notification,lockscreen,now,playing</keywords>
<repo>https://github.com/yoojene/cordova-music-controls</repo>
<repo>https://github.com/ghenry22/cordova-plugin-music-controls2</repo>
<description>Music controls for Cordova apps</description>
<license>MIT</license>
<author>HomerOurs</author>
<author>ghenry22</author>

<engines>
<engine name="cordova" version=">=3.4.0"/>
<engine name="cordova" version=">=4.0.0"/>
</engines>

<asset src="www/MusicControls.js" target="js/MusicControls.js"/>
Expand All @@ -29,6 +29,10 @@

<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
</config-file>

<config-file target="AndroidManifest.xml" parent="/manifest/application">
Expand Down
7 changes: 7 additions & 0 deletions src/android/MusicControlsNotificationKiller.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ public void onCreate() {
mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
mNM.cancel(NOTIFICATION_ID);
}

@Override
public void onDestroy() {
mNM = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
mNM.cancel(NOTIFICATION_ID);
}

}

0 comments on commit fca0875

Please sign in to comment.