zikzak_useragent_android 1.1.0
zikzak_useragent_android: ^1.1.0 copied to clipboard
The Android implementation of zikzak_useragent.
1.1.0 #
🔥 ZIKZAK ANDROID IMPLEMENTATION REFACTOR 🔥 #
BREAKING CHANGES:
- PACKAGE RENAME:
webview_useragent_android→zikzak_useragent_android - CLASS RENAME:
WebviewUserAgentPlugin→ZikzakUserAgentPlugin - METHOD CHANNEL: Updated from
webview_useragenttozikzak_useragent - IMPORT PATHS: Updated platform interface import to
zikzak_useragent_platform_interface - DART CLASS:
WebviewUserAgentAndroid→ZikzakUserAgentAndroid - PACKAGE PATH: Kotlin classes moved to
com.strysk.zikzak_useragent_android.zikzak_useragent_android
ANDROID-SPECIFIC IMPROVEMENTS:
- ✅ Enhanced WebView settings extraction with better null safety
- ✅ Improved Kotlin code structure and documentation
- ✅ Memory-efficient WebView initialization with application context
- ✅ Thread-safe async result handling
- ✅ Optimized method channel communication
TECHNICAL UPDATES:
- Kotlin: Latest stable version
- Android API: Minimum 19+ (Android 4.4)
- Target SDK: 33+
- Architecture: Clean Architecture compliance
- WebView: System WebView integration
PERFORMANCE ENHANCEMENTS:
- Lazy Loading: WebView created only when needed
- Context Optimization: Application context for proper lifecycle
- Memory Footprint: Minimal resource usage
- Error Recovery: Graceful handling of WebView failures
- Null Safety: Comprehensive null checking
MIGRATION GUIDE:
// OLD (v1.0.0)
package com.strysk.webview_useragent_android.webview_useragent_android
class WebviewUserAgentPlugin: FlutterPlugin, MethodCallHandler {
val channel = MethodChannel(binding.binaryMessenger, "webview_useragent")
}
// NEW (v1.1.0)
package com.strysk.zikzak_useragent_android.zikzak_useragent_android
class ZikzakUserAgentPlugin: FlutterPlugin, MethodCallHandler {
val channel = MethodChannel(binding.binaryMessenger, "zikzak_useragent")
}
// OLD Dart Implementation
import 'package:webview_useragent_platform_interface/webview_useragent_platform_interface.dart';
class WebviewUserAgentAndroid extends WebviewUserAgentPlatform { }
// NEW Dart Implementation
import 'package:zikzak_useragent_platform_interface/zikzak_useragent_platform_interface.dart';
class ZikzakUserAgentAndroid extends ZikzakUserAgentPlatform { }
PUBSPEC CHANGES:
- Package Name:
zikzak_useragent_android - Plugin Implementation:
zikzak_useragent - Dart Plugin Class:
ZikzakUserAgentAndroid - Plugin Class:
ZikzakUserAgentPlugin
ARCHITECTURE IMPROVEMENTS:
- ✅ Clean separation of concerns
- ✅ Enhanced error handling patterns
- ✅ Improved lifecycle management
- ✅ Better memory management
- ✅ Thread-safe operations
TESTING UPDATES:
- ✅ Updated integration tests for new class names
- ✅ Enhanced test coverage for error scenarios
- ✅ Improved Flutter integration testing
COMPATIBILITY:
- Android Versions: 4.4+ (API 19+)
- Architecture: ARM, ARM64, x86, x86_64
- WebView: System WebView and Chrome Custom Tabs
- Flutter: >=3.19.0
AUTHOR: ARRRRNY
WEBSITE: zuzu.dev
EMAIL: [email protected]
Native Android precision. WebView mastery. Zero compromise.
1.0.0 #
- Initial release.