cordova-android-firebase-gradle-release
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "cordova-android-firebase-gradle-release", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Cordova/Phonegap plugin to align versions of the Firebase library specified by other plugins to a specific version", | ||
@@ -5,0 +5,0 @@ "author": "Dave Alden", |
@@ -51,3 +51,3 @@ cordova-android-firebase-gradle-release | ||
In some cases, you may want to specify a different version of the Firebase library - [see here](https://firebase.google.com/support/release-notes/android#20180502) for a list recent versions. | ||
In some cases, you may want to specify a different version of the Firebase library - [see here](https://firebase.google.com/support/release-notes/android) for a list recent versions. | ||
So this plugin enables you to specify other versions of the Firebase library using the `FIREBASE_VERSION` plugin variable. | ||
@@ -54,0 +54,0 @@ |
@@ -30,4 +30,4 @@ const PLUGIN_NAME = "cordova-android-firebase-gradle-release"; | ||
function getCordovaAndroidVersion(){ | ||
var testPath = path.join(process.cwd(), 'platforms/android/app/src'); | ||
return fs.existsSync(testPath) ? V7 : V6; | ||
var cordovaVersion = require(path.resolve(process.cwd(),'platforms/android/cordova/version')); | ||
return parseInt(cordovaVersion.version) === 7 ? V7 : V6; | ||
} | ||
@@ -34,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
9855
3