Overview
Building release versions of TechSales requires generating optimized APK or AAB files suitable for distribution. This guide covers the complete build process using Gradle.Build Configuration
The app’s release configuration is defined inapp/build.gradle.kts:
- Application ID:
com.teamtech.techsales - Version Code:
1 - Version Name:
1.0 - Target SDK:
36 - Min SDK:
29
Building Release APK
Run Assembly Command
Execute the Gradle command to build the release APK:This compiles the app, processes resources, and packages everything into an APK file.
Building Android App Bundle (AAB)
Google Play Store requires AAB format for new apps. AABs enable smaller downloads through dynamic delivery.
ProGuard and R8 Optimization
The TechSales app uses R8 for code optimization and obfuscation. Currently, minification is disabled in the build configuration:Enabling Code Shrinking
For production releases, it’s recommended to enable minification:ProGuard Rules
Custom ProGuard rules are defined inapp/proguard-rules.pro. Add rules to preserve critical classes:
Build Variants
You can list all available build variants:assembleDebug- Build debug APKassembleRelease- Build release APKbundleDebug- Build debug AABbundleRelease- Build release AAB
Clean Builds
For a fresh build, clean previous outputs first:Output Structure
After building, your output directory structure:Build Verification
Verify your build details using:- Compilation status
- Resource processing
- Packaging details
- Build duration
Release builds must be signed before distribution. See the Signing documentation for details.