Closed cavega closed 9 years ago
Ah, this is because we built it with apps in mind, not libraries, but this should be supported. I'll look into it soon.
Understandable. This is more of a unique case where the project using internal libraries which happen to have UI logic and hence drawables. It'll be great if it can be supported. Thanks for the feedback.
@cavega I've published Victor 0.1.3 to jcenter; it should show up there soon.
For an Android project with a main app module and multiple library modules there seems to be issues using Victor at the library module level. In my project, everything works great when Victor is configured in the main app module's build.gradle file. However, modifying the library module's build.gradle so that SVGs files can be placed inside the library's own svg directory seem to produce Gradle errors. I modified my library module's build.gradle as follows:
I get the following error: _Error:Could not find property 'applicationVariants' on com.android.build.gradle.LibraryExtensionDecorated@66e56cf0.
Question: Does Victor currently provides any support for library modules? Or am I missing something in my build.gradle file? I get the same error regardless if I also define Victor in both the app and library modules' build.gradle files or if I have it only in the library module.