Skip to content

Commit ca78c8b

Browse files
committed
Updated documentation
+ Cleanup
1 parent f51d1ae commit ca78c8b

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.0.1 - 02-05-2020
4+
5+
- Updated documentation for npm
6+
37
## v1.0.0 - 02-04-2020
48

59
- Initial release

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cordova plugin add https://github.com/DavidBriglio/cordova-plugin-os-theme.git
1616

1717
## Useage
1818

19-
This plugin has one method: `getTheme()` that will return a promise that will in turn receive an object with the current os theme properties. Currently there is only one property being tracked: `isDark`. This will be set to `true` only if dark mode is confirmed active. If we do not know the state of the theme or it is in light mode, `isDark` will be `false`.
19+
This plugin has one method: `cordova.plugins.osTheme.getTheme()` that will return a promise that will in turn receive an object with the current os theme properties. Currently there is only one property being tracked: `isDark`. This will be set to `true` only if dark mode is confirmed active. If we do not know the state of the theme or it is in light mode, `isDark` will be `false`.
2020

2121
### Example
2222

@@ -36,7 +36,7 @@ This plugin can be used for `android`, and `iOS` version `13.0.0+`!
3636

3737
## License
3838

39-
MIT. Please see license file for full details.
39+
MIT - Please see license file for full details.
4040

4141
## Questions
4242

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cordova-plugin-os-theme",
33
"description": "Get information about the os theme (light / dark modes).",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/DavidBriglio/cordova-plugin-os-theme"

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2-
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:amazon="http://schemas.android.com/apk/lib/com.amazon.device.ads" xmlns:rim="http://www.blackberry.com/ns/widgets" id="cordova-plugin-os-theme" version="1.0.0">
2+
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:amazon="http://schemas.android.com/apk/lib/com.amazon.device.ads" xmlns:rim="http://www.blackberry.com/ns/widgets" id="cordova-plugin-os-theme" version="1.0.1">
33
<name>Os Theme</name>
44
<description>Get information about the os theme (light / dark modes).</description>
55
<license>MIT</license>

theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
getTheme: () => new Promise((resolve, reject) => cordova.exec(resolve, reject, "OsTheme", "getTheme", []))
2+
getTheme: () => new Promise((resolve, reject) => cordova.exec(resolve, reject, 'OsTheme', 'getTheme', []))
33
}

0 commit comments

Comments
 (0)