This guide helps with setting up local development. I would advise to do development/debugging in Android Studio in your apps project and transfer the changes to the corresponding repositories. As a final step you can check locally if everything plays nice with following procedure.
We need to point in this plugin to local native repositories. So make sure you have the following repos cloned:
https://github.com/kdgm/Connect-SDK-Android-KDGM
https://github.com/kdgm/Connect-SDK-Android-Core
https://github.com/kdgm/Connect-SDK-Android-Google-Cast
Then change the android-install.js
script:
var paths = {
"ConnectSDK_Repository": "/home/user/some-path/Connect-SDK-Android-KDGM",
"ConnectSDK_Tag": "your-branch",
};
Then in the Connect-SDK-Android-KDGM change .gitmodules
:
[submodule "core"]
path = core
url = ../Connect-SDK-Android-Core
branch = your-branch
[submodule "modules/google-cast"]
path = modules/google-cast
url = ../Connect-SDK-Android-Google-Cast
branch = your-branch
Remove the plugin from your project:
cordova plugin remove cordova-plugin-connectsdk
Then add it again:
cordova plugin add /home/user/some-path/cordova-plugin-connectsdk
Whenever you make a change you need to re-add the plugin by repeating the commands above.