cordova-play-services-version-adapter
Advanced tools
Comparing version 1.0.0 to 1.0.1
120
package.json
{ | ||
"name": "cordova-play-services-version-adapter", | ||
"version": "1.0.0", | ||
"description": "Cordova/Ionic Google Play Services Versions Incompatibility Adapter", | ||
"cordova": { | ||
"id": "cordova-play-services-version-adapter", | ||
"platforms": [ | ||
"android", | ||
"ios", | ||
"windows", | ||
"browser", | ||
"osx", | ||
"www" | ||
] | ||
"name": "cordova-play-services-version-adapter", | ||
"version": "1.0.1", | ||
"description": "Cordova/Ionic Google Play Services Versions Incompatibility Adapter", | ||
"cordova": { | ||
"id": "cordova-play-services-version-adapter", | ||
"platforms": [ | ||
"android", | ||
"ios", | ||
"windows", | ||
"browser", | ||
"osx", | ||
"www" | ||
] | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/appfeel/cordova-play-services-version-adapter.git" | ||
}, | ||
"keywords": [ | ||
"exception", | ||
"incompatibility", | ||
"build", | ||
"GoogleServicesPlugin", | ||
"com.google.gms.googleservices.GoogleServicesPlugin", | ||
"firebase", | ||
"maps", | ||
"admob", | ||
"push", | ||
"notification", | ||
"analytics", | ||
"play-services", | ||
"appfeel", | ||
"ecosystem:cordova", | ||
"cordova-android", | ||
"cordova-ios", | ||
"ionic", | ||
"cordova" | ||
], | ||
"engines": { | ||
"name": "cordova", | ||
"version": ">=7.0.0" | ||
}, | ||
"author": "AppFeel", | ||
"contributors": [ | ||
{ | ||
"name": "David Silvestre Gil", | ||
"email": "david.silvestre@appfeel.com", | ||
"url": "https://www.appfeel.com" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/appfeel/cordova-play-services-version-adapter.git" | ||
}, | ||
"keywords": [ | ||
"exception", | ||
"incompatibility", | ||
"build", | ||
"GoogleServicesPlugin", | ||
"com.google.gms.googleservices.GoogleServicesPlugin", | ||
"firebase", | ||
"maps", | ||
"admob", | ||
"push", | ||
"notification", | ||
"analytics", | ||
"play-services", | ||
"appfeel", | ||
"ecosystem:cordova", | ||
"cordova-android", | ||
"cordova-ios", | ||
"ionic", | ||
"cordova" | ||
], | ||
"engines": { | ||
"name": "cordova", | ||
"version": ">=7.0.0" | ||
}, | ||
"author": "AppFeel", | ||
"contributors": [ | ||
{ | ||
"name": "David Silvestre Gil", | ||
"email": "david.silvestre@appfeel.com", | ||
"url": "https://www.appfeel.com" | ||
}, | ||
{ | ||
"name": "Ricard López Olivares", | ||
"email": "ricard.lopez@appfeel.com", | ||
"url": "https://www.appfeel.com" | ||
} | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/appfeel/cordova-play-services-version-adapter/issues" | ||
}, | ||
"homepage": "https://github.com/appfeel/cordova-play-services-version-adapter#readme" | ||
} | ||
{ | ||
"name": "Ricard López Olivares", | ||
"email": "ricard.lopez@appfeel.com", | ||
"url": "https://www.appfeel.com" | ||
} | ||
], | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/appfeel/cordova-play-services-version-adapter/issues" | ||
}, | ||
"homepage": "https://github.com/appfeel/cordova-play-services-version-adapter#readme" | ||
} |
@@ -39,3 +39,3 @@ #!/usr/bin/env node | ||
} | ||
return getBigger(v1, v2, idx + 1); | ||
return getBiggerVersion(v1, v2, idx + 1); | ||
} | ||
@@ -89,3 +89,3 @@ return v1; | ||
let possibleVersions = dependencies.filter(l => getBiggerVersion(l.version, minVersion.version) === l.version); | ||
const parsedLibraries = libraries.filter(l => l.isGPS).map(l => `${l.package}:${l.dependency}`); | ||
const parsedLibraries = libraries.filter(l => l.isGPS).map(l => `${l.libPackage}:${l.dependency}`); | ||
if (isNaN(minVersion.version.split('.')[0])) { | ||
@@ -161,5 +161,5 @@ for (let i = possibleVersions.length - 1, n = 0; i >= n; i -= 1) { | ||
const libraryVersion = library.isGPS ? newVersion : library.version; | ||
newLines.push(`${library.library}=${library.package}:${library.dependency}:${libraryVersion}`); | ||
newLines.push(`${library.library}=${library.libPackage}:${library.dependency}:${libraryVersion}`); | ||
} | ||
const parsedLibrariesVersion = libraries.filter(l => l.isGPS && l.version !== newVersion).map(l => `${l.package}:${l.dependency}:${l.version}`); | ||
const parsedLibrariesVersion = libraries.filter(l => l.isGPS && l.version !== newVersion).map(l => `${l.libPackage}:${l.dependency}:${l.version}`); | ||
if (parsedLibrariesVersion.length > 0) { | ||
@@ -169,3 +169,3 @@ prepareSuccess(parsedLibrariesVersion, newVersion); | ||
} else { | ||
const parsedLibrariesVersion = libraries.filter(l => l.isGPS).map(l => `${l.package}:${l.dependency}:${l.version}`); | ||
const parsedLibrariesVersion = libraries.filter(l => l.isGPS).map(l => `${l.libPackage}:${l.dependency}:${l.version}`); | ||
prepareError(parsedLibrariesVersion); | ||
@@ -172,0 +172,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131729
8
2253