phrase/phrase-android
phrase/android-sdk-example
Installation
Add the Phrase Maven repository to your rootbuild.gradle, then add the SDK dependency:
Setup
Initialize in yourApplication class and trigger the initial fetch. Both values are available in the Phrase Strings dashboard after creating a distribution, or via the Distributions API:
Using translations
Jetpack Compose:@string/your_key as normal; the SDK intercepts the resource lookup.
Programmatic access:
Configuration options
setAppVersion is useful if your versionName does not follow <major>.<minor>.<patch> format, which is required for semantic version targeting.