fix: use shellHook to set aapt2 override via gradle.properties
AGP 8.7.3 reads android.aapt2FromMavenOverride via providers.gradleProperty() which only reads gradle.properties files, not JVM system properties set via GRADLE_OPTS -D. The shellHook rewrites the sentinel value on every nix develop so the correct nix store path is always present before gradle runs.
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
org.gradle.jvmargs=-Xmx2g
|
||||
android.useAndroidX=true
|
||||
# NixOS: AGP cannot run the Maven-downloaded aapt2 (dynamically linked generic Linux binary).
|
||||
# Value is rewritten by the nix shellHook on every `nix develop` — do not edit manually.
|
||||
android.aapt2FromMavenOverride=__NIX_SHELLHOOK_SETS_THIS__
|
||||
|
||||
Reference in New Issue
Block a user