Skip to content

Commit

Permalink
Remove deprecated platform windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Alves committed Sep 29, 2023
1 parent 43c4808 commit c1b1f3c
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 144 deletions.
1 change: 0 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"ecosystem:phonegap",
"cordova-ios",
"cordova-android",
"cordova-windows",
"cordova-browser"
],
"homepage": "https://github.com/phonegap/phonegap-plugin-push",
Expand Down
1 change: 0 additions & 1 deletion docs/PLATFORM_SUPPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
- Android (`cordova-android` 12.0.0 or higher)
- Browser
- iOS (`cordova-ios` 6.0.0 or higher)
- Windows Universal (not Windows Phone 8)

### Version 3.x.x

Expand Down
3 changes: 1 addition & 2 deletions docs/TYPESCRIPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ const push = PushNotification.init({
alert: "true",
badge: true,
sound: 'false'
},
windows: {}
}
});

push.on('registration', (data) => {
Expand Down
18 changes: 0 additions & 18 deletions hooks/windows/setToastCapable.js

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"ecosystem:cordova",
"cordova-ios",
"cordova-android",
"cordova-windows",
"cordova-browser"
],
"author": "Erisu",
Expand Down Expand Up @@ -66,7 +65,6 @@
"platforms": [
"ios",
"android",
"windows",
"browser"
]
}
Expand Down
11 changes: 0 additions & 11 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,4 @@
</podspec>
</platform>

<platform name="windows">
<hook type="after_plugin_install" src="hooks/windows/setToastCapable.js"/>

<js-module src="src/windows/PushPluginProxy.js" name="PushPlugin">
<runs/>
</js-module>

<config-file target="config.xml" parent="/*">
<preference name="WindowsToastCapable" value="true"/>
</config-file>
</platform>
</plugin>
101 changes: 0 additions & 101 deletions src/windows/PushPluginProxy.js

This file was deleted.

8 changes: 0 additions & 8 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,6 @@ declare namespace PhonegapPluginPush {
*/
topics?: string[]
}

/**
* Windows specific initialization options.
*/
windows?: {

}
}

interface CategoryArray {
Expand Down Expand Up @@ -273,7 +266,6 @@ declare namespace PhonegapPluginPush {
title?: string
/**
* The number of messages to be displayed in the badge iOS or message count in the notification shade in Android.
* For windows, it represents the value in the badge notification which could be a number or a status glyph.
*/
count: string
/**
Expand Down

0 comments on commit c1b1f3c

Please sign in to comment.