As described in title.
I have created an android library with a module that generates a prefab.
buildFeatures
{
prefabPublishing true
}
prefab {
functions {
headers "src/main/cpp/functions"
}
calculator {
headers "src/main/cpp/calculator"
}
}
The generated AAR does include a Prefab folder with the includes files and libraries. However, I see that the prefab.json and module.json are empty.
prefab.json
{
"name": "mylibrary",
"schema_version": 2,
"dependencies": []
}
module.json
{
"export_libraries": [],
"android": {}
}
Do I have to edit these metadata myself inside the AAR file directly? Or some settings in CMAKE or Gradle will allow me to autofill these information?
Currently, the project that imports this AAR file is unable to detect these libraries. The find_package() is unable to find my libraries. My suspicion is that it is related to these metadata.
I've seen many people are still writing gradle tasks to unzip files, and manually import *.so and *.h files directly in CMAKE. If this is still the case, then then the prefab is not working as intended.