<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Zakayo Thuku on Medium]]></title>
        <description><![CDATA[Stories by Zakayo Thuku on Medium]]></description>
        <link>https://medium.com/@zakayongigethuku?source=rss-4812c3c1a28c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TCY36F-rJd9BYLvhCmFlDw@2x.jpeg</url>
            <title>Stories by Zakayo Thuku on Medium</title>
            <link>https://medium.com/@zakayongigethuku?source=rss-4812c3c1a28c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:09:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zakayongigethuku/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Web3 Chucker: In-App OkHttp JSON-RPC Inspector & EVM Revert Decoder]]></title>
            <link>https://medium.com/@zakayongigethuku/web3-chucker-in-app-okhttp-json-rpc-inspector-evm-revert-decoder-2261c6f4c0de?source=rss-4812c3c1a28c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2261c6f4c0de</guid>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Zakayo Thuku]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 09:46:33 GMT</pubDate>
            <atom:updated>2026-08-31T11:08:32.381Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kqKWWjkWCVXE9x0O.jpg" /></figure><p>Building decentralized mobile applications (dApps) and crypto wallets on Android involves frequent JSON-RPC communications with Ethereum, Polygon, Arbitrum, or Solana RPC nodes (via Infura, Alchemy, or QuickNode).</p><p>Debugging failed transactions is notoriously difficult when raw JSON-RPC responses only return opaque 4-byte revert signatures ( 0x08c379a0) or generic execution reverted messages without clear parameter decoding.</p><p><strong>web3-chucker</strong> extends OkHttp to inspect, parse, and decode Web3 JSON-RPC transactions and smart contract revert errors directly on-device.</p><h3>🏗️ Architecture: JSON-RPC Parsing &amp; Revert Lookup Engine</h3><ul><li><strong>Method-Aware RPC Filtering:</strong> Automatically tags and filters JSON-RPC methods (eth_sendRawTransaction, eth_call, eth_estimateGas, personal_sign, solana_sendTransaction).</li><li><strong>4-Byte Revert Decoder:</strong> Translates opaque error selectors (e.g. 0x4e487b71 -&gt; Panic(uint256)) into human-readable contract revert reasons.</li><li><strong>Latency &amp; Gas Tracking:</strong> Measures round-trip RPC execution latency and flags gas estimation spikes.</li></ul><h3>🛠️ Step-by-Step Implementation Guide</h3><h3>1. Add Gradle Dependency</h3><pre>dependencies { <br>  // Debug builds: full JSON-RPC inspector &amp; overlay UI <br>  debugImplementation ( &quot;io.github.zakayothuku:web3-chucker:1.0.0&quot; ) <br>  // Release builds: zero-overhead no-op artifact <br>  releaseImplementation ( &quot;io.github.zakayothuku:web3-chucker-noop:1.0.0&quot; ) <br>}</pre><h3>2. Configure Web3ChuckerInterceptor with OkHttp</h3><pre>val okHttpClient = OkHttpClient.Builder()<br>    .addInterceptor(<br>        Web3ChuckerInterceptor(<br>            context = applicationContext,<br>            maxContentLength = 250_000L,<br>            decodeReverts = true<br>        )<br>    )<br>    .build()<br><br>// Provide client to Web3j or custom RPC client<br>val web3j = Web3j.build(HttpService(&quot;https://mainnet.infura.io/v3/YOUR_KEY&quot;, okHttpClient))</pre><h3>3. Attach Floating Overlay</h3><pre>@Composable<br>fun WalletApp() {<br>    Box(modifier = Modifier.fillMaxSize()) {<br>        WalletNavHost()<br><br>        if (BuildConfig.DEBUG) {<br>            Web3ChuckerOverlay()<br>        }<br>    }<br>}</pre><p>👉 <strong>GitHub Repository:</strong> <a href="https://github.com/zakayothuku/web3-chucker">github.com/zakayothuku/web3-chucker</a></p><p><em>Originally published at </em><a href="https://dev.to/zakayothuku/web3-chucker-in-app-okhttp-json-rpc-inspector-evm-revert-decoder-3pcj"><em>https://dev.to</em></a><em> on August 31, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2261c6f4c0de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compose Room Inspector: In-App SQLite & Room DB Browser with Jetpack Compose Overlay]]></title>
            <link>https://medium.com/@zakayongigethuku/compose-room-inspector-in-app-sqlite-room-db-browser-with-jetpack-compose-overlay-7f66c702f76b?source=rss-4812c3c1a28c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7f66c702f76b</guid>
            <category><![CDATA[sqlite]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-room-database]]></category>
            <dc:creator><![CDATA[Zakayo Thuku]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 09:46:11 GMT</pubDate>
            <atom:updated>2026-08-31T11:02:42.482Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a8vcHcWFpSBskEPR.jpg" /></figure><p>Debugging local database state on Android often requires tethering the device to Android Studio to use the App Inspection tab. However, when QA engineers or developers are testing in the field, verifying whether an offline sync job or local caching mutation wrote the correct database records is impossible without desktop access.</p><p><strong>compose-room-inspector</strong> is an on-device SQLite &amp; Room database inspector featuring live table browsing, schema introspection, and an interactive raw SQL console with query timing.</p><h3>🏗️ Architecture &amp; Security Model</h3><ul><li><strong>Zero Schema Boilerplate:</strong> Automatically introspects all tables, column types, and primary key (🔑) constraints at runtime using SQLite pragmas.</li><li><strong>2D Virtualized Grid:</strong> Horizontally and vertically scrollable table viewer with sticky column headers and real-time column search.</li><li><strong>SQL Console with Execution Profiling:</strong> Execute ad-hoc queries with an execution time badge (e.g. ⚡ 14 ms) to verify query efficiency.</li><li><strong>1-Tap Export:</strong> Copy table records as structured CSV or JSON to the clipboard for bug reports.</li></ul><h3>🛠️ Step-by-Step Implementation Guide</h3><h3>1. Add Gradle Dependency</h3><pre>dependencies { <br>  // Debug builds: in-app SQLite &amp; Room inspector overlay <br>  debugImplementation ( &quot;io.github.zakayothuku:compose-room-inspector:1.0.0&quot; ) <br>  // Release builds: zero-overhead no-op artifact <br>  releaseImplementation ( &quot;io.github.zakayothuku:compose-room-inspector-noop:1.0.0&quot; ) <br>}</pre><h3>2. Register Your Database Instance</h3><p>In your Application class or Dependency Injection module:</p><pre>@Provides<br>@Singleton<br>fun provideAppDatabase(@ApplicationContext context: Context): AppDatabase {<br>    val database = Room.databaseBuilder(<br>        context,<br>        AppDatabase::class.java,<br>        &quot;app_commerce.db&quot;<br>    ).build()<br><br>    // Register database with the inspector in debug builds<br>    if (BuildConfig.DEBUG) {<br>        ComposeRoomInspector.register(<br>            name = &quot;Commerce DB&quot;,<br>            database = database.openHelper.writableDatabase<br>        )<br>    }<br><br>    return database<br>}</pre><h3>3. Display the Inspector Overlay</h3><pre>@Composable<br>fun AppRoot() {<br>    Box(modifier = Modifier.fillMaxSize()) {<br>        MainNavigation()<br><br>        if (BuildConfig.DEBUG) {<br>            ComposeRoomInspectorOverlay()<br>        }<br>    }<br>}</pre><p>👉 <strong>GitHub Repository:</strong> <a href="https://github.com/zakayothuku/compose-room-inspector">github.com/zakayothuku/compose-room-inspector</a></p><p><em>Originally published at </em><a href="https://dev.to/zakayothuku/compose-room-inspector-in-app-sqlite-room-db-browser-with-jetpack-compose-overlay-3ac9"><em>https://dev.to</em></a><em> on August 31, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7f66c702f76b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compose Chaos Proxy: On-Device Network Latency & HTTP Chaos Simulator for Android]]></title>
            <link>https://medium.com/@zakayongigethuku/compose-chaos-proxy-on-device-network-latency-http-chaos-simulator-for-android-7a3727eeb4d1?source=rss-4812c3c1a28c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a3727eeb4d1</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <dc:creator><![CDATA[Zakayo Thuku]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 09:45:16 GMT</pubDate>
            <atom:updated>2026-08-31T10:55:19.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vIcIHRj_gHvBEH0l.jpg" /></figure><p>Modern mobile applications must gracefully handle harsh real-world network conditions — from spotty subway tunnels and high-latency 3G networks to expired OAuth tokens (401) and server outages (500/503).</p><p>Traditionally, testing these states required desktop proxy tools like Charles Proxy, Proxyman, or mitmproxy, involving Wi-Fi proxy configurations and installing custom root SSL certificates on test devices.</p><p><strong>compose-chaos-proxy</strong> eliminates the desktop proxy requirement by providing an on-device network chaos engine with a floating Jetpack Compose control overlay.</p><h3>🏗️ Architecture: OkHttp Interceptor + Dynamic Rule Engine</h3><ul><li><strong>Seamless OkHttp Integration:</strong> Plugs directly into your existing OkHttpClient pipeline.</li><li><strong>Granular URL Regex Filtering:</strong> Target specific endpoints (e.g., /api/v1/checkout.* or /auth/refresh) without affecting analytics or image loading.</li><li><strong>Configurable Failure Rates:</strong> Simulate flaky connections by failing a percentage of requests (e.g. 25% failure probability).</li><li><strong>Custom JSON Mock Payloads:</strong> Return custom error JSON responses matching your backend error schemas.</li></ul><h3>🛠️ Step-by-Step Implementation Guide</h3><h3>1. Add Gradle Dependency</h3><pre>dependencies { <br>  // Debug builds: on-device network chaos simulator &amp; UI overlay <br>  debugImplementation ( &quot;io.github.zakayothuku:compose-chaos-proxy:1.0.0&quot; ) <br>  // Release builds: zero-overhead no-op artifact <br>  releaseImplementation ( &quot;io.github.zakayothuku:compose-chaos-proxy-noop:1.0.0&quot; ) <br>}</pre><h3>2. Attach Interceptor to OkHttpClient</h3><pre>val okHttpClient = OkHttpClient.Builder()<br>    .addInterceptor(ComposeChaosInterceptor(context = applicationContext))<br>    .connectTimeout(15, TimeUnit.SECONDS)<br>    .readTimeout(15, TimeUnit.SECONDS)<br>    .build()</pre><h3>3. Add the Floating Chaos Control Overlay</h3><p>Add ComposeChaosOverlay to your root Composable:</p><pre>@Composable<br>fun RootApp() {<br>    Box(modifier = Modifier.fillMaxSize()) {<br>        AppContent()<br><br>        // Draggable floating chaos control trigger<br>        if (BuildConfig.DEBUG) {<br>            ComposeChaosOverlay()<br>        }<br>    }<br>}</pre><p>🧪 Real-World QA &amp; Testing Scenarios</p><ol><li><strong>Testing Token Expiry (401 Unauthorized):</strong></li></ol><ul><li>Inject a 401 error rule on /api/v1/user/profile.</li><li>Verify that your Authenticator or refresh token interceptor automatically triggers a refresh and replays the original request seamlessly.</li></ul><p><strong>2. Testing Optimistic UI Rollbacks:</strong></p><ul><li>Inject a 500 Internal Server Error rule on &quot;Like Tweet&quot; or &quot;Add to Cart&quot;.</li><li>Verify that your UI immediately updates optimistically, catches the 500 failure, reverts the UI state, and shows a friendly snackbar.</li></ul><p><strong>3. Testing Slow 3G Connections:</strong></p><ul><li>Inject a 3000ms latency rule on product search queries.</li><li>Verify that shimmer loading placeholders display correctly without layout shifts.</li></ul><p>👉 <strong>GitHub Repository:</strong> <a href="https://github.com/zakayothuku/compose-chaos-proxy">github.com/zakayothuku/compose-chaos-proxy</a></p><p><em>Originally published at </em><a href="https://dev.to/zakayothuku/compose-chaos-proxy-on-device-network-latency-http-chaos-simulator-for-android-56gc"><em>https://dev.to</em></a><em> on August 31, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a3727eeb4d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Compose Recomposition Highlighter: On-Device Visual Recomposition Heatmap for Android]]></title>
            <link>https://medium.com/@zakayongigethuku/compose-recomposition-highlighter-on-device-visual-recomposition-heatmap-for-android-3e7e45ed53fe?source=rss-4812c3c1a28c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e7e45ed53fe</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[jetpack-compose]]></category>
            <dc:creator><![CDATA[Zakayo Thuku]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 09:45:10 GMT</pubDate>
            <atom:updated>2026-08-31T10:42:03.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pm5Bm-JSQhOHLGRp.jpg" /></figure><p>In Jetpack Compose, the declarative UI paradigm simplifies state synchronization, but unintentional recomposition cascades remain one of the primary causes of UI micro-stutters (jank) and battery drain.</p><p>While the desktop Android Studio Layout Inspector provides recomposition counts, diagnosing performance regressions on physical devices in real-world conditions (without being tethered to a workstation over USB) has historically been challenging.</p><p>To solve this, we built <strong>compose-recomposition-highlighter</strong> - an open-source, on-device visual performance auditor for Jetpack Compose.</p><h3>🏗️ Architectural Overview &amp; How It Works</h3><p>compose-recomposition-highlighter operates through a lightweight modifier and a thread-safe recomposition registry:</p><ol><li><strong>Draw-Phase Tracking:</strong> Uses Modifier.drawWithCache to read and increment render passes during the draw phase, ensuring the tracking itself does not trigger additional recomposition loops.</li><li><strong>Dynamic Heatmap Mapping:</strong> Maps the render frequency to a high-contrast color gradient:</li></ol><ul><li>🟢 <strong>Green (1–2x):</strong> Healthy, expected recomposition.</li><li>🟡 <strong>Yellow (3–5x):</strong> Moderate activity.</li><li>🟠 <strong>Orange (6–9x):</strong> High recomposition rate.</li><li>🔴 <strong>Red (10x+):</strong> Severe hotspot / infinite recomposition alert.</li></ul><p><strong>3. Hotspot Velocity Metrics:</strong> Calculates velocity (recomps/sec) to help you spot runaway loops immediately.</p><h3>🛠️ Step-by-Step Implementation Guide</h3><h3>1. Add Gradle Dependency</h3><p>Add the library from Maven Central using debugImplementation so it is automatically stripped from release builds:</p><pre>dependencies { <br>  // Debug builds: full highlighter engine + UI overlay <br>  debugImplementation ( &quot;io.github.zakayothuku:compose-recomposition-highlighter:1.0.0&quot; ) <br>  <br>  // Release builds: zero-overhead no-op artifact <br>  releaseImplementation ( &quot;io.github.zakayothuku:compose-recomposition-highlighter-noop:1.0.0&quot; ) <br>}</pre><h3>2. Attach the Modifier to Target Composables</h3><p>Attach .recompositionHighlighter() to any composable you want to monitor:</p><h3>3. Mount the Floating Performance HUD</h3><p>In your root application screen or navigation host, wrap your content with ComposeRecompositionOverlay:</p><h3>🔍 Common Jetpack Compose Traps You Will Catch</h3><ol><li><strong>Unstable Lambda Parameters:</strong> Passing non-memoized lambdas (e.g. { viewModel.doSomething(item.id) }) inside LazyColumn items causing whole-list invalidations.</li><li><strong>Un-remembered Derived Computations:</strong> Calculating heavy sorted lists or date formats directly inside the composable body without remember { ... }.</li><li><strong>Over-Observing StateFlows:</strong> Observing a coarse-grained UI state object when a composable only needs a single primitive boolean.</li></ol><p>👉 <strong>GitHub Repository:</strong> <a href="https://github.com/zakayothuku/compose-recomposition-highlighter">github.com/zakayothuku/compose-recomposition-highlighter</a></p><p><em>Originally published at </em><a href="https://dev.to/zakayothuku/compose-recomposition-highlighter-on-device-visual-recomposition-heatmap-for-android-3nkk"><em>https://dev.to</em></a><em> on August 31, 2026.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e7e45ed53fe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>