Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Could not get unknown property 'libraryVariants'" (#160)
* Fix "Could not get unknown property 'libraryVariants'" It looks like my prev dynamic-feature PR #158 requires some polishing. After applying it to a project I got the error: ``` FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':feature_album'. > Could not get unknown property 'libraryVariants' for object of type com.android.build.gradle.AppExtension. ``` It looks like dynamic feature behaves differently that od `com.adndroid.featute` and does not have `libraryVariants` properly (It is `AppExtension`, not a `FeatureExtension`). Looking at [AppExtension docs](https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.AppExtension.html) I think we should retrieve variants from `applicationVariants` property. * fix test
- Loading branch information