Minimal Android app showing over-the-air translations end to end.
From the repository root (that is where the Gradle wrapper lives):
./gradlew :sample:installDebugOr open ota-sdk-android in Android Studio and run the sample configuration.
It works out of the box with the strings bundled in res/values/strings.xml.
- Put your project token (Settings -> Credentials) in
SampleApplication.kt. - In SimpleLocalize create the keys
home_title,home_subtitle,home_greeting,home_cta,home_language- translation keys must match the resource entry names. - Publish to
_latestand tap Refresh translations in the app.
SimpleLocalize.start()inSampleApplication.kt,SimpleLocalize.wrapContext()inMainActivity, so plainstringResource(R.string.home_title)resolves over the air,- a listener that rebuilds the screen when new translations arrive,
SimpleLocalize.setLanguage()behind the language chips.