android-dev-ext
android-dev-ext copied to clipboard
Support for multiple directories on "appSrcRoot"
Hi,
I'm working on a big project that has several modules, each one with its AndroidManifest.xml and its own source code directory. I've been able to launch the app with this extension, and I see the threads running and so, but I can only set checkpoints for files under appSrcRoot/src. Also, appSrcRoot needs to be a folder with a file AndroidManfest.xml that contains an activity that can be used as entry point. Is there a way to specify a list of directories for appSrcRoot
? Can you point out how to implement that otherwise?
Thanks a lot for this extension!
Hi @juanrh - thanks for reporting this. At the moment, there's no way to set multiple source root folders, but it should be possible to update the extension to support this.
appSrcRoot
is primarily used to locate source files used in the app - although it does expect AndroidManifest.xml
to be in the folder, the extension can now extract the final merged manifest from the APK itself.
To support multiple source roots, src/debugMain.js
will need updating to accept an array of appSrcRoot
values and PackageInfo.scanSourceSync()
will need to gather results from all the folders. Currently, the extension assumes each package maps to exactly one file path, but for multiple source roots, each package will need multiple paths.
I will look into supporting this in the next version.