Android Smart WebView 7.0 🎉 (Major Release) #318
Pinned
mgks
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Smart WebView v7.0 empowers developers to build even more dynamic and feature-rich hybrid applications. This release focuses on extensibility with a new plugin architecture, alongside improvements to core functionalities. Users will benefit from enhanced performance, streamlined file handling, and other capabilities. The update reflects a commitment to providing a versatile and efficient platform for app development.
Changelog
Major Features and Enhancements:
FileProcessingclass for improved code organization.acceptattributes.onNewToken()not being called.POST_NOTIFICATIONSpermission for Android 13 and above.WRITE_EXTERNAL_STORAGEpermission, relying on Scoped Storage for file access.Other Improvements and Updates:
NullPointerExceptionsrelated to context handling inFirebase.API Changes:
PluginInterface: Introduced a newPluginInterfacewith methods for plugin initialization, event handling, and simplified interaction with the WebView.PluginManager: Added aPluginManagerclass to handle plugin registration, lifecycle events, and communication with plugins.FileProcessing: Added aFileProcessingclass to encapsulate file upload and camera access logic.Functions: Removed several methods related to printing, cookies, orientation, file access, permissions, ratings, FCM, and device info. These are either handled elsewhere or no longer needed.SmartWebView: Removed or modified several variables related to configuration, user agent, and permissions, and added variables related to debugging and Google Tag. Also, removedASWP_OFFLINElogic.MainActivity: Refactored to use thePluginManagerandFileProcessingclasses. ModifiedonShowFileChooser(),Callbackclass,shouldOverrideUrlLoading(),onPageFinished(),onRequestPermissionsResult()andonActivityResult(). Removed unused methods and variables related to permissions and other features now handled by plugins or other classes.Firebase: Refactored to improve context handling, remove unnecessary constructor, and simplify notification handling logic.New Files:
MetaPull.java: Pulls device and SWV release details.FileProcessing.java: Handles file upload and camera access.PluginManager.java: Manages the plugin architecture.PluginInterface.java: Defines the interface for plugins.Testing:
Migration from v6.x:
PluginInterfaceand register them using thePluginManager.MainActivity,Functions, orSmartWebViewwill need to be updated to use the new plugin architecture or the appropriate classes (e.g.,FileProcessingandPluginManager).This discussion was created from the release Android Smart WebView 7.0 🎉 (Major Release).
Beta Was this translation helpful? Give feedback.
All reactions