Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Gradle Dive: Writing Custom Plugins
Search
Theophilus Kibet
November 15, 2022
Programming
84
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Gradle Dive: Writing Custom Plugins
Theophilus Kibet
November 15, 2022
Transcript
32 slides
Gradle Dive: Writing Custom Plugins Theophilus Kibet Android Engineer @Kyosk
@_kibetheophilus
:app
:app :feature:profile :feature:cart :feature:products :data:local :data:network :core
26+
- Each module needs a build.gradle.
- Each module needs a build.gradle. - Duplicate scripts in
each module.
- Each module needs a build.gradle. - Duplicate scripts in
each module. - Hard to maintain.
- Each module needs a build.gradle - Duplicate scripts in
each module - Hard to maintain e.g creating a build type
- Declares Gradle plugins. Each build.gradle
- Declares Gradle plugins. - Sets build parameters. Each build.gradle
- Declares Gradle plugins. - Sets build parameters. - Declares
dependencies. Each build.gradle
Gradle Plugin
- packages up reusable pieces of build logic, which can
be used across many different projects and builds. Gradle Plugin
- Script Plugin Types of Plugins
- Script Plugin - Binary Plugin Types of Plugins
- Additional build script Script Plugin
- Additional build script - apply from : “flavors.gradle” Script
Plugin
- Written by implementing plugin interface. Binary Plugin
- Written by implementing plugin interface - Applied using a
unique id Binary Plugin
- Written by implementing plugin interface - Applied using a
unique id - plugins { id(“com.android.library”) } Binary Plugin
- What will the plugin do? Creating a Plugin
- Add gradleApi() and kotlin dependencies Setup
None
- Add gradleApi() and kotlin dependencies - Create a class
implementing Plugin interface Setup
None
None
None
None
None
- Share build logic across modules - Reduced build script
size - Migrate all our files to kts Benefits
Questions?
Thank you!
More Decks by Theophilus Kibet
See All by Theophilus Kibet
From Source to Bytecode: Understanding the Kotlin Compilation Process
kibet
0
130
Building Cross- Platform Applications with Kotlin Multiplatform
kibet
0
65
Crafting Custom Lint Rules: Elevating Android Code Quality
kibet
0
120
Mastering GitHub Actions: Automate and Supercharge Your Development Workflow
kibet
0
110
Build Configurations: types, variants and flavors.
kibet
0
91
Opportunities in Tech
kibet
0
110
Introduction To Android Development
kibet
0
82
Other Decks in Programming
See All in Programming
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
400
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
Debian JP Projectのサーバー構成
uwabami
1
160
protojson における文字化けの扱い
kazuki1023
0
460
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.6k
LLM 101: Exploring LLMs, Starting with Tokens.
dalinaum
0
120
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
180
止まらない比較を止める — 余帰納法で無限ストリームを比べる
tarao
0
210
AppFunctionsの内部実装を紐解く
hiroaki404
0
110
LLM 101
dalinaum
0
520
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
230
Featured
See All Featured
Utilizing Notion as your number one productivity tool
mfonobong
4
650
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
990
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
900
BBQ
matthewcrist
90
10k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
580
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
The Art of Programming - Codeland 2020
erikaheidi
57
15k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
630
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Music & Morning Musume
bryan
48
7.5k