Cordova plugin + poynt emulator - probably wrong SSL certificate

Hi, I’ve tried to run cordova app in the emulator with success, but when I’ve added the cordova poynt plugin - https://www.npmjs.com/package/cordova-plugin-poynt, the app was unable to be built. Seems to be a problem with SSL certificate.
Console output (trimmed)

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

Could not resolve all dependencies for configuration ‘:_debugCompile’.
Could not resolve co.poynt.api:android-api-model:1.2.44.
Required by:
:android:unspecified
Could not GET
https://nexus.poynt.co/content/repositories/snapshots/co/poynt/api/android-api-model/1.2.44/android-api-model-1.2.44.pom’.
hostname in certificate didn’t match: <nexus.poynt.co> !=
<.poynt.com> OR <.poynt.com> OR <poynt.com>
Could not GET
https://nexus.poynt.co/content/repositories/releases/co/poynt/api/android-api-model/1.2.44/android-api-model-1.2.44.pom’.
hostname in certificate didn’t match: <nexus.poynt.co> !=
<.poynt.com> OR <.poynt.com> OR <poynt.com>
Could not resolve co.poynt.android.sdk:poynt-sdk:1.2.11.
Required by:
:android:unspecified
Could not GET
https://nexus.poynt.co/content/repositories/snapshots/co/poynt/android/sdk/poynt-sdk/1.2.11/poynt-sdk-1.2.11.pom’.
hostname in certificate didn’t match: <nexus.poynt.co> !=
<.poynt.com> OR <.poynt.com> OR <poynt.com>

Indeed! You are correct. We’ve switched the domain name over from poynt.co to poynt.com on that repo host. Thank you for catching – we’ll have it updated.

Meanwhile, if you can manually change the host from nexus.poynt.co to nexus.poynt.com that should fix things.

More specifically, edit src/android/build.gradle and make the domain name changes there. I’ve updated our repo; however, it hasn’t published to the NPM registry yet.