How appdome/appdome-api-bash works
1. What this repo is
- A Bash client library that orchestrates Appdome Fusion task API calls against https://fusion.appdome.com/.
- It is not an application server; it is a command-line automation layer built around curl and JSON/config file inputs.
2. Primary entrypoints
- appdome_api.sh is the main end-to-end workflow for a task, from app upload through build, signing, and download.
- appdome_api_sdk.sh is a lighter entrypoint for SDK/AAR/zip-style flows.
- release_fusion_set.sh appears to be a separate utility for managing or publishing Fusion Set-related operations.
3. High-level control flow
- The scripts accept CLI flags such as API key, Fusion Set ID, Team ID, app artifact path, signing inputs, and output paths.
- The flow is: parse arguments → validate required inputs → upload or direct-upload artifact → create/trigger build task → poll task status → optionally sign → download outputs and reports.
4. Task orchestration layer
- The appdome_api_bash/ folder is the core orchestration library.
- Scripts there are split by API stage: upload.sh, build.sh, status.sh, download.sh, sign.sh, validate.sh, and direct_upload.sh.
- This suggests a pipeline where each stage is isolated and reused across the main wrappers.
5. Input parsing and shared context
- parser.sh and parser_sdk.sh handle CLI argument decoding for the general and SDK flows.
- context.sh likely stores normalized parameters so later stages can access a consistent runtime context instead of rereading raw CLI args.
- This separation is important because the same build/sign/download logic can be driven by different input modes.
6. Validation boundary
- validate.sh is the gatekeeper before any network operation.
- It likely checks required files, mutually exclusive signing options, and platform-specific constraints such as Android-only fingerprint options.
- This prevents invalid or incomplete requests from reaching the Appdome API.
7. External service boundary
- All actual build execution happens outside the repo, in Appdome’s API.
- The Bash code acts as a thin client around HTTP calls, so the main architectural boundary is between local CLI orchestration and remote Fusion task execution.
8. Artifact handling
- The inputs are binary/mobile artifacts: APK, AAB, IPA, AAR, or ZIP depending on flow.
- Outputs include signed or processed app artifacts and certificate/report files such as the --certificate_output PDF.
- There is also support for downloading auxiliary outputs like deobfuscation bundles.
9. Signing subsystem
- Signing is handled as a distinct stage via sign.sh, private_sign.sh, and auto_dev_sign.sh.
- The repo supports different signing modes: Android keystore-based signing, iOS P12/provisioning-profile signing, and automated dev signing variants.
- The main architectural distinction is whether signing happens on Appdome or is prepared as part of the client workflow.
10. Vendor and feature-specific integrations
- crashlytics.sh and datadog.sh indicate optional feature configuration modules for integrating third-party observability or crash-reporting settings into the build.
- These appear to be additive build-time concerns rather than separate services in this repo.
- sign.sh and build.sh likely consume these feature settings as part of the request payload.
11. Certificate pinning and Android signing fingerprints
- The README documents certificate pinning bundles and an Android signing fingerprint list.
- Architecturally, these are specialized input packages that get folded into the build request, not separate runtime components.
- The repo treats them as optional configuration artifacts that alter how the remote build is produced.
12. Shared utilities and implementation style
- utils.sh is the common helper layer, likely containing shell helpers for file checks, logging, JSON handling, and curl invocation patterns.
- The whole project is Bash-based, so the codebase is structured as composable shell modules rather than classes or services.
- An architecture diagram should therefore show a single CLI client split into reusable script modules, with one external dependency: the Appdome API.
Main entry points: build.sh Build · sign.sh Sign · upload.sh Upload · utils.sh Utils
Components 19
Entry points
Top-level command scripts that start the Bash workflows.
- Main CLI · Full end-to-end task workflow for upload, build, sign, and download.
appdome_api.sh - SDK CLI · Lighter entrypoint for SDK, AAR, and zip-style flows.
appdome_api_sdk.sh - Fusion Set · Separate utility for Fusion Set-related management or publishing.
release_fusion_set.sh
Orchestration
Core task pipeline modules that wrap Appdome API stages.
- Parser · Decodes general CLI flags into normalized inputs.
appdome_api_bash/parser.sh - SDK parser · Decodes CLI flags for the SDK-focused workflow.
appdome_api_bash/parser_sdk.sh - Validate · Checks required inputs and request constraints before network calls.
appdome_api_bash/validate.sh - Upload · Uploads artifacts to Appdome for build processing.
appdome_api_bash/upload.sh - Direct upload · Alternative upload path for direct artifact submission.
appdome_api_bash/direct_upload.sh - Build · Triggers the remote Fusion build task with configured options.
appdome_api_bash/build.sh - Status · Polls task progress until the remote build completes.
appdome_api_bash/status.sh - Download · Fetches processed artifacts, reports, and auxiliary outputs.
appdome_api_bash/download.sh
Signing
Signing-related flow modules and variants.
- Sign · Coordinates signing-related request setup and execution.
appdome_api_bash/sign.sh - Private sign · Handles private signing flows such as keystore or P12-based signing.
appdome_api_bash/private_sign.sh - Auto dev sign · Automates development-signing variants for supported platforms.
appdome_api_bash/auto_dev_sign.sh
Integrations
Optional feature modules folded into build requests.
- Crashlytics · Injects crash-reporting settings into the build payload.
appdome_api_bash/crashlytics.sh - Datadog · Injects observability settings into the build payload.
appdome_api_bash/datadog.sh
Support
Shared runtime state and helper utilities.
External service
Remote Appdome Fusion API executed outside this repo.
- Fusion API · Remote Appdome service that executes uploads, builds, signing, and downloads.
Connections 25
- Main CLI → Parser: uses · Main CLI begins by parsing general arguments.
- SDK CLI → SDK parser: uses · SDK CLI begins by parsing SDK-specific arguments.
- Parser → Context: normalize · Parsed flags are stored in shared runtime context.
- SDK parser → Context: normalize · SDK parsing also populates shared runtime context.
- Context → Validate: feeds · Validation reads normalized inputs and constraints.
- Validate → Upload: gates · Validation must pass before uploading or building.
- Validate → Direct upload: gates · Validation also guards direct upload paths.
- Upload → Build: hands off · Uploaded artifacts proceed into the build stage.
- Direct upload → Build: hands off · Direct uploads feed the build stage.
- Build → Status: polls · Build execution is followed by status polling.
- Status → Download: completes · Successful completion leads to output download.
- Build → Sign: configures · Build requests incorporate signing setup when needed.
- Sign → Private sign: branches · Signing can route through private signing modes.
- Sign → Auto dev sign: branches · Signing can also route through automated dev signing.
- Crashlytics → Build: augments · Crashlytics options are folded into build payloads.
- Datadog → Build: augments · Datadog options are folded into build payloads.
- Upload → Fusion API: calls · Upload stage invokes the remote Fusion API.
- Direct upload → Fusion API: calls · Direct upload stage invokes the remote Fusion API.
- Build → Fusion API: calls · Build stage submits the task to the remote service.
- Status → Fusion API: calls · Status polling queries remote task state.
- Download → Fusion API: calls · Download stage retrieves remote outputs.
- Sign → Fusion API: calls · Signing-related operations are executed through the remote API.
- Utils → Upload: supports · Shared helpers are used by stage modules.
- Utils → Build: supports · Shared helpers are used by stage modules.
- Utils → Download: supports · Shared helpers are used by stage modules.