3.5.0
New
Disable automatic context wrapping
Some libraries do not support to automatically unwrap the context and expect a specific class. In this case context wrapping in Jetpack Compose components can be disabled with:
Phrase(contextWrapping = false) {
Text( text = phraseString(R.string.test) )
}
When disabled translation resources need to be accessed manually via phraseString(id)
instead of stringResource(id)
.
Maven repository
The Maven repository URL changed to https://maven.download.phrase.com
To use the new repo add the following to your repositories config:
maven {
url "https://maven.download.phrase.com"
}
Package name
The package names changed and can be imported like this:
implementation "com.phrase.android:ota-sdk:3.5.0"
implementation "com.phrase.android:ota-sdk-compose:3.5.0"