2.6 KiB
2.6 KiB
layout | title | date | categories | author |
---|---|---|---|---|
post | 🚀 Release: Android Components 0.24 | 2018-09-21 20:15:00 +0200 | releases | jonathan |
0.24 (2018-09-21)
-
Compiled against:
- Android
- SDK: 27
- Support Libraries: 27.1.1
- Kotlin
- Standard library: 1.2.61
- Coroutines: 0.23.4
- GeckoView
- Nightly: 64.0.20180905100117
- Beta: 63.0b3 (0269319281578bff4e01d77a21350bf91ba08620)
- Release: 62.0 (9cbae12a3fff404ed2c12070ad475424d0ae869f)
- Android
-
dataprotect:
- Added a component using AndroidKeyStore to protect user data.
// Create a Keystore and generate a key val keystore: Keystore = Keystore("samples-dataprotect") keystore.generateKey() // Encrypt data val plainText = "plain text data".toByteArray(StandardCharsets.UTF_8) val encrypted = keystore.encryptBytes(plain) // Decrypt data val samePlainText = keystore.decryptBytes(encrypted)
-
concept-engine: Enhanced settings to cover most common WebView settings.
-
browser-engine-system:
SystemEngineSession
now provides a way to capture a screenshot of the actual content of the web page just by callingcaptureThumbnail
-
browser-session:
Session
exposes a new property calledthumbnail
and its internal observer also exposes a new listeneronThumbnailChanged
.
session.register(object : Session.Observer { fun onThumbnailChanged(session: Session, bitmap: Bitmap?) { // Do Something } })
SessionManager
lets you notify it when the OS is under low memory condition by calling to its new functiononLowMemory
.
-
browser-tabstray:
- Now on
BrowserTabsTray
every tab gets is own thumbnail :)
- Now on
-
support-ktx:
- Now you can easily query if the OS is under low memory conditions, just by using
isOSOnLowMemory()
extension function onContext
.
val shouldReduceMemoryUsage = context.isOSOnLowMemory() if (shouldReduceMemoryUsage) { //Deallocate some heavy objects }
View.dp
is nowResource.pxtoDp
.
// Before toolbar.dp(104) // Now toolbar.resources.pxToDp(104)
- Now you can easily query if the OS is under low memory conditions, just by using
-
samples-browser:
- Updated to show the new features related to tab thumbnails. Be aware that this feature is only available for
systemEngine
and you have to switch to the build variantsystemEngine*
.
- Updated to show the new features related to tab thumbnails. Be aware that this feature is only available for