Files
TapTap 9b105b3925
CI / build (push) Failing after 33s
build: target API 36 and sign Play upload bundles
- compileSdk/targetSdk 36: Google Play rejects new apps below API 36 since
  31 August 2026.
- Release signing from ANDROID_KEYSTORE_* environment variables or
  local.properties; unsigned when no upload key is configured.
- versionCode/versionName overridable via VERSION_CODE/VERSION_NAME.
- scripts/build-release-aab.sh builds and verifies a signed AAB.
- CI installs platform 36 until the CI image is rebuilt.
- Document the internal-testing upload flow.
2026-11-15 18:39:24 +00:00

68 lines
1.6 KiB
Nix

{ pkgs ? import <nixpkgs> {
# The Android SDK is unfree and requires accepting Google's license.
# Setting this here asserts that you accept it for this dev shell.
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
}
}:
let
jdk = pkgs.jdk21;
gradle = pkgs.gradle_8;
node = pkgs.nodejs_22;
androidPackages = pkgs.androidenv.composeAndroidPackages {
platformVersions = [ "36" ];
buildToolsVersions = [ "36.0.0" ];
includeEmulator = false;
includeSystemImages = false;
includeNDK = false;
};
androidSdk = "${androidPackages.androidsdk}/libexec/android-sdk";
desktopLibs = with pkgs; [
libGL
xorg.libX11
xorg.libXext
xorg.libXrender
fontconfig
freetype
alsa-lib
];
in
pkgs.mkShell {
packages = with pkgs; [
jdk
gradle
node
zip
unzip
git
curl
python3
] ++ desktopLibs;
JAVA_HOME = jdk.home;
ANDROID_HOME = androidSdk;
ANDROID_SDK_ROOT = androidSdk;
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath desktopLibs;
shellHook = ''
export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/cmdline-tools/latest/bin:$PATH"
echo "AudioManager client dev shell"
echo " Java: $(java -version 2>&1 | head -1)"
echo " Gradle: $(gradle --version | grep '^Gradle' | head -1)"
echo " Node: $(node --version)"
echo " Android SDK: $ANDROID_HOME"
echo ""
echo "Build:"
echo " gradle :composeApp:desktopTest"
echo " gradle :composeApp:assembleDebug"
echo " gradle :composeApp:run"
echo " gradle :composeApp:wasmJsBrowserDevelopmentExecutableDistribution"
'';
}