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
-
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:
FileProcessing
class for improved code organization.accept
attributes.onNewToken()
not being called.POST_NOTIFICATIONS
permission for Android 13 and above.WRITE_EXTERNAL_STORAGE
permission, relying on Scoped Storage for file access.Other Improvements and Updates:
NullPointerExceptions
related to context handling inFirebase
.API Changes:
PluginInterface
: Introduced a newPluginInterface
with methods for plugin initialization, event handling, and simplified interaction with the WebView.PluginManager
: Added aPluginManager
class to handle plugin registration, lifecycle events, and communication with plugins.FileProcessing
: Added aFileProcessing
class 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_OFFLINE
logic.MainActivity
: Refactored to use thePluginManager
andFileProcessing
classes. ModifiedonShowFileChooser()
,Callback
class,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:
PluginInterface
and register them using thePluginManager
.MainActivity
,Functions
, orSmartWebView
will need to be updated to use the new plugin architecture or the appropriate classes (e.g.,FileProcessing
andPluginManager
).This discussion was created from the release Android Smart WebView 7.0 🎉 (Major Release).
Beta Was this translation helpful? Give feedback.
All reactions