mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: add permissions library
This commit is contained in:
18
packages/permissions/.eslintrc.json
Normal file
18
packages/permissions/.eslintrc.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": ["../../.eslintrc.json"],
|
||||
"ignorePatterns": ["!**/*"],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.ts", "*.tsx"],
|
||||
"rules": {}
|
||||
},
|
||||
{
|
||||
"files": ["*.js", "*.jsx"],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
3
packages/permissions/README.md
Normal file
3
packages/permissions/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# permissions
|
||||
|
||||
This library was generated with [Nx](https://nx.dev).
|
||||
34
packages/permissions/package.json
Normal file
34
packages/permissions/package.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "@nativescript/permissions",
|
||||
"version": "8.2.0",
|
||||
"description": "A JavaScript library providing an easy to use api for interacting with iOS and Android permission handling.",
|
||||
"sideEffects": false,
|
||||
"main": "index",
|
||||
"types": "index.d.ts",
|
||||
"nativescript": {
|
||||
"platforms": {
|
||||
"ios": "6.0.0",
|
||||
"android": "6.0.0"
|
||||
}
|
||||
},
|
||||
"homepage": "https://nativescript.org",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/NativeScript/NativeScript"
|
||||
},
|
||||
"keywords": [
|
||||
"NativeScript",
|
||||
"JavaScript",
|
||||
"Android",
|
||||
"iOS",
|
||||
"permissions"
|
||||
],
|
||||
"author": {
|
||||
"name": "NativeScript",
|
||||
"email": "oss@nativescript.org"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/NativeScript/plugins/issues"
|
||||
},
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
15
packages/permissions/project.json
Normal file
15
packages/permissions/project.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"root": "packages/permissions",
|
||||
"sourceRoot": "packages/permissions/src",
|
||||
"projectType": "library",
|
||||
"targets": {
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"outputs": ["{options.outputFile}"],
|
||||
"options": {
|
||||
"lintFilePatterns": ["packages/permissions/**/*.ts"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
1
packages/permissions/src/index.ts
Normal file
1
packages/permissions/src/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib/permissions';
|
||||
16
packages/permissions/tsconfig.json
Normal file
16
packages/permissions/tsconfig.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"files": [],
|
||||
"include": [],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.lib.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
}
|
||||
}
|
||||
10
packages/permissions/tsconfig.lib.json
Normal file
10
packages/permissions/tsconfig.lib.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "../../dist/out-tsc",
|
||||
"declaration": true,
|
||||
"types": []
|
||||
},
|
||||
"include": ["**/*.ts"],
|
||||
"exclude": ["**/*.spec.ts"]
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
"paths": {
|
||||
"@nativescript/core": ["packages/core/index.ts"],
|
||||
"@nativescript/core/*": ["packages/core/*"],
|
||||
"@nativescript/permissions": ["packages/permissions/src/index.ts"],
|
||||
"@nativescript/types-android": ["packages/types-android/src/index.ts"],
|
||||
"@nativescript/types-ios": ["packages/types-ios/src/index.ts"]
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"apps-ui": "apps/ui",
|
||||
"core": "packages/core",
|
||||
"core-api-docs": "tools/scripts",
|
||||
"permissions": "packages/permissions",
|
||||
"types": "packages/types",
|
||||
"types-android": "packages/types-android",
|
||||
"types-ios": "packages/types-ios",
|
||||
|
||||
Reference in New Issue
Block a user