GithubHelp home page GithubHelp logo

zacsweers / aak Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 95 KB

An annotation processor to generate Proxy-based helper methods for creating Kotlin annotations at runtime. Based on Google's AutoAnnotation processor for Java.

License: Apache License 2.0

Java 4.04% Kotlin 95.96%

aak's Introduction

Currently working on Slack. Read my blog or follow me on places @ZacSweers.

GitHub Activity

2024-08-08 — merged PR #645 to ZacSweers/MoshiX: "Update ksp to v2.0.10-1.0.24"

2024-08-08 — merged PR #648 to ZacSweers/MoshiX: "Update plugin lint to v8.6.0-rc01"

2024-08-08 — closed PR #643 to ZacSweers/MoshiX: "Prepare for Kotlin 2.0.10"

2024-08-08 — merged PR #649 to ZacSweers/MoshiX: "Update dependency com.android.tools.build:gradle to v8.5.2"

2024-08-08 — merged PR #1594 to ZacSweers/CatchUp: "Update agp to v8.7.0-alpha05"

2024-08-08 — merged PR #1593 to ZacSweers/CatchUp: "Update dependency com.google.android.material:material to v1.13.0-alpha05"

On My Blog

2024-05-06Preparing for K2

2024-01-03Life in 2024

2023-07-09Catching Up on CatchUp: 2023

2023-01-10Keeping Android and Kotlin Healthy in a Post-Twitter World

2022-12-19Improving Your Gradle Workflow by Not Auto-reloading Build Files

2022-11-30Android Studio's "I'm Feeling Lucky" Button

2022-11-22Network Calls in Lint: Best Practices

2022-10-17Is ViewPump A Security Risk?

2022-05-23You Are Not Blocked

2021-07-23Optimizing Your Kotlin Build

More on zacsweers.dev

Inspired by Simon Willison's auto-updating profile README.

aak's People

Contributors

zacsweers avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ema987

aak's Issues

Document caveats

  • Reified functions aren't possible from annotation processing because they're not visible (synthetic)
  • Others?

Use optimized toString

Right now we generate something like this: "AakProxy_Names#nameAnnotation"

We should generate an optimized toString() for better string pooling like this

buildString { append("AakProxy").append("_").append("Names").append("#").append("nameAnnotation") }

Support annotation on annotation classes

Given

@AutoAnnotation
annotation class Named(val name: String)

Generate an extension function directly

fun KClass<Named>.aakInstance(name: String): Named {
  // ...
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.