cordova-android-firebase-gradle-release
Advanced tools
Comparing version
{ | ||
"name": "cordova-android-firebase-gradle-release", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Cordova/Phonegap plugin to align versions of the Firebase library specified by other plugins to a specific version", | ||
@@ -8,2 +8,3 @@ "author": "Dave Alden", | ||
"dependencies": { | ||
"q": "^1.4.1", | ||
"xml2js": "~0.4.19", | ||
@@ -10,0 +11,0 @@ "semver": "5.1.0" |
var PLUGIN_NAME = "cordova-android-firebase-gradle-release"; | ||
var PACKAGE_PATTERN = /(compile "com.google.firebase:[^:]+:)([^"]+)"/g; | ||
var PACKAGE_PATTERN = /(compile|implementation|api|annotationProcessor)( "com.google.firebase:[^:]+:)([^"]+)"/g; | ||
var PLUGIN_GRADLE_FOLDER_PATH = "platforms/android/"+PLUGIN_NAME; | ||
@@ -104,5 +104,11 @@ var VERSION_PATTERN = /def FIREBASE_VERSION = "[^"]+"/; | ||
module.exports = function (ctx) { | ||
deferral = ctx.requireCordovaModule('q').defer(); | ||
try{ | ||
deferral = require('q').defer(); | ||
}catch(e){ | ||
e.message = 'Unable to load node module dependency \'q\': '+e.message; | ||
log(e.message); | ||
throw e; | ||
} | ||
attempt(run)(); | ||
return deferral.promise; | ||
}; |
Sorry, the diff of this file is not supported yet
10739
-6.25%3
50%5
-28.57%100
-17.36%