Skip to content

Commit

Permalink
Fixing missing symbols issue
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeTheSalad committed Nov 14, 2024
1 parent 5a3b4c7 commit ddb1007
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ class AnimalSnifferPlugin implements Plugin<Project> {
@CompileStatic(TypeCheckingMode.SKIP)
private TaskProvider<AndroidClassesCollector> createAndroidClassesCollector(String taskName, Object variant) {
TaskProvider<AndroidClassesCollector> collectClasses = project.tasks.register(taskName, AndroidClassesCollector)
variant.artifacts.forScope(com.android.build.api.variant.ScopedArtifacts.Scope.PROJECT).use(collectClasses)
.toGet(com.android.build.api.artifact.ScopedArtifact.CLASSES.INSTANCE, new Function1<AndroidClassesCollector, ListProperty<RegularFile>>() {
def scopedArtifactsScopeType = Class.forName("com.android.build.api.variant.ScopedArtifacts\$Scope")
def scopedArtifactTypeClasses = Class.forName("com.android.build.api.artifact.ScopedArtifact\$CLASSES")
variant.artifacts.forScope(scopedArtifactsScopeType.PROJECT).use(collectClasses)
.toGet(scopedArtifactTypeClasses.INSTANCE, new Function1<AndroidClassesCollector, ListProperty<RegularFile>>() {
@Override
ListProperty<RegularFile> invoke(AndroidClassesCollector task) {
return task.jarFiles
Expand Down

0 comments on commit ddb1007

Please sign in to comment.