Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Nov 23, 2020
1 parent 5fed7a0 commit 55667d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/camera-plus.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ export class CameraPlus extends CameraPlusBase {
}

private _autoFocus = false;
// @ts-ignore
public get autoFocus(): boolean {
return this._autoFocus;
}
Expand Down
4 changes: 2 additions & 2 deletions src/camera-plus.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export abstract class CameraPlusBase extends ContentView implements CameraPlusDe
* * ANDROID ONLY * - will prompt the user for runtime permission to use the device Camera.
*/
requestCameraPermissions(explanationText?: string): Promise<boolean> {
return new Promise((resolve, reject) => resolve());
return new Promise((resolve, reject) => resolve(false));
}

/**
Expand Down Expand Up @@ -276,7 +276,7 @@ export abstract class CameraPlusBase extends ContentView implements CameraPlusDe
* * ANDROID ONLY * - will prompt the user for runtime permission to record audio for video recording.
*/
requestAudioPermissions(explanationText?: string): Promise<boolean> {
return new Promise((resolve, reject) => resolve());
return new Promise((resolve, reject) => resolve(false));
}

/**
Expand Down
9 changes: 4 additions & 5 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nstudio/nativescript-camera-plus",
"version": "3.0.7",
"version": "3.0.8",
"description": "An advanced, embeddable camera for NativeScript.",
"main": "camera-plus",
"typings": "index.d.ts",
Expand All @@ -11,8 +11,7 @@
}
},
"scripts": {
"build.native": "node scripts/build-native.js",
"postclone": "npm i && node scripts/postclone.js",
"tsc": "tsc",
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"**/platforms/**\" --exclude \"**/typings/**\""
},
"lint-staged": {
Expand Down Expand Up @@ -75,8 +74,8 @@
"husky": "^4.2.1",
"lint-staged": "^10.0.7",
"prettier": "^1.19.1",
"tns-core-modules": "^6.4.1",
"tns-platform-declarations": "^6.4.1",
"tns-core-modules": "^6.5.0",
"tns-platform-declarations": "^6.5.0",
"typescript": "~3.7.5",
"prompt": "^1.0.0",
"rimraf": "^2.5.0",
Expand Down

0 comments on commit 55667d2

Please sign in to comment.