Skip to content

chore(android): allow configuring sample app credentials#3243

Merged
abhaysood merged 1 commit intomainfrom
sample-app-configurator
Feb 27, 2026
Merged

chore(android): allow configuring sample app credentials#3243
abhaysood merged 1 commit intomainfrom
sample-app-configurator

Conversation

@abhaysood
Copy link
Contributor

@abhaysood abhaysood commented Feb 27, 2026

Description

  • Add a Configure Credentials screen to the sample app that allows hot-swapping the Measure SDK's API URL and API key at runtime via reflection, without rebuilding
  • Add a GitHub Actions workflow (android-build-sample.yml) to build the sample APK on demand with custom credentials via workflow_dispatch
  • Replace time-based versionCode generation with git commit count (git rev-list --count HEAD) for deterministic,
    monotonically increasing version codes

New option in sample app to configure credentials:

image

@vercel
Copy link

vercel bot commented Feb 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
measure-dashboard Ready Ready Preview, Comment Feb 27, 2026 7:09pm

@abhaysood abhaysood self-assigned this Feb 27, 2026
@abhaysood abhaysood added android android related chore internal tasks labels Feb 27, 2026
@abhaysood abhaysood force-pushed the sample-app-configurator branch from e17fb27 to 85f7f46 Compare February 27, 2026 18:19
@abhaysood abhaysood changed the title Sample app configurator chore(android): provide ways to configure sample app Feb 27, 2026
@abhaysood abhaysood changed the title chore(android): provide ways to configure sample app chore(android): provide ways to configure sample app credentials Feb 27, 2026
@abhaysood abhaysood force-pushed the sample-app-configurator branch from fa2f100 to 0cc9e6d Compare February 27, 2026 18:45
@abhaysood abhaysood force-pushed the sample-app-configurator branch from 0cc9e6d to 95a7d04 Compare February 27, 2026 18:49
@abhaysood abhaysood force-pushed the sample-app-configurator branch from 95a7d04 to 74c1a99 Compare February 27, 2026 18:58
@abhaysood abhaysood requested a review from detj February 27, 2026 19:04
@abhaysood abhaysood marked this pull request as ready for review February 27, 2026 19:05
- Add runtime configuration change mechanism
- Add github action to get a fresh build with any credentials
- Update version code generation to use commits count
@abhaysood abhaysood force-pushed the sample-app-configurator branch from 74c1a99 to 1b3e0a1 Compare February 27, 2026 19:07
@abhaysood abhaysood changed the title chore(android): provide ways to configure sample app credentials chore(android): allow configuring sample app credentials Feb 27, 2026
@abhaysood abhaysood merged commit 57243f3 into main Feb 27, 2026
11 checks passed
@abhaysood abhaysood deleted the sample-app-configurator branch February 27, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android android related chore internal tasks

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants