@capawesome/capacitor-managed-configurations
Advanced tools
Comparing version 0.2.0 to 5.0.0
@@ -20,3 +20,3 @@ { | ||
"tags": [], | ||
"docs": "Fetches the value associated with the given key, or `null` if no mapping exists for the given key.\n\nOnly available for Android and iOS.", | ||
"docs": "Fetches the value associated with the given key, or `null` if no mapping exists for the given key.\n\nOnly available on Android and iOS.", | ||
"complexTypes": [ | ||
@@ -40,3 +40,3 @@ "GetResult", | ||
"tags": [], | ||
"docs": "Fetches the value associated with the given key, or `null` if no mapping exists for the given key.\n\nOnly available for Android and iOS.", | ||
"docs": "Fetches the value associated with the given key, or `null` if no mapping exists for the given key.\n\nOnly available on Android and iOS.", | ||
"complexTypes": [ | ||
@@ -60,3 +60,3 @@ "GetResult", | ||
"tags": [], | ||
"docs": "Fetches the value associated with the given key, or `null` if no mapping exists for the given key.\n\nOnly available for Android and iOS.", | ||
"docs": "Fetches the value associated with the given key, or `null` if no mapping exists for the given key.\n\nOnly available on Android and iOS.", | ||
"complexTypes": [ | ||
@@ -63,0 +63,0 @@ "GetResult", |
@@ -5,3 +5,3 @@ export interface ManagedConfigurationsPlugin { | ||
* | ||
* Only available for Android and iOS. | ||
* Only available on Android and iOS. | ||
*/ | ||
@@ -12,3 +12,3 @@ getString(options: GetOptions): Promise<GetResult<string>>; | ||
* | ||
* Only available for Android and iOS. | ||
* Only available on Android and iOS. | ||
*/ | ||
@@ -19,3 +19,3 @@ getNumber(options: GetOptions): Promise<GetResult<number>>; | ||
* | ||
* Only available for Android and iOS. | ||
* Only available on Android and iOS. | ||
*/ | ||
@@ -22,0 +22,0 @@ getBoolean(options: GetOptions): Promise<GetResult<boolean>>; |
export {}; | ||
//# sourceMappingURL=definitions.js.map |
@@ -0,0 +0,0 @@ import type { ManagedConfigurationsPlugin } 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 capacitorManagedConfigurations = (function (exports, core) { |
{ | ||
"name": "@capawesome/capacitor-managed-configurations", | ||
"version": "0.2.0", | ||
"version": "5.0.0", | ||
"description": "Capacitor plugin to access managed configuration settings.", | ||
@@ -20,6 +20,6 @@ "main": "dist/plugin.cjs.js", | ||
"type": "git", | ||
"url": "git+https://github.com/capawesome-team/capacitor-managed-configurations.git" | ||
"url": "git+https://github.com/capawesome-team/capacitor-plugins.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/capawesome-team/capacitor-managed-configurations/issues" | ||
"url": "https://github.com/capawesome-team/capacitor-plugins/issues" | ||
}, | ||
@@ -36,2 +36,3 @@ "funding": [ | ||
], | ||
"homepage": "https://capawesome.io/plugins/managed-configurations/", | ||
"keywords": [ | ||
@@ -56,13 +57,11 @@ "capacitor", | ||
"watch": "tsc --watch", | ||
"prepublishOnly": "npm run build", | ||
"release": "standard-version" | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"@capacitor/android": "4.0.1", | ||
"@capacitor/cli": "4.0.1", | ||
"@capacitor/core": "4.0.1", | ||
"@capacitor/android": "5.0.0", | ||
"@capacitor/cli": "5.0.0", | ||
"@capacitor/core": "5.0.0", | ||
"@capacitor/docgen": "0.2.0", | ||
"@capacitor/ios": "4.0.1", | ||
"@capacitor/ios": "5.0.0", | ||
"@ionic/eslint-config": "0.3.0", | ||
"@ionic/prettier-config": "1.0.1", | ||
"@ionic/swiftlint-config": "1.1.2", | ||
@@ -74,3 +73,2 @@ "eslint": "7.32.0", | ||
"rollup": "2.77.2", | ||
"standard-version": "9.5.0", | ||
"swiftlint": "1.0.1", | ||
@@ -80,5 +78,4 @@ "typescript": "4.1.5" | ||
"peerDependencies": { | ||
"@capacitor/core": "^4.0.0" | ||
"@capacitor/core": "^5.0.0" | ||
}, | ||
"prettier": "@ionic/prettier-config", | ||
"swiftlint": "@ionic/swiftlint-config", | ||
@@ -85,0 +82,0 @@ "eslintConfig": { |
@@ -1,32 +0,5 @@ | ||
<p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p> | ||
<h3 align="center">Managed Configuration</h3> | ||
<p align="center"><strong><code>@capawesome/capacitor-managed-configurations</code></strong></p> | ||
<p align="center"> | ||
Capacitor plugin to access managed configuration settings. | ||
</p> | ||
# @capawesome/capacitor-managed-configurations | ||
<p align="center"> | ||
<img src="https://img.shields.io/maintenance/yes/2022?style=flat-square" /> | ||
<a href="https://github.com/capawesome-team/capacitor-managed-configurations/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/workflow/status/capawesome-team/capacitor-managed-configurations/CI/main?style=flat-square" /></a> | ||
<a href="https://www.npmjs.com/package/@capawesome/capacitor-managed-configurations"><img src="https://img.shields.io/npm/l/@capawesome/capacitor-managed-configurations?style=flat-square" /></a> | ||
<br> | ||
<a href="https://www.npmjs.com/package/@capawesome/capacitor-managed-configurations"><img src="https://img.shields.io/npm/dw/@capawesome/capacitor-managed-configurations?style=flat-square" /></a> | ||
<a href="https://www.npmjs.com/package/@capawesome/capacitor-managed-configurations"><img src="https://img.shields.io/npm/v/@capawesome/capacitor-managed-configurations?style=flat-square" /></a> | ||
<a href="https://github.com/capawesome-team"><img src="https://img.shields.io/badge/part%20of-capawesome-%234f46e5?style=flat-square" /></a> | ||
</p> | ||
Capacitor plugin to access managed configuration settings. | ||
## Maintainers | ||
| Maintainer | GitHub | Social | | ||
| ---------- | ----------------------------------------- | --------------------------------------------- | | ||
| Robin Genz | [robingenz](https://github.com/robingenz) | [@robin_genz](https://twitter.com/robin_genz) | | ||
## Sponsors | ||
This is an MIT-licensed open source project. | ||
It can grow thanks to the support by these awesome people. | ||
If you'd like to join them, please read more [here](https://github.com/sponsors/capawesome-team). | ||
<!-- sponsors --><!-- sponsors --> | ||
## Installation | ||
@@ -39,5 +12,5 @@ | ||
On **Android**, see [Define managed configurations](https://developer.android.com/work/managed-configurations#define-configuration) and follow the instructions to declare the app's managed configurations correctly. | ||
### Android | ||
> ⚠️ The iOS implementation could not be tested yet. I appreciate any feedback. | ||
See [Define managed configurations](https://developer.android.com/work/managed-configurations#define-configuration) and follow the instructions to declare the app's managed configurations correctly. | ||
@@ -68,3 +41,5 @@ ## Configuration | ||
const getBoolean = async () => { | ||
const result = await ManagedConfigurations.getBoolean({ key: 'download_on_cellular' }); | ||
const result = await ManagedConfigurations.getBoolean({ | ||
key: 'download_on_cellular', | ||
}); | ||
return result.value; | ||
@@ -96,3 +71,3 @@ }; | ||
Only available for Android and iOS. | ||
Only available on Android and iOS. | ||
@@ -116,3 +91,3 @@ | Param | Type | | ||
Only available for Android and iOS. | ||
Only available on Android and iOS. | ||
@@ -136,3 +111,3 @@ | Param | Type | | ||
Only available for Android and iOS. | ||
Only available on Android and iOS. | ||
@@ -174,6 +149,11 @@ | Param | Type | | ||
See [CHANGELOG.md](https://github.com/capawesome-team/capacitor-managed-configurations/blob/master/CHANGELOG.md). | ||
See [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/managed-configurations/CHANGELOG.md). | ||
## License | ||
See [LICENSE](https://github.com/capawesome-team/capacitor-managed-configurations/blob/master/LICENSE). | ||
See [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/managed-configurations/LICENSE). | ||
## Credits | ||
This plugin is based on the [Capacitor Managed Configurations](https://github.com/capawesome-team/capacitor-managed-configurations) plugin. | ||
Thanks to everyone who contributed to the project! |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
14
0
31671
154