keeper

A Gradle plugin that infers Proguard/R8 keep rules for androidTest sources.

APACHE-2.0 License

Stars
258
Committers
11

Bot releases are visible (Hide)

keeper - 0.16.0 Latest Release

Published by ZacSweers 5 months ago

  • Enhancement: Support for AGP 8.4.0. AGP 8.4.0 is the minimum supported version now.
  • Update Gradle to 8.7.
  • Remove support for keeper.disableTestProguardFiles as this API can no longer with with newer AGP versions.

Special thanks to @lwasyl and @alexvanyo for contributing to this release!

HELP WANTED: This project is no longer used by Slack. If your company uses this plugin and is interested in maintaining a fork, see https://github.com/slackhq/keeper/discussions/144.

What's Changed

New Contributors

Full Changelog: https://github.com/slackhq/keeper/compare/0.15.0...0.16.0

keeper - 0.15.0

Published by ZacSweers about 1 year ago

  • Enhancement: Support AGP 8.1.0. AGP 8.1.0 is the minimum required version now due to breaking API changes.
  • Update Gradle to 8.2.1.

What's Changed

Full Changelog: https://github.com/slackhq/keeper/compare/0.14.0...0.15.0

keeper - 0.14.0

Published by ZacSweers over 1 year ago

  • Enhancement: Support AGP 8.0. AGP 7.x and lower are no longer supported.
  • Enhancement: Use new AGP APIs for retrieving all compiled classes, better supporting configuration cache.
  • Enhancement: Better support configuration cache in Gradle 8.x in general.
  • Enhancement: Add new keeper.disableTestProguardFiles flag gradle property to optionally disable merging in test proguard files.
  • Enhancement: InferAndroidTestKeepRules no longer extends JavaExec.
  • Enhancement: PrintUses support is removed entirely.
  • Fix: Use artifactFiles instead of resolvedArtifacts for resolving proguard files.

All changes

Full Changelog: https://github.com/slackhq/keeper/compare/0.13.0...0.14.0

keeper - 0.13.0

Published by ZacSweers almost 2 years ago

  • Enhancement: Use Gradle 7.5's new ArtifactCollection APIs to for better task input wiring. This allows us to remove the previous hack where we used the target Configuration as an internal property. This also improves configuration caching support. Gradle 7.5 is now the minimum required Gradle version.
  • Enhancement: Use AGP's new Component.runtimeConfiguration API. AGP 7.3 is now the minimum required AGP version.
  • Enhancement: Removed KGP and kotlin-dsl dependencies. Keeper inappropriately included implementation dependencies on these two and no longer does. This is a breaking change for users who were using these dependencies in their build scripts and you should add them separately if you're using them.
  • Removed: PrintUses is no longer supported as this API has been removed from R8 and now only TraceReferences is used.
  • Removed: Removed deprecated enableL8RuleSharing and traceReferences.enabled properties in the Keeper gradle extension.
keeper -

Published by ZacSweers over 2 years ago

New: Update to AGP 7.1 APIs

Keeper now requires AGP 7.1.0 or higher and has been reworked to use AGP's new extension APIs. As
such, the variantFilter API has now been removed.

In order to enable Keeper on a particular variant, you must register the KeeperVariantMarker
extension in AGP's VariantBuilder API like so:

androidComponents {
  beforeVariants { builder ->
    if (shouldRunKeeperOnVariant()) {
      builder.optInToKeeper() // Helpful extension function
    }
  }
}

Or in Groovy

androidComponents {
  beforeVariants { builder ->
    if (shouldRunKeeperOnVariant(builder)) {
      builder.registerExtension(KeeperVariantMarker.class, KeeperVariantMarker.INSTANCE)
    }
  }
}

Keeper's default behavior with no configuration effectively be a no-op, which isn't what you want!

Other updates

  • Remove shaded ZipFlinger APIs, ZipFlinger is now used directly
  • Update Kotlin to 1.6.10
keeper -

Published by ZacSweers over 2 years ago

  • Fix: Fix a configuration caching issue when L8 rule sharing is enabled.
keeper -

Published by ZacSweers about 3 years ago

Fix: Keeper's intermediate jar creation tasks previously accepted dependencies inputs based on content only. This caused build caching issues across multiple machines with Gradle remote cache enabled because it would then attempt to use the previous build's absolute path to those dependency jars and subsequently fail. This is now fixed by reworking this logic internally a bit and using absolute path sensitivity for that input. This should ensure that caching still works like before across the same machine/paths but will properly be out of date when the absolute paths change across different machines.

keeper -

Published by ZacSweers about 3 years ago

  • Minimum supported AGP version is now 7.0.0. It may work on older versions but YMMV.
  • Update embedded ZipFlinger to 7.0.0 and update to its new Path constructors.
  • Update to Kotlin 1.5.21
keeper -

Published by ZacSweers over 3 years ago

  • Core Library Desugaring is now fully supported. See its
    section in on the project
    site for more details!
  • The keeper.enableL8RuleSharing Gradle API is now deprecated and does nothing. L8 support is
    automatically enabled if android.compileOptions.coreLibraryDesugaringEnabled is true in AGP.
keeper -

Published by ZacSweers over 3 years ago

Package Rankings
Top 25.27% on Repo1.maven.org
Related Projects