Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor-community/privacy-screen

Package Overview
Dependencies
Maintainers
24
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor-community/privacy-screen - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0-dev.5a6f254

dist/plugin.cjs.js

9

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [1.1.0](https://github.com/capacitor-community/privacy-screen/compare/v1.0.1...v1.1.0) (2021-01-31)
### Features
* implement enable/disable methods ([#14](https://github.com/capacitor-community/privacy-screen/issues/14)) ([4bc89d3](https://github.com/capacitor-community/privacy-screen/commit/4bc89d32b6ea4eb7bc1ca4e9841b632fa2625d54))
### [1.0.1](https://github.com/capacitor-community/privacy-screen/compare/v1.0.0...v1.0.1) (2021-01-21)

@@ -11,3 +18,3 @@

* use UIViewController as overlay ([#12](https://github.com/capacitor-community/privacy-screen/issues/12)) ([a2bf3f8](https://github.com/capacitor-community/privacy-screen/commit/a2bf3f8397991dd21f96b351384db6acc3226dc7))
* **ios:** use UIViewController as overlay ([#12](https://github.com/capacitor-community/privacy-screen/issues/12)) ([a2bf3f8](https://github.com/capacitor-community/privacy-screen/commit/a2bf3f8397991dd21f96b351384db6acc3226dc7))

@@ -14,0 +21,0 @@ ## 1.0.0 (2021-01-16)

@@ -7,2 +7,12 @@ declare module '@capacitor/core' {

export interface PrivacyScreenPlugin {
/**
* Supported platform(s): Android, iOS
* Enables the privacy screen protection.
*/
enable(): Promise<void>;
/**
* Supported platform(s): Android, iOS
* Disables the privacy screen protection.
*/
disable(): Promise<void>;
}
export * from './definitions';
export * from './web';
export * from './web';
//# sourceMappingURL=index.js.map

@@ -5,4 +5,6 @@ import { WebPlugin } from '@capacitor/core';

constructor();
enable(): Promise<void>;
disable(): Promise<void>;
}
declare const PrivacyScreen: PrivacyScreenWeb;
export { PrivacyScreen };

@@ -0,1 +1,10 @@

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
import { WebPlugin } from '@capacitor/core';

@@ -9,2 +18,12 @@ export class PrivacyScreenWeb extends WebPlugin {

}
enable() {
return __awaiter(this, void 0, void 0, function* () {
console.warn('Web platform is not supported.');
});
}
disable() {
return __awaiter(this, void 0, void 0, function* () {
console.warn('Web platform is not supported.');
});
}
}

@@ -11,0 +30,0 @@ const PrivacyScreen = new PrivacyScreenWeb();

@@ -1,4 +0,13 @@

var capacitorPlugin = (function (exports, core) {
var capacitorPrivacyScreen = (function (exports, core) {
'use strict';
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
class PrivacyScreenWeb extends core.WebPlugin {

@@ -11,2 +20,12 @@ constructor() {

}
enable() {
return __awaiter(this, void 0, void 0, function* () {
console.warn('Web platform is not supported.');
});
}
disable() {
return __awaiter(this, void 0, void 0, function* () {
console.warn('Web platform is not supported.');
});
}
}

@@ -13,0 +32,0 @@ const PrivacyScreen = new PrivacyScreenWeb();

8

package.json
{
"name": "@capacitor-community/privacy-screen",
"version": "1.0.1",
"version": "1.1.0-dev.5a6f254",
"description": "Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.",

@@ -26,3 +26,2 @@ "main": "dist/plugin.js",

"@ionic/swiftlint-config": "1.0.0",
"@rollup/plugin-node-resolve": "8.1.0",
"prettier": "2.0.5",

@@ -40,5 +39,6 @@ "prettier-plugin-java": "0.8.0",

"files": [
"android/src/main/",
"android/build.gradle",
"dist/",
"ios/",
"android/",
"ios/Plugin/",
"CapacitorCommunityPrivacyScreen.podspec"

@@ -45,0 +45,0 @@ ],

@@ -22,3 +22,3 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>

⚡️ [Capacitor](https://capacitorjs.com/) plugin that protects your app from displaying a screenshot in [Recents screen](https://developer.android.com/guide/components/activities/recents)/[App Switcher](https://support.apple.com/en-us/HT202070).
⚡️ [Capacitor](https://capacitorjs.com/) plugin that protects your app from displaying a screenshot in [Recents screen](https://developer.android.com/guide/components/activities/recents)/[App Switcher](https://support.apple.com/en-us/HT202070).

@@ -30,4 +30,4 @@ On **Android**, this plugin sets the [FLAG_SECURE](https://developer.android.com/reference/android/view/WindowManager.LayoutParams#FLAG_SECURE) flag to treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.

| Maintainer | GitHub | Social |
| -----------| -------| -------|
| Maintainer | GitHub | Social |
| ---------- | ----------------------------------------- | --------------------------------------------- |
| Robin Genz | [robingenz](https://github.com/robingenz) | [@robin_genz](https://twitter.com/robin_genz) |

@@ -78,5 +78,20 @@

The plugin only needs to be installed.
The protection is enabled by default.
However, you have the option to enable/disable the protection:
```js
import { Plugins } from '@capacitor/core';
import '@capacitor-community/privacy-screen';
const enable = async () => {
await Plugins.PrivacyScreen.enable();
};
const disable = async () => {
await Plugins.PrivacyScreen.disable();
};
```
## Changelog
See [CHANGELOG.md](https://github.com/capacitor-community/privacy-screen/blob/main/CHANGELOG.md).

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc