Using "Add Android Packages" in Delphi 12.1 with my own custom .aar file seems to break Codex
I've created an .aar file of my Android Home Screen widgets to include in my Delphi app. I've tested the .aar and it works correctly in a Delphi app if the R file is compiled and merged manually.
When I try to automate this using Codex, the console window opens but stays empty. It looks like an error may have been raised but not written to the windows.
Steps:
- Build and deploy my Delphi app for Android so all the res files are generated.
- Extract my .aar file into a folder.
- Point Codex -> Add Android Package to the folder.
- "Execute"
The output window appears but stays blank. Nothing is generated and nothing happens.
If I try this with another library (e.g. androidx:workManager) it works correctly.
I've send over my .aar directly as I don't want it to be publicly available.
Thanks
Thanks for a direct chat, I understand that Codex requires the extracted package to in a specific folder structure which I didn't quite have right.
widget-release
widget-release
res
dependent-package
res
widget-release.jar
dependent-package.jar
Once I'd done this, it imported ok. I would be great if Codex could support adding directly from .aab files too, and showed a helpful error in the case I found so I knew why it failed.
Thanks!