From 7a2e2561333d08c741904908341e39fe5cb802f1 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Mon, 7 Sep 2026 23:38:49 -0400 Subject: [PATCH] [Build] (Android): let the trace APK be built in the push shape for the paired A/B - -Pmobilegl.pipePush=ON (or MOBILEGL_PIPE_PUSH_APK=ON) passes -DMOBILEGL_PIPE_PUSH=ON to the NDK build the way the spike opt-in already does; OFF by default so nothing shipped moves --- build.gradle | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build.gradle b/build.gradle index 8552b9f8..8daf5d80 100644 --- a/build.gradle +++ b/build.gradle @@ -15,6 +15,15 @@ def mobileGlBuildServerSpike = { (rootProject.findProperty('mobilegl.buildServerSpike') ?: System.getenv('MOBILEGL_BUILD_SERVER_SPIKE') ?: 'OFF') as String } +// P2 A/B opt-in. OFF by default, so the plugin flavour and every trace APK nobody asked for +// keep the pull shape; the paired two-device A/B (docs/Disaggregated ROADMAP GO/NO-GO items +// 3-4) builds one trace APK with it ON and compares it against the OFF build. Either +// ./gradlew :app:assembleTraceDebug -Pmobilegl.pipePush=ON +// or MOBILEGL_PIPE_PUSH_APK=ON in the environment. +def mobileGlPipePush = { + (rootProject.findProperty('mobilegl.pipePush') ?: System.getenv('MOBILEGL_PIPE_PUSH_APK') ?: 'OFF') as String +} + android { namespace 'top.mobilegl.mobilegl' compileSdk 34 @@ -70,6 +79,9 @@ android { // grow a binary nothing loads. See mobileGlBuildServerSpike // above for the two ways to enable it. arguments "-DMOBILEGL_BUILD_SERVER_SPIKE=${mobileGlBuildServerSpike()}" + // P2: the push-shaped library for the paired A/B, same flavour, same + // signing, one extra CMake option. See mobileGlPipePush above. + arguments "-DMOBILEGL_PIPE_PUSH=${mobileGlPipePush()}" } } }