Plugin Approval Error in Neptune MBS

Hi ,

We have published two plugins to npm :-

Main Plugin
dff-cordova-plugin-emdk-powermanager

Dependent Plugin
dff-cordova-plugin-common

On trying to build the APK in Neptune Mobile Build Service we face an Error :
UserError: Error: Plugin ‘dff-cordova-plugin-emdk-powermanager’ cannot be used.
Cannot be approved, since it depends on dff-cordova-plugin-common, which is not in npm.
Error: Plugin ‘dff.CordovaPlugin.Common’ is not listed in https://npmjs.com.

Please help to approve the plugins so that we can do a successful build.

Thanks.
Pradeep

Thank you for publishing dff-cordova-plugin-common. Can you please update dff-cordova-plugin-emdk-powermanager to pull dff-cordova-plugin-common from npm rather than GitHub? Thanks.

Hi James,

I have published a new version 1.0.4 for dff-cordova-plugin-emdk-powermanager with the dependency URL of dff-cordova-plugin-common pointing to NPM now.

But i still face the same error when doing the build in Neptune MBS.

Please assist.

Thanks.
Pradeep

Thank you!

We’re looking at this today.

Good news - they should be ready to use now. Thanks for updating them!

Hi Team,

The approval related error is now gone when i tried a new build in Neptune MBS.

I face a new error . Could you please let me know what’s wrong here ? I find no issues from the project config side.

UserError: Error: CordovaError: Failed to fetch plugin https://www.npmjs.com/package/dff-cordova-plugin-common via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
CordovaError: Error: TAR_BAD_ARCHIVE: Unrecognized archive format
Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-androidx-adapter, retrieving version from config.xml
No version for cordova-plugin-androidx-adapter saved in config.xml or package.json
Attempting to use npm info for cordova-plugin-androidx-adapter to choose a compatible release
npm info for cordova-plugin-androidx-adapter did not contain any engine info. Fetching latest release
Calling plugman.fetch on plugin "cordova-plugin-androidx-adapter"
fetch: Installing cordova-plugin-androidx-adapter to /Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb
Running command: npm install cordova-plugin-androidx-adapter --save-dev
Command finished with error code 0: npm install,cordova-plugin-androidx-adapter,--save-dev
Copying plugin "/Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/node_modules/cordova-plugin-androidx-adapter" => "/Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/plugins/cordova-plugin-androidx-adapter"
Calling plugman.install on plugin "/Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/plugins/cordova-plugin-androidx-adapter" for platform "android
Installing "cordova-plugin-androidx-adapter" for android
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-androidx-adapter on android platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-androidx-adapter" on android.
Beginning processing of action stack for android project...
Action stack processing complete.
Install complete for cordova-plugin-androidx-adapter on android.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-androidx-adapter on android platform only.
No scripts found for hook "after_plugin_install".
Adding cordova-plugin-androidx-adapter to package.json
No scripts found for hook "after_plugin_add".
Discovered plugin "cordova-plugin-vibration". Adding it to the project
No scripts found for hook "before_plugin_add".
No version specified for cordova-plugin-vibration, retrieving version from config.xml
No version for cordova-plugin-vibration saved in config.xml or package.json
Attempting to use npm info for cordova-plugin-vibration to choose a compatible release
Ignoring invalid version in cordova-plugin-vibration cordovaDependencies: 4.0.0 (must be a single version <= latest or an upper bound)
Ignoring cordova-plugin-vibration cordovaDependencies entry because it did not contain any valid plugin version entries
Calling plugman.fetch on plugin "cordova-plugin-vibration"
fetch: Installing cordova-plugin-vibration to /Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb
Running command: npm install cordova-plugin-vibration --save-dev
Command finished with error code 0: npm install,cordova-plugin-vibration,--save-dev
Copying plugin "/Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/node_modules/cordova-plugin-vibration" => "/Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/plugins/cordova-plugin-vibration"
Calling plugman.install on plugin "/Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/plugins/cordova-plugin-vibration" for platform "android
Installing "cordova-plugin-vibration" for android
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-vibration on android platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-vibration" on android.
Beginning processing of action stack for android project...
Action stack processing complete.
Install complete for cordova-plugin-vibration on android.
Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-vibration on android platform only.
No scripts found for hook "after_plugin_install".
Adding cordova-plugin-vibration to package.json
No scripts found for hook "after_plugin_add".
Generating platform-specific config.xml from defaults for android at /Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/platforms/android/app/src/main/res/xml/config.xml
Merging project's config.xml into platform-specific android config.xml
[Gradle Properties] Preparing Configuration
[Gradle Properties] Appending default configuration properties
[Gradle Properties] Updating Gradle property "android.useAndroidX" with the value of "false"
[Gradle Properties] Updating Gradle property "android.enableJetifier" with the value of "false"
[Gradle Properties] Appending custom configuration properties
[Gradle Properties] Detected Gradle property "android.useAndroidX" with the value of "true", Cordova's recommended value is "false"
[Gradle Properties] Detected Gradle property "android.enableJetifier" with the value of "true", Cordova's recommended value is "false"
[Gradle Properties] Updating and Saving File
Found "merges/android" folder. Copying its contents into the android project.
Merging and updating files from [www, platforms/android/platform_www, merges/android] to platforms/android/app/src/main/assets/www
copy platforms/android/platform_www/cordova_plugins.js platforms/android/app/src/main/assets/www/cordova_plugins.js (updated file)
copy platforms/android/platform_www/plugins/com.cordova.plugins.cookiemaster/www/cookieMaster.js platforms/android/app/src/main/assets/www/plugins/com.cordova.plugins.cookiemaster/www/cookieMaster.js (updated file)
copy platforms/android/platform_www/plugins/com.onestop.cordova.datawedge/www/datawedge.js platforms/android/app/src/main/assets/www/plugins/com.onestop.cordova.datawedge/www/datawedge.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-barcodescanner/www/barcodescanner.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-barcodescanner/www/barcodescanner.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-camera/www/Camera.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-camera/www/Camera.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-camera/www/CameraConstants.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-camera/www/CameraConstants.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-camera/www/CameraPopoverHandle.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-camera/www/CameraPopoverHandle.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-camera/www/CameraPopoverOptions.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-camera/www/CameraPopoverOptions.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-device/www/device.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-device/www/device.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-dialogs/www/android/notification.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-dialogs/www/android/notification.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-dialogs/www/notification.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-dialogs/www/notification.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file-opener2/www/plugins.FileOpener2.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file-opener2/www/plugins.FileOpener2.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/DirectoryEntry.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/DirectoryEntry.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/DirectoryReader.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/DirectoryReader.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/Entry.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/Entry.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/File.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/File.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/FileEntry.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/FileEntry.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/FileError.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/FileError.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/FileReader.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/FileReader.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/FileSystem.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/FileSystem.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/FileUploadOptions.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/FileUploadOptions.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/FileUploadResult.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/FileUploadResult.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/FileWriter.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/FileWriter.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/Flags.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/Flags.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/LocalFileSystem.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/LocalFileSystem.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/Metadata.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/Metadata.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/ProgressEvent.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/ProgressEvent.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/android/FileSystem.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/android/FileSystem.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/browser/isChrome.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/browser/isChrome.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/fileSystemPaths.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/fileSystemPaths.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/fileSystems-roots.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/fileSystems-roots.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/fileSystems.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/fileSystems.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/requestFileSystem.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/requestFileSystem.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-geolocation/www/PositionError.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-geolocation/www/PositionError.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-geolocation/www/android/geolocation.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-geolocation/www/android/geolocation.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-inappbrowser/www/inappbrowser.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-inappbrowser/www/inappbrowser.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/CaptureAudioOptions.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/CaptureAudioOptions.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/CaptureError.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/CaptureError.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/CaptureImageOptions.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/CaptureImageOptions.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/CaptureVideoOptions.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/CaptureVideoOptions.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/MediaFile.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/MediaFile.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/MediaFileData.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/MediaFileData.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/android/init.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/android/init.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/capture.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/capture.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media-capture/www/helpers.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media-capture/www/helpers.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media/www/Media.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media/www/Media.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-media/www/MediaError.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-media/www/MediaError.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-network-information/www/Connection.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-network-information/www/Connection.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-network-information/www/network.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-network-information/www/network.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-secure-key-store/www/SecureKeyStore.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-secure-key-store/www/SecureKeyStore.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-splashscreen/www/splashscreen.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-splashscreen/www/splashscreen.js (updated file)
copy platforms/android/platform_www/plugins/cordova-plugin-statusbar/www/statusbar.js platforms/android/app/src/main/assets/www/plugins/cordova-plugin-statusbar/www/statusbar.js (updated file)
copy platforms/android/platform_www/plugins/phonegap-nfc/www/phonegap-nfc.js platforms/android/app/src/main/assets/www/plugins/phonegap-nfc/www/phonegap-nfc.js (updated file)
Wrote out android application name "EMX Track and Trace" to /Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/platforms/android/app/src/main/res/values/strings.xml
Wrote out Android package name "com.orica.ttappspt" to /Users/voltbuilder/Code/VoltBuilder/upload/02061f08-c65e-48c9-bc46-1ec417ffefbb/platforms/android/app/src/main/java/com/orica/ttappspt/MainActivity.java
Updating icons at platforms/android/app/src/main/res
Updating splash screens at platforms/android/app/src/main/res
This app does not have additional resource files defined
Prepared android project successfully
Executing script found in plugin cordova-plugin-androidx-adapter for hook "after_prepare": plugins/cordova-plugin-androidx-adapter/apply.js
cordova-plugin-androidx-adapter: Processed 134 source files in 5253ms
Saving android@9.1.0 into platforms.json
adding android to cordova.platforms array in package.jso
This could be caused by a problem with a different plugin.

Thanks.
Pradeep

My guess it that it is a problem with your plugin. The message CordovaError: Error: TAR_BAD_ARCHIVE: Unrecognized archive format may be a clue.

What happens if you make a test project with just your plugin in it?

Hi ,

It cannot be an issue with the Plugin as the same plugin is already in use in our production systems APK .

We are generating a new APK as part of an upgrade to Neptune server.

What do you think of this error ?
UserError: Error: CordovaError: Failed to fetch plugin dff-cordova-plugin-common - npm via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.

The path is correct i believe.

Thanks.
Pradeep

I think there is a problem with how you have your plugins set up in npm. More from the log:

4819: Failed to install 'dff-cordova-plugin-emdk-powermanager': 
CordovaError: Failed to fetch plugin https://www.npmjs.com/package/dff-cordova-plugin-common via registry.

4824: Failed to restore plugin "dff-cordova-plugin-emdk-powermanager". 
You might need to try adding it again. Error: CordovaError: Failed to fetch plugin https://www.npmjs.com/package/dff-cordova-plugin-common via registry.

4952: 2021-12-02 06:08:56,234 ERROR voltbuilder.errors: Error: 
CordovaError: Failed to fetch plugin https://www.npmjs.com/package/dff-cordova-plugin-common via registry.

The problem is only with the dff plugins.

Please contact me by DM if you would like one of specialists to look at your plugin in depth. We won’t bill you for this if the problem turns out to be with VoltBuilder.