Urgent.News

600+ sources. One page. See who else covered it.

Editions

Tech

Building Custom Gradle Plugins for Android Projects

Building Custom Gradle Plugins for Android Projects Large Android repositories often contain dozens of modules with repeated Gradle configuration. Custom Gradle convention plugins allow teams to centralize build rules and apply them consistently. Instead of repeating configuration in every module, a feature module can use a simple plugin: plugins { id ( "company.android.feature" ) } Why Custom…

Building Custom Gradle Plugins for Android Projects is a strategy employed by teams to centralize build rules and ensure consistency across multiple modules in large repositories. These plugins, implemented in Kotlin, can be applied to Gradle projects to configure common Android settings, shared Kotlin compiler configurations, and even testing configurations.

For instance, a feature plugin can be used to bundle common configurations for Android features, while a library plugin can handle common configurations for Android libraries. By using version catalogs, teams can also centralize dependency versions, further streamlining the build process. The key to this approach is the creation of reusable, convention plugins that can be applied to any Gradle project, thereby reducing duplicated configuration and making maintenance easier.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — it may contain errors, so check the original before relying on it.

Read the original at dev.to →

More in Tech

Should You Buy an iPhone 17 Now or Wait for iPhone 18?

For the first time since Apple started selling standard and "Pro" iPhones, we're not going to get an entry-level iPhone model this fall.

  • Apple will not release an entry-level iPhone in the fall.
  • iPhone 18 Pro, Pro Max, and Ultra models to launch in September.
  • iPhone 17 priced at $799, trade-in prices expected to drop.

Kotlin Compiler Plugins & KSP: Building Code Generation Tools

Kotlin Compiler Plugins & KSP: Building Code Generation Tools Large Kotlin applications often contain repetitive code for serialization, dependency injection, adapters, database mappings, and API…

  • Kotlin Compiler Plugins and KSP aid in building code generation tools for large Kotlin applications
  • KSP is used for annotation processing, source generation, symbol inspection, and generating adapters

Real-Time Object Detection and Tracking with Kotlin and YOLO on Android

Real-Time Object Detection and Tracking with Kotlin and YOLO on Android Real-time computer vision is one of the most useful applications of machine learning on mobile devices.

  • Kotlin application captures camera frames for real-time object detection
  • YOLO-style detector processes frames with GPU acceleration
  • Tracking system maintains object identity across frames using IoU