Root Directory Structure
The project is organized as follows:App Module Structure
Theapp/ directory contains the main application code:
Key Directories
Source Code (app/src/main/java)
The main application source code is located in the Java package structure:
com.teamtech.techsales
This directory contains all Java source files for the application, including:
MainActivity.java- The main entry point activity
Resources (app/src/main/res)
Android resources are organized by type:
- drawable/ - Vector graphics, images, and drawable resources
- layout/ - XML layout files defining UI screens
- mipmap-*/ - Launcher icons at different densities (hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi, anydpi)
- values/ - String resources, colors, dimensions, styles
- values-night/ - Dark theme overrides
- xml/ - XML configuration files (backup rules, data extraction rules)
AndroidManifest.xml
Location:app/src/main/AndroidManifest.xml
The manifest file defines essential application information:
Test Directories
TechSales maintains separate directories for unit tests and instrumented tests.
app/src/test/java/com/teamtech/techsales/
- Contains JUnit tests that run on the JVM
- Example:
ExampleUnitTest.java
app/src/androidTest/java/com/teamtech/techsales/
- Contains tests that run on Android devices or emulators
- Example:
ExampleInstrumentedTest.java
Package Structure
The application uses the reverse domain name convention:- com.teamtech - Organization identifier
- techsales - Application name
app/build.gradle.ktsasnamespaceandapplicationIdAndroidManifest.xml(implicitly through the namespace)- All Java source files as the package declaration
Build Configuration Files
Project-level build.gradle.kts
Location:build.gradle.kts
Configures plugins and settings for all modules:
App-level build.gradle.kts
Location:app/build.gradle.kts
Defines app-specific build configuration, dependencies, and compile options. See the Building page for details.
Gradle Properties
Location:gradle.properties
Contains Gradle configuration settings and project-wide properties.
Next Steps
Building
Learn how to build the TechSales app
Running
Run the app on devices and emulators