Socket
Socket
Sign inDemoInstall

nativescript-camera

Package Overview
Dependencies
2
Maintainers
11
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.4.0 to 5.0.0-androidx

6

camera.android.js

@@ -12,3 +12,3 @@ "use strict";

try {
if (android.support.v4.content.ContextCompat.checkSelfPermission(applicationModule.android.currentContext, android.Manifest.permission.CAMERA) !== android.content.pm.PackageManager.PERMISSION_GRANTED) {
if (androidx.core.content.ContextCompat.checkSelfPermission(applicationModule.android.currentContext, android.Manifest.permission.CAMERA) !== android.content.pm.PackageManager.PERMISSION_GRANTED) {
reject(new Error("Application does not have permissions to use Camera"));

@@ -30,3 +30,3 @@ return;

}
if (android.support.v4.content.ContextCompat.checkSelfPermission(applicationModule.android.currentContext, android.Manifest.permission.WRITE_EXTERNAL_STORAGE) !== android.content.pm.PackageManager.PERMISSION_GRANTED) {
if (androidx.core.content.ContextCompat.checkSelfPermission(applicationModule.android.currentContext, android.Manifest.permission.WRITE_EXTERNAL_STORAGE) !== android.content.pm.PackageManager.PERMISSION_GRANTED) {
saveToGallery_1 = false;

@@ -49,3 +49,3 @@ }

if (sdkVersionInt >= 21) {
tempPictureUri = android.support.v4.content.FileProvider.getUriForFile(applicationModule.android.currentContext, applicationModule.android.nativeApp.getPackageName() + ".provider", nativeFile);
tempPictureUri = androidx.core.content.FileProvider.getUriForFile(applicationModule.android.currentContext, applicationModule.android.nativeApp.getPackageName() + ".provider", nativeFile);
}

@@ -52,0 +52,0 @@ else {

{
"name": "nativescript-camera",
"version": "4.4.0",
"version": "5.0.0-androidx",
"description": "Provides API for using device camera",

@@ -46,7 +46,7 @@ "repository": {

"dependencies": {
"nativescript-permissions": "^1.2.3"
"nativescript-permissions": "~1.3.0"
},
"devDependencies": {
"tns-core-modules": "^5.2.0",
"tns-platform-declarations": "^5.2.0",
"tns-core-modules": "androidx",
"tns-platform-declarations": "androidx",
"typescript": "~3.1.6",

@@ -53,0 +53,0 @@ "prompt": "^1.0.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc