Ntrman - Qa-apk -

| Step | Tool | Command | |------|------|---------| | Keystore generation | keytool | keytool -genkeypair -v -keystore release.jks -alias release-key -keyalg RSA -keysize 2048 -validity 10000 | | Fastlane lane (sign & upload) | fastlane | ```ruby\nlane :qa_apk do\n gradle(task: "assembleRelease")\n sign_apk(\n keystore_path: "keystores/release.jks",\n keystore_password: ENV['KEYSTORE_PASS'],\n alias: "release-key",\n key_password: ENV['KEY_ALIAS_PASS']\n )

In short, is a standardised, reproducible pipeline that couples a build‑manager (NTRMAN) with a rigorous QA stage, culminating in a production‑ready Android APK. 2. Core Concepts & Architecture ┌─────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ Source │ → │ NTRMAN CLI │ → │ QA‑APK Stage │ │ (Git repo) │ │ (build, config)│ │ (test, sign) │ └─────▲───────┘ └───────▲─────────┘ └───────▲─────────┘ │ │ │ │ │ │ │ │ │ ▼ ▼ ▼ CI/CD (GitHub Docker / Node Fastlane, Actions, GitLab containers) Gradle, Jenkins) etc. | Layer | Responsibility | |-------|-----------------| | Source | Version‑controlled code, Gradle scripts, native modules. | | NTRMAN | • Parses a ntrman.yml configuration file. • Installs required Node/Java/Android SDK versions via asdf or sdkman . • Executes gradlew assembleDebug (or assembleRelease ). | | QA‑APK | • Runs unit tests ( jest , mocha ). • Executes integration tests ( react-native-testing-library ). • Launches instrumented UI tests with Espresso or Detox . • Performs static analysis ( lint , detekt ). • Generates code coverage and performance metrics . • Signs the APK with the appropriate keystore once all gates pass. | | CI/CD | Orchestrates NTRMAN commands, caches artifacts, and publishes the final APK to Firebase App Distribution , Google Play internal test , or a private artifact repo. | 3. Getting Started 3.1 Prerequisites | Tool | Minimum Version | Installation Tip | |------|-----------------|------------------| | Node.js | 18.x LTS | asdf install nodejs 18.20.0 && asdf global nodejs 18.20.0 | | Java | OpenJDK 11 | sdk install java 11.0.22-open | | Android SDK | Platform‑tools 34+ | sdkmanager "platform-tools" "platforms;android-34" | | Docker | 24.x (optional) | Useful for reproducible builds in CI. | | Git | 2.40+ | Standard. | | NTRMAN | npm i -g ntrman | Installs the CLI globally. | | Fastlane (optional for signing) | 2.221+ | gem install fastlane (or use bundled Fastlane in the Docker image). | 3.2 Project Bootstrap # 1️⃣ Clone the repo git clone https://github.com/your-org/awesome-app.git cd awesome-app NTRMAN - QA-APK

# ntrman.yml – top‑level configuration android: sdkVersion: "34" buildTools: "34.0.0" gradleWrapper: "./android/gradlew" keystore: path: "./keystores/release.jks" alias: "release-key" storePasswordEnv: "KEYSTORE_PASS" keyPasswordEnv: "KEY_ALIAS_PASS" | Step | Tool | Command | |------|------|---------|

qa: unit: runner: "jest" config: "./jest.config.js" integration: runner: "detox" config: "./e2e/config.json" ui: runner: "espresso" apk: "app-debug.apk" coverage: threshold: statements: 80 branches: 70 functions: 85 lines: 85 • Executes gradlew assembleDebug (or assembleRelease )