Skip to content

Commit

Permalink
Don't skip private previews for local snapshot task (#164)
Browse files Browse the repository at this point in the history
* Don't skip private previews for local snapshot task

* Remove import
  • Loading branch information
rbro112 authored May 29, 2024
1 parent b4ccb41 commit 6be3014
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.emergetools.android.gradle.tasks.snapshots.utils

import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.DexFileFactory
import org.jf.dexlib2.dexbacked.DexBackedClassDef
import org.jf.dexlib2.dexbacked.DexBackedMethod
Expand Down Expand Up @@ -72,11 +71,6 @@ object PreviewUtils {
return@forEach
}

if ((method.accessFlags and AccessFlags.PRIVATE.value) != 0) {
logger.info("Ignoring snapshot for method: $methodKey as it is private")
return@forEach
}

val configs = previewAnnotations.flatMap { previewAnnotation ->
composePreviewSnapshotConfigsFromPreviewAnnotation(method, previewAnnotation)
}
Expand Down

0 comments on commit 6be3014

Please sign in to comment.