You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sources are not added to Android Studio sourceSet when Rust library is outside of the Android Studio (and on most cross-platform projects it most probably will be). In result it is not possible to edit any file (as you just can't find any) in the IDE.
It would be nice to have something similar to the externalNativeBuild & CMake - it adds all sources to the sourceSet and they are visible from both Project and Android tabs.
The text was updated successfully, but these errors were encountered:
Many moons ago, when I was trying to get "out of project" source files working for Firefox for Android, I concluded that Gradle/Android Studio just wasn't flexible enough to support a random project root containing source files. But that was 5+ years ago! I would gladly take patches adding support for configuring source sets with Rust code. In a perfect world these would follow on with the finer-grained support for build types and product flavors discussed in other tickets like #68.
Even a link to an example project that arranges the source sets "by hand" would be helpful: it could provide a model for how to do this inside the plugin itself. Thanks for the suggestion!
@ncalexan previously I was just adding root cargo folder to the jni sourceSet and it was working. But with the release of the AS Arctic Fox and its AGP they've deprecated jni sourceSet and it now does nothing.
I'm not that good in developing gradle plugins and have opened bugs here and for AGP. AGP team has almost instantly rejected it as Rust is not a priority at this time.... I had hopes you will have some ideas.
IMHO Rust is great and all but tooling... is a very high wall to climb just to make it work properly :(
Sources are not added to Android Studio sourceSet when Rust library is outside of the Android Studio (and on most cross-platform projects it most probably will be). In result it is not possible to edit any file (as you just can't find any) in the IDE.
It would be nice to have something similar to the externalNativeBuild & CMake - it adds all sources to the sourceSet and they are visible from both Project and Android tabs.
The text was updated successfully, but these errors were encountered: