@capacitor-community/keep-awake
Advanced tools
Comparing version
@@ -0,0 +0,0 @@ export interface KeepAwakePlugin { |
export {}; | ||
//# sourceMappingURL=definitions.js.map |
@@ -0,0 +0,0 @@ import type { KeepAwakePlugin } from './definitions'; |
@@ -0,0 +0,0 @@ import { registerPlugin } from '@capacitor/core'; |
@@ -0,0 +0,0 @@ import { WebPlugin } from '@capacitor/core'; |
@@ -0,0 +0,0 @@ import { WebPlugin } from '@capacitor/core'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ var capacitorKeepAwake = (function (exports, core) { |
{ | ||
"name": "@capacitor-community/keep-awake", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Prevent your screen from getting some sleep!", | ||
@@ -36,3 +36,3 @@ "main": "dist/plugin.cjs.js", | ||
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint", | ||
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- autocorrect --format", | ||
"fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format", | ||
"eslint": "eslint . --ext ts", | ||
@@ -49,7 +49,7 @@ "prettier": "prettier \"**/*.{css,html,ts,js,java}\"", | ||
"devDependencies": { | ||
"@capacitor/android": "3.0.0-beta.6", | ||
"@capacitor/cli": "3.0.0-beta.6", | ||
"@capacitor/core": "3.0.0-beta.6", | ||
"@capacitor/docgen": "0.0.16", | ||
"@capacitor/ios": "3.0.0-beta.6", | ||
"@capacitor/android": "3.4.0", | ||
"@capacitor/cli": "3.4.0", | ||
"@capacitor/core": "3.4.0", | ||
"@capacitor/docgen": "0.0.18", | ||
"@capacitor/ios": "3.4.0", | ||
"@ionic/eslint-config": "0.3.0", | ||
@@ -69,3 +69,3 @@ "@ionic/prettier-config": "1.0.1", | ||
"peerDependencies": { | ||
"@capacitor/core": "^3.0.0-beta.6" | ||
"@capacitor/core": "^3.0.0" | ||
}, | ||
@@ -72,0 +72,0 @@ "prettier": "@ionic/prettier-config", |
@@ -5,7 +5,7 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p> | ||
<p align="center"> | ||
Capacitor community plugin to prevent your screen from getting some sleep! | ||
⚡️ Capacitor plugin to prevent devices from dimming or locking the screen. | ||
</p> | ||
<p align="center"> | ||
<img src="https://img.shields.io/maintenance/yes/2021?style=flat-square" /> | ||
<img src="https://img.shields.io/maintenance/yes/2022?style=flat-square" /> | ||
<a href="https://github.com/capacitor-community/keep-awake/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/workflow/status/capacitor-community/keep-awake/CI/master?style=flat-square" /></a> | ||
@@ -23,10 +23,10 @@ <a href="https://www.npmjs.com/package/@capacitor-community/keep-awake"><img src="https://img.shields.io/npm/l/@capacitor-community/keep-awake?style=flat-square" /></a> | ||
| Maintainer | GitHub | Social | | ||
| ---------- | ----------------------------------------- | --------------------------------------------- | | ||
| Kevin Boosten | [boosten](https://github.com/boosten) | [@Boostuh1](https://twitter.com/Boostuh1) | | ||
| Robin Genz | [robingenz](https://github.com/robingenz) | [@robin_genz](https://twitter.com/robin_genz) | | ||
| Maintainer | GitHub | Social | | ||
| ------------- | ----------------------------------------------- | ------------------------------------------------- | | ||
| Kevin Boosten | [kevinboosten](https://github.com/kevinboosten) | [@kevinboosten](https://twitter.com/kevinboosten) | | ||
| Robin Genz | [robingenz](https://github.com/robingenz) | [@robin_genz](https://twitter.com/robin_genz) | | ||
## Installation | ||
``` | ||
```shell | ||
npm install @capacitor-community/keep-awake | ||
@@ -50,8 +50,8 @@ npx cap sync | ||
const keepAwake = async () => { | ||
await KeepAwake.keepAwake(); | ||
} | ||
await KeepAwake.keepAwake(); | ||
}; | ||
const allowSleep = async () => { | ||
await KeepAwake.allowSleep(); | ||
} | ||
await KeepAwake.allowSleep(); | ||
}; | ||
``` | ||
@@ -58,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
26018
-0.78%26
-3.7%