Giter VIP home page Giter VIP logo

webview_cookie_manager's Introduction

Webview Cookie Manager

pub package

A flutter library to manager your web cookies for Android (API level 9+) and iOS (11+).

The cookies stores and retrieves using the httpCookieStore for iOS and CookieManager for Android.

Get started iOS

Set minimum version for iOS to 11.0

Usage

The WebCookieManager can be used directly or together with webview_flutter.

Get cookies

final cookieManager = WebviewCookieManager();

final gotCookies = await cookieManager.getCookies('https://youtube.com');
for (var item in gotCookies) {
  print(item);
}

Set a cookie

await cookieManager.setCookies([
              Cookie('cookieName', 'cookieValue')
                ..domain = 'youtube.com'
                ..expires = DateTime.now().add(Duration(days: 10))
                ..httpOnly = false
            ]);

Check is any cookie available

await cookieManager.hasCookies();

Remove a cookie

await cookieManager.removeCookie();

Clear cookies

await cookieManager.clearCookies();

Domain attribute

Domain attribute is not required according to RFC, but it is important to remember that empty domain causes undefined behavior. So it is highly reccommended to specify it this this way:

final cookie = Cookie('cookieName', 'cookieValue')..domain = 'youtube.com';

Secure attribute

If you see the error Strict Secure Cookie policy does not allow setting a secure cookie for http://your-domain.net/ for apps targeting >= R. Please either use the 'https:' scheme for this URL or omit the 'Secure' directive in the cookie value. Then you need to set the origin while setting the cookie, in that case setting the domain is not required.

final cookies = <Cookie>[];
// Add your cookie with secure flag to the array
cookieManager.setCookies(cookies, origin: 'https://your-domain.net')

Troubleshooting on iOS

  1. Set minimum target iOS version to 11 (see also #17)
  2. If you are using Objective C, check that PodFile have a flag use_frameworks (see also #4)
target 'Runner' do
  use_frameworks!
  use_modular_headers!
  ..........
end

webview_cookie_manager's People

Contributors

amarchenko25 avatar dtyoung avatar ertgrulll avatar farmanteachedison avatar fryette avatar gautehaugen avatar henrikvedal avatar iverc avatar jeiea avatar jiechic avatar josephnk avatar kamgurgul avatar m-ochyra avatar mol0ko avatar negator avatar rekire avatar shcherbuk96 avatar siarhei-kulbeda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

webview_cookie_manager's Issues

Build error with Flutter 2.5.1

When building for Android with Flutter 2.5.1 on a project that uses webview_cookie_manager:

Could not resolve all files for configuration ':webview_cookie_manager:debugCompileClasspath'.
Could not resolve io.flutter:flutter_embedding_debug:1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f.
Required by:
project :webview_cookie_manager
> Cannot find a version of 'io.flutter:flutter_embedding_debug' that satisfies the version constraints:
Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f'
Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-b3af521a050e6ef076778bcaf16e27b2521df8f8'
Constraint path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:{strictly 1.0.0-b3af521a050e6ef076778bcaf16e27b2521df8f8}' because of the following reason: debugRuntimeClasspath uses version 1.0.0-b3af521a050e6ef076778bcaf16e27b2521df8f8

Removing the webview_cookie_manager from the dependencies allows the build to succeed.

Can't store the cookies

`package:flutter_inappwebview/src/types.dart

The element type 'Cookie (where Cookie is defined in C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_inappwebview-5.4.3+7\lib\src\types.dart)' can't be assigned to the list type 'Cookie (where Cookie is defined in C:\Flutter\flutter\bin\cache\pkg\sky_engine\lib_http\http.dart)'.dartlist_element_type_not_assignable
types.dart(3494, 7): Cookie is defined in C:\Flutter\flutter.pub-cache\hosted\pub.dartlang.org\flutter_inappwebview-5.4.3+7\lib\src\types.dart
http.dart(857, 16): Cookie is defined in C:\Flutter\flutter\bin\cache\pkg\sky_engine\lib_http\http.dart`

I want to store cookies in Cookie list for later use

Format exception

if cookie.value = "{"123.123.123.123": 1234}:5678:9999"
webviewCookieManager.getCookies(url) is error.
FormatException: Invalid character in cookie value, code unit: '92' (at character 2)

Is getCookie() persisting cookies on the device?

Hello guys,

I am currently working on a project where I need to persist a cookie of a webpage that I open with the WebView library.

So my question is, does the getCookie method persist its fetched cookies on the device or not, and if not is there a workaround to persist these cookies?

Future returned by setCookies never finishes

Hi,
I'm awaiting the future returned by setCookies(), but since a few days it sometimes never finishes awaiting on iOS. No clue what's happening, sometimes it works but most of the time it waits forever. It used to work completely fine, so no idea why this is happening now. The issue occurs with both 2.0.0 and 2.0.1 but 2.0.0 definitely used to work.

No errors or output either.

Format Exception

I am having problems with format exception on following Cookie:
ISAWPLB{21B8A963-08B8-4182-BB62-95CD0CEEE9DC}={68CF861A-E382-45D6-BC7C-9FFB87B95834};

I am not an Administrator to the Website which Cookies I need, so I can not change format.
However I desperately need this Plugin to read the httponly cookies. But thanks to the exception I can not access them.
Any way around this?

Forbidden character in cookies

Greetings. I logged in to one of the sites using webviews. Now I am trying to get the cookie, but I get the following error. Apparently, the cookies contain a forbidden character (slash). How can this problem be solved? Before that, everything worked. Appeared with a flutter version update (dart)

Screenshot_3
Screenshot_1
Screenshot_2

App fails on flutter build ios

When running flutter build ios i get the following error...


flutter build ios
Building com.orangelv.coerver for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: WE63LT22V5
Running pod install...                                              1.7s
Running Xcode build...                                                  
                                                   
 └─Compiling, linking and signing...                         1.4s
Xcode build done.                                           32.6s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    /Users/jack.lovett/dev/playerpathway-webview-apps/coerver/ios/Runner/GeneratedPluginRegistrant.m:16:9: fatal error: module 'webview_cookie_manager' not found
    @import webview_cookie_manager;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    /Users/jack.lovett/dev/playerpathway-webview-apps/coerver/ios/Runner/GeneratedPluginRegistrant.m:16:9: fatal error: module 'webview_cookie_manager' not found
    @import webview_cookie_manager;
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Encountered error while building for device.

flutter run works fine. I am using webview_cookie_manager: ^1.0.3 and i am targeting platform :ios, '11.0' as described in docs. Any ideas?

Here is my flutter doctor output if that helps

flutter doctor   
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.20.2, on Mac OS X 10.15.4 19E287, locale en-LV)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.48.1)
[✓] Connected device (1 available)

• No issues found!

Cookies not being set on iOS emulator

Emulating on iPhone 12 Pro Max

System info
System Version: macOS 11.2.1 (20D74)
Kernel Version: Darwin 20.3.0

Flutter info
Flutter (Channel stable, 1.22.5, on macOS 11.2.1 20D74 darwin-x64, locale es-419)

Xcode info
Xcode 12.4
Build version 12D4e

document.cookie does not match the cookieManager.getCookies output

Hi,
if you check document.cookie does not match the cookie provided.

onPageFinished: (_) async {
    final gotCookies = await cookieManager.getCookies(_url);
    for (var item in gotCookies) {
        print(item);
    }

    final String cookies = await _webViewController.evaluateJavascript('document.cookie');
    print('----- JS-COOKIES: $cookies -----');
},

Thanks.

compile failed on ios platform

i aleady modify my podfile

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ENABLE_BITCODE'] = 'NO'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'

end

end
end

but still compile failed on ios .

Xcode's output:

/Users/njvivo/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.22+1/ios/Classes/FlutterWebView.m:367:23: warning: 'mediaPlaybackRequiresUserAction' is deprecated: first deprecated in iOS 9.0 [-Wdeprecated-declarations]
configuration.mediaPlaybackRequiresUserAction = true;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mediaTypesRequiringUserActionForPlayback
In module 'WebKit' imported from /Users/njvivo/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.22+1/ios/Classes/FlutterWebView.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:208:28: note: 'mediaPlaybackRequiresUserAction' has
been explicitly marked deprecated here
@Property (nonatomic) BOOL mediaPlaybackRequiresUserAction API_DEPRECATED_WITH_REPLACEMENT("mediaTypesRequiringUserActionForPlayback", ios(8.0, 9.0));
^
/Users/njvivo/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.22+1/ios/Classes/FlutterWebView.m:374:23: warning: 'mediaPlaybackRequiresUserAction' is deprecated: first deprecated in iOS 9.0 [-Wdeprecated-declarations]
configuration.mediaPlaybackRequiresUserAction = false;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mediaTypesRequiringUserActionForPlayback
In module 'WebKit' imported from /Users/njvivo/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/webview_flutter-0.3.22+1/ios/Classes/FlutterWebView.h:6:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h:208:28: note: 'mediaPlaybackRequiresUserAction' has
been explicitly marked deprecated here
@Property (nonatomic) BOOL mediaPlaybackRequiresUserAction API_DEPRECATED_WITH_REPLACEMENT("mediaTypesRequiringUserActionForPlayback", ios(8.0, 9.0));
^
2 warnings generated.
ld: warning: Could not find or use auto-linked library 'swiftCore'
ld: warning: Could not find or use auto-linked library 'swiftQuartzCore'
ld: warning: Could not find or use auto-linked library 'swiftCoreGraphics'
ld: warning: Could not find or use auto-linked library 'swiftFoundation'
ld: warning: Could not find or use auto-linked library 'swiftMetal'
ld: warning: Could not find or use auto-linked library 'swiftDarwin'
ld: warning: Could not find or use auto-linked library 'swiftUIKit'
ld: warning: Could not find or use auto-linked library 'swiftObjectiveC'
ld: warning: Could not find or use auto-linked library 'swiftCoreFoundation'
ld: warning: Could not find or use auto-linked library 'swiftCompatibility50'
ld: warning: Could not find or use auto-linked library 'swiftCoreImage'
ld: warning: Could not find or use auto-linked library 'swiftCompatibilityDynamicReplacements'
ld: warning: Could not find or use auto-linked library 'swiftDispatch'
ld: warning: Could not find or use auto-linked library 'swiftCoreMedia'
ld: warning: Could not find or use auto-linked library 'swiftCoreAudio'
ld: warning: Could not find or use auto-linked library 'swiftSwiftOnoneSupport'
Undefined symbols for architecture x86_64:
"base conformance descriptor for Swift.Hashable: Swift.Equatable", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol descriptor for Swift._ObjectiveCBridgeable", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for static Swift._ObjectiveCBridgeable.conditionallyBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> Swift.Bool", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol descriptor for Swift.Equatable", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.Equatable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"base conformance descriptor for Swift._SwiftNewtypeWrapper: Swift.RawRepresentable", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._SwiftNewtypeWrapper in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol descriptor for Swift.RawRepresentable", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.RawRepresentable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol descriptor for Swift._SwiftNewtypeWrapper", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._SwiftNewtypeWrapper in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for Swift.RawRepresentable.init(rawValue: A.RawValue) -> A?", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.RawRepresentable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for Swift._ObjectiveCBridgeable._bridgeToObjectiveC() -> A._ObjectiveCType", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for Swift.RawRepresentable.rawValue.getter : A.RawValue", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.RawRepresentable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"nominal type descriptor for Swift.IndexingIterator", referenced from:
_symbolic _____ySaySo12NSDictionaryCGG s16IndexingIteratorV in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
_symbolic _____ySaySo12NSHTTPCookieCGG s16IndexingIteratorV in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for Swift._HasCustomAnyHashableRepresentation._toCustomAnyHashable() -> Swift.AnyHashable?", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol conformance descriptor for Swift.String : Swift._ObjectiveCBridgeable in Foundation", referenced from:
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift._ObjectiveCBridgeable in Foundation in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>._toCustomAnyHashable() -> Swift.AnyHashable?", referenced from:
protocol witness for Swift._HasCustomAnyHashableRepresentation._toCustomAnyHashable() -> Swift.AnyHashable? in conformance __C.NSHTTPCookiePropertyKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>._rawHashValue(seed: Swift.Int) -> Swift.Int", referenced from:
protocol witness for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int in conformance __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for Swift.Hashable.hash(into: inout Swift.Hasher) -> ()", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hash(into: inout Swift.Hasher) -> ()", referenced from:
protocol witness for Swift.Hashable.hash(into: inout Swift.Hasher) -> () in conformance __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol witness table for Swift.String : Swift.Hashable in Swift", referenced from:
protocol witness for Swift.Hashable.hashValue.getter : Swift.Int in conformance __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
protocol witness for Swift.Hashable.hash(into: inout Swift.Hasher) -> () in conformance __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
protocol witness for Swift.Hashable._rawHashValue(seed: Swift.Int) -> Swift.Int in conformance __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
protocol witness for Swift._HasCustomAnyHashableRepresentation._toCustomAnyHashable() -> Swift.AnyHashable? in conformance __C.NSHTTPCookiePropertyKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>.conditionallyBridgeFromObjectiveC(: A.RawValue._ObjectiveCType, result: inout A?) -> Swift.Bool", referenced from:
protocol witness for static Swift._ObjectiveCBridgeable.conditionallyBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> Swift.Bool in conformance __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized
in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>.forceBridgeFromObjectiveC(: A.RawValue._ObjectiveCType, result: inout A?) -> ()", referenced from:
protocol witness for static Swift._ObjectiveCBridgeable.forceBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> () in conformance __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_getForeignTypeMetadata", referenced from:
type metadata accessor for __C.NSHTTPCookiePropertyKey in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"static (extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>._unconditionallyBridgeFromObjectiveC(A.RawValue._ObjectiveCType?) -> A", referenced from:
protocol witness for static Swift._ObjectiveCBridgeable._unconditionallyBridgeFromObjectiveC(A._ObjectiveCType?) -> A in conformance __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Foundation):Swift.Bool._bridgeToObjectiveC() -> __C.NSNumber", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"associated type descriptor for Swift.RawRepresentable.RawValue", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.RawRepresentable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"static Foundation.Date._unconditionallyBridgeFromObjectiveC(__C.NSDate?) -> Foundation.Date", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for Swift.Hashable.hashValue.getter : Swift.Int", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol conformance descriptor for [A] : Swift.Collection in Swift", referenced from:
lazy protocol witness table accessor for type [__C.NSDictionary] and conformance [A] : Swift.Collection in Swift in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type [__C.NSHTTPCookie] and conformance [A] : Swift.Collection in Swift in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Foundation):Swift.Dictionary._bridgeToObjectiveC() -> __C.NSDictionary", referenced from:
@nonobjc __C.NSHTTPCookie.init(properties: [__C.NSHTTPCookiePropertyKey : Any]) -> __C.NSHTTPCookie? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_getWitnessTable", referenced from:
lazy protocol witness table accessor for type [__C.NSDictionary] and conformance [A] : Swift.Collection in Swift in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type __C.NSHTTPCookiePropertyKey and conformance __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type [__C.NSHTTPCookie] and conformance [A] : Swift.Collection in Swift in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift.StringProtocol in Swift in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type __C.NSHTTPCookiePropertyKey and conformance __C.NSHTTPCookiePropertyKey : Swift.RawRepresentable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type __C.NSHTTPCookiePropertyKey and conformance __C.NSHTTPCookiePropertyKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type __C.NSHTTPCookiePropertyKey and conformance __C.NSHTTPCookiePropertyKey : Swift.Equatable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"type metadata accessor for Swift.Optional", referenced from:
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined init with copy of Foundation.Date? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined init with take of Foundation.Date? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift.== infix<A where A: Swift.RawRepresentable, A.RawValue: Swift.Equatable>(A, A) -> Swift.Bool", referenced from:
protocol witness for static Swift.Equatable.== infix(A, A) -> Swift.Bool in conformance __C.NSHTTPCookiePropertyKey : Swift.Equatable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift._allocateUninitializedArray(Builtin.Word) -> ([A], Builtin.RawPointer)", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Foundation.URL.init(string: __shared Swift.String) -> Foundation.URL?", referenced from:
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for static Swift._ObjectiveCBridgeable._unconditionallyBridgeFromObjectiveC(A._ObjectiveCType?) -> A", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"type metadata accessor for Foundation.Date", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined init with copy of Foundation.Date? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined destroy of Foundation.Date? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined init with take of Foundation.Date? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"type metadata accessor for Swift.Array", referenced from:
type metadata accessor for [__C.NSDictionary] in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for [__C.NSHTTPCookie] in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Foundation.Date.timeIntervalSince1970.getter : Swift.Double", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"static (extension in Foundation):Swift.Array._unconditionallyBridgeFromObjectiveC(__C.NSArray?) -> [A]", referenced from:
reabstraction thunk helper from @escaping @callee_guaranteed (@guaranteed [__C.NSHTTPCookie]) -> () to @escaping @callee_unowned @convention(block) (@unowned __C.NSArray) -> () in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"swift_endAccess", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.httpCookieStore.getter : __C.WKHTTPCookieStore? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.httpCookieStore.setter : __C.WKHTTPCookieStore? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.httpCookieStore.modify : __C.WKHTTPCookieStore? with unmangled suffix ".resume.0" in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"Swift.Dictionary.init(dictionaryLiteral: (A, B)...) -> [A : B]", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Foundation.URL.host.getter : Swift.String?", referenced from:
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_deallocObject", referenced from:
l_objectdestroy in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
l_objectdestroy.2 in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
l_objectdestroy.8 in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
l_objectdestroy.12 in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Foundation):Swift.Int._bridgeToObjectiveC() -> __C.NSNumber", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Foundation):Swift.StringProtocol.contains(A1) -> Swift.Bool", referenced from:
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol witness table for Swift.String : Swift.Equatable in Swift", referenced from:
protocol witness for static Swift.Equatable.== infix(A, A) -> Swift.Bool in conformance __C.NSHTTPCookiePropertyKey : Swift.Equatable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"type metadata for Swift.Bool", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 () -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Swift):Swift.Collection< where A.Iterator == Swift.IndexingIterator>.makeIterator() -> Swift.IndexingIterator", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.setCookies(cookies: [__C.NSDictionary], result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift.IndexingIterator.next() -> A.Element?", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.setCookies(cookies: [__C.NSDictionary], result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift.Double.isFinite.getter : Swift.Bool", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for static Swift.Equatable.== infix(A, A) -> Swift.Bool", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.Equatable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_getTypeByMangledNameInContext", referenced from:
___swift_instantiateConcreteTypeFromMangledName in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"static (extension in Foundation):Swift.String.unconditionallyBridgeFromObjectiveC(__C.NSString?) -> Swift.String", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
__C.NSHTTPCookiePropertyKey.rawValue.getter : Swift.String in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_allocBox", referenced from:
___swift_allocate_boxed_opaque_existential_0 in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"swift_bridgeObjectRelease", referenced from:
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined consume of Swift.String? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
reabstraction thunk helper from @escaping @callee_guaranteed (@guaranteed [__C.NSHTTPCookie]) -> () to @escaping @callee_unowned @convention(block) (@unowned __C.NSArray) -> () in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
@nonobjc __C.NSHTTPCookie.init(properties: [__C.NSHTTPCookiePropertyKey : Any]) -> __C.NSHTTPCookie? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"protocol conformance descriptor for Swift.String : Swift.StringProtocol in Swift", referenced from:
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift.StringProtocol in Swift in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"type metadata for Swift.String", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift.StringProtocol in Swift in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
lazy protocol witness table accessor for type Swift.String and conformance Swift.String : Swift._ObjectiveCBridgeable in Foundation in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_FORCE_LOAD$_swiftCompatibilityDynamicReplacements", referenced from:
_swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_webview_cookie_manager in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibilityDynamicReplacements$_webview_cookie_manager)
"_swift_FORCE_LOAD$_swiftCompatibility50", referenced from:
_swift_FORCE_LOAD$swiftCompatibility50$_webview_cookie_manager in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
(maybe you meant: _swift_FORCE_LOAD$swiftCompatibility50$_webview_cookie_manager)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A.RawValue: Swift._ObjectiveCBridgeable>._bridgeToObjectiveC() -> A.RawValue._ObjectiveCType", referenced from:
protocol witness for Swift._ObjectiveCBridgeable._bridgeToObjectiveC() -> A._ObjectiveCType in conformance __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"swift_bridgeObjectRetain", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.setCookies(cookies: [__C.NSDictionary], result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined copy of Swift.String? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
outlined init with copy of Swift.String? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"swift_dynamicCast", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"swift_retain", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
reabstraction thunk helper from @escaping @callee_guaranteed (@guaranteed [__C.NSHTTPCookie]) -> () to @escaping @callee_unowned @convention(block) (@unowned __C.NSArray) -> () in
libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
_block_copy_helper in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"_swift_once", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.httpCookieStore.unsafeMutableAddressor : __C.WKHTTPCookieStore? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_unknownObjectRetain", referenced from:
@objc static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol descriptor for Swift.Hashable", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Foundation):Swift.String._bridgeToObjectiveC() -> __C.NSString", referenced from:
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
__C.NSHTTPCookiePropertyKey.init(rawValue: Swift.String) -> __C.NSHTTPCookiePropertyKey in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_getObjCClassFromMetadata", referenced from:
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
__C.NSHTTPCookie.__allocating_init(properties: [__C.NSHTTPCookiePropertyKey : Any]) -> __C.NSHTTPCookie? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
__C.NSMutableArray.__allocating_init() -> __C.NSMutableArray in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
__C.NSMutableDictionary.__allocating_init() -> __C.NSMutableDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"associated type descriptor for Swift._ObjectiveCBridgeable._ObjectiveCType", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Foundation.Date.init(timeIntervalSince1970: Swift.Double) -> Foundation.Date", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_getObjCClassMetadata", referenced from:
type metadata accessor for __C.FlutterMethodChannel in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
@objc static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSObject in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSMutableArray in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSMutableDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSHTTPCookie in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"_swift_getInitializedObjCClass", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.FlutterMethodChannel in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for webview_cookie_manager.SwiftWebviewCookieManagerPlugin in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSObject in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSMutableArray in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
type metadata accessor for __C.NSMutableDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"Swift.bridgeAnythingToObjectiveC(A) -> Swift.AnyObject", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> () to @escaping @callee_guaranteed (@in_guaranteed Any?) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"type metadata for Any", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
@nonobjc __C.NSHTTPCookie.init(properties: [__C.NSHTTPCookiePropertyKey : Any]) -> __C.NSHTTPCookie? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift.String.init(builtinStringLiteral: Builtin.RawPointer, utf8CodeUnitCount: Builtin.Word, isASCII: Builtin.Int1) -> Swift.String", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"method descriptor for static Swift._ObjectiveCBridgeable.forceBridgeFromObjectiveC(: A._ObjectiveCType, result: inout A?) -> ()", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._ObjectiveCBridgeable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift.Dictionary.subscript.setter : (A) -> B?", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"protocol descriptor for Swift._HasCustomAnyHashableRepresentation", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._HasCustomAnyHashableRepresentation in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"swift_beginAccess", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.httpCookieStore.getter : __C.WKHTTPCookieStore? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.httpCookieStore.setter : __C.WKHTTPCookieStore? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.httpCookieStore.modify : __C.WKHTTPCookieStore? in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"swift_allocObject", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
@objc webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"type metadata accessor for Foundation.URL", referenced from:
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift.bridgeAnyObjectToAny(Swift.AnyObject?) -> Any", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"(extension in Swift):Swift._SwiftNewtypeWrapper< where A: Swift.Hashable, A.Swift.RawRepresentable.RawValue: Swift.Hashable>.hashValue.getter : Swift.Int", referenced from:
protocol witness for Swift.Hashable.hashValue.getter : Swift.Int in conformance __C.NSHTTPCookiePropertyKey : Swift.Hashable in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"type metadata for Swift.Double", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"base conformance descriptor for Swift._SwiftNewtypeWrapper: Swift._HasCustomAnyHashableRepresentation", referenced from:
protocol conformance descriptor for __C.NSHTTPCookiePropertyKey : Swift._SwiftNewtypeWrapper in __C_Synthesized in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"_swift_getObjectType", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"Swift.assertionFailure(: Swift.StaticString, : Swift.StaticString, file: Swift.StaticString, line: Swift.UInt, flags: Swift.UInt32) -> Swift.Never", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin._cookieToDictionary(cookie: __C.NSHTTPCookie) -> __C.NSDictionary in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"swift_release", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
__swift_destroy_boxed_opaque_existential_0 in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
@objc webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in _E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.clearCookies(result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"value witness table for Builtin.UnknownObject", referenced from:
full type metadata for __C.NSHTTPCookiePropertyKey in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
full type metadata for webview_cookie_manager.SwiftWebviewCookieManagerPlugin in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
"swift_unknownObjectRelease", referenced from:
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
@nonobjc __C.FlutterMethodChannel.__allocating_init(name: Swift.String, binaryMessenger: __C.FlutterBinaryMessenger) -> __C.FlutterMethodChannel in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
@objc static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.register(with: __C.FlutterPluginRegistrar) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
reabstraction thunk helper from @escaping @callee_unowned @convention(block) (@unowned Swift.AnyObject?) -> () to @escaping @callee_guaranteed (@in_guaranteed Any?) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.(_setCookie in E35A6B25B6E5F14C2C28AC213C9247D2)(cookie: __C.NSDictionary, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
closure #1 ([__C.NSHTTPCookie]) -> () in static webview_cookie_manager.SwiftWebviewCookieManagerPlugin.getCookies(url: Swift.String?, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
...
"static Swift.String.== infix(Swift.String, Swift.String) -> Swift.Bool", referenced from:
webview_cookie_manager.SwiftWebviewCookieManagerPlugin.handle(
: __C.FlutterMethodCall, result: (Any?) -> ()) -> () in libwebview_cookie_manager.a(SwiftWebviewCookieManagerPlugin.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select a development team in the Runner editor. (in target 'Runner' from project 'Runner')

Gradle issue: Namespace not specified

I can't build the project because webview_cookie_manager doesn't have namespace specified. I'm using the latest version of Flutter (3.22.0).

All that is needed is to add a line with namespace into the android/build.gradle into section android:

android {
    namespace 'io.flutter.plugins.webview_cookie_manager'

See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

This is the debug console output:

Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':webview_cookie_manager'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
   > Namespace not specified. Specify a namespace in the module's build file: ~/.pub-cache/hosted/pub.dev/webview_cookie_manager-2.0.6/android/build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

     If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@74140d37 of type BuildFlowService.Parameters
   > A problem occurred configuring project ':webview_cookie_manager'.
      > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
         > Namespace not specified. Specify a namespace in the module's build file: ~/.pub-cache/hosted/pub.dev/webview_cookie_manager-2.0.6/android/build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

           If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 7s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

Private

Just an idea: Private mode is not possible with webview now. Make it possible to do a private mode: store all cookies on start, clean them and (optionally) restore the cookies after the webview closes

conflict with webview_flutter

steps

  1. flutter pub add webview_flutter
  2. flutter pub add webview_cookie_manager
  3. create a dart file, and import 'package:webview_cookie_manager/webview_cookie_manager.dart'

bug behavior

Target of URI doesn't exist: 'package:webview_cookie_manager/webview_cookie_manager.dart'

image

If I don't install webview_flutter, only install webview_cookie_manager, it's fine.

image

How to get browser cookies

I want to get browser's cookie use Flutter's webview.
but it is not work.
can you provide this feature.

Support for SameSite attribute.

This is a feature request.

As discussed in #16, currently this library doesn't respect the SameSite attribute of a cookie. My assumption is this is due to Cookie class in dart:io lacks sameSite property.

However, in Dart 3.1 released last week, sameSite property has finally been added (changelog). So it may be feasible (and not to mention very useful) to support SameSite attribute in this library.

How to set a json string as a cookie?

How can we set a json string as a cookie. When attempted to do so it throws an error saying

Exception: FormatException: Invalid character in cookie value, code unit: '34' (at character 2)
{"someKey":"someValue"}
 ^

So it's not liking " in it's value

Fails to get cookies on iOS

It works as expected on Android, but on iOS (11.0+) it returns empty array. Flutter code is equivalent for both platforms, so I suppose there is an issue when interacting with native iOS cookie manager.

可否增加同步非webview的cookie

准备引入flutter模块,正好在找cookie相关的,感谢分享。

看起来这个只可以用来同步webview的cookie,
能否也支持一下非webview的cookie管理?
也就是希望能支持native - webview - flutter 所有的cookie同步。

Ready to import the flutter module, just looking for cookie related. Thanks for sharing.

It looks like this is the only thing you can do to synchronize your WebView's cookies,
Can you also support non-WebView cookie management?
That is, I want to support all cookie synchronization of Native WebView Flutter.

MissingPluginException

First of all, thanks for this plugin.

When I want to use this plugin, I get an error like this

"Exception has occurred.
MissingPluginException (MissingPluginException(No implementation found for method getCookies on channel webview_cookie_manager))"

https://imgur.com/a/0BtaIIH

           WebView(
              onWebViewCreated: (WebViewController webViewController) {
                _controller = webViewController;
              },
              initialUrl: "https://youtube.com",
              javascriptMode: JavascriptMode.unrestricted,
              onPageFinished: (opf) async {
                debugPrint("onPageFinished: " + opf.toString());

                final cookieManager = WebviewCookieManager();

                final gotCookies = await cookieManager.getCookies('https://youtube.com');
                for (var item in gotCookies) {
                  print(item);
                }
              },
            )

flutter v1.20.1 & android

Minimun iOS flutter development version is now 12

Hi there! I was triying to use flutter webview and I had to store some cookies for the session. I did not have any problem in my android device, but it did not work in iOS.

Then I see in the repository that the minimun deployment version needed es 11. I tried to change it but flutter requires nowadays to take the version 12 as. the minumun deployment version for iOS. I tried to change it but every time that I rebuild the project, flutter automatically restore the minimun vesion to 12.

Here is the post from flutter: https://docs.flutter.dev/deployment/ios#:~:text=The%20minimum%20iOS%20version%20that,to%20the%20highest%20required%20version.

Is there any other option? I could use another library or implement it in another way?

Thanks in advance!!

Failed to save the cookies without "domain" attribute

Both platforms throw errors if I try to call setCookies(List<Cookie> cookies) with cookies that has no domain (domain is null). I think it should be fixed since Cookie class has only two required fields - name and value. Others are optional. Am I right? If I am, I think can fix this and make a PR.

How to reproduce:

final cookie = Cookie('cookie_name', 'cookie_value');
await WebviewCookieManager().setCookies([cookie]);

Android exception:

Exception has occurred.
PlatformException (PlatformException(error, Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Object.toString()' on a null object reference
	at io.flutter.plugins.webview_cookie_manager.WebviewCookieManagerPlugin.setCookies(WebviewCookieManagerPlugin.java:126)
	at io.flutter.plugins.webview_cookie_manager.WebviewCookieManagerPlugin.onMethodCall(WebviewCookieManagerPlugin.java:178)

iOS exception:

Could not cast value of type 'NSNull' (0x7fff86d7ab38) to 'NSString' (0x7fff86d9fbb0).
Lost connection to device.

Pub package version: 1.0.7

flutter doctor -v

[✓] Flutter (Channel stable, 1.22.6, on macOS 11.2.1 20D74 darwin-x64, locale ru-RU)
    • Flutter version 1.22.6 at /Users/nikitakrasavin/Library/flutter
    • Framework revision 9b2d32b605 (4 weeks ago), 2021-01-22 14:36:39 -0800
    • Engine revision 2f0af37152
    • Dart version 2.10.5

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/nikitakrasavin/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio 4.2 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.

[✓] Xcode - develop for iOS and macOS (Xcode 12.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[!] Android Studio
    • Android Studio at /Applications/Android Studio 4.2 Preview.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0

deprecated use

I noticed this warning while compiling in android studio for android release build.
Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\webview_cookie_manager-1.0.4\android\src\main\java\io\flutter\plugins\webview_cookie_manager\WebviewCookieManagerPlugin.java uses or overrides a deprecated API.

is it ok?

Build error

Launching lib\main.dart on Android SDK built for x86 in debug mode...

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':webview_cookie_manager:generateDebugRFile'.
> Could not resolve all files for configuration ':webview_cookie_manager:debugCompileClasspath'.
   > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f.
     Required by:
         project :webview_cookie_manager
      > Cannot find a version of 'io.flutter:flutter_embedding_debug' that satisfies the version constraints:
           Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f'
           Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1'
           Constraint path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:{strictly 1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1}' because of the following reason: debugRuntimeClasspath uses version 1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1

   > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1.
     Required by:
         project :webview_cookie_manager
      > Cannot find a version of 'io.flutter:flutter_embedding_debug' that satisfies the version constraints:
           Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f'
           Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1'
           Constraint path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:{strictly 1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1}' because of the following reason: debugRuntimeClasspath uses version 1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1

   > Could not resolve io.flutter:flutter_embedding_debug:{strictly 1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1}.
     Required by:
         project :webview_cookie_manager
      > Cannot find a version of 'io.flutter:flutter_embedding_debug' that satisfies the version constraints:
           Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-d1bc06f032f9d6c148ea6b96b48261d6f545004f'
           Dependency path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1'
           Constraint path 'io.flutter.plugins.webview_cookie_manager:webview_cookie_manager:1.0' --> 'io.flutter:flutter_embedding_debug:{strictly 1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1}' because of the following reason: debugRuntimeClasspath uses version 1.0.0-a9d88a4d182bdae23e3a4989abfb7ea25954aad1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Tried adding,
maven { url "https://storage.googleapis.com/download.flutter.io"}

to build.gradle file, also tried changing dns, but didn't work.

No implementation found for method getCookies on channel webview_cookie_manager

webview_flutter: 3.0.0
Flutter 2.8.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision cf44000065 (2 weeks ago) • 2021-12-08 14:06:50 -0800
Engine • revision 40a99c5951
Tools • Dart 2.15.0

E/flutter (10616): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method getCookies on channel webview_cookie_manager)
E/flutter (10616): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:165:7)
E/flutter (10616):
E/flutter (10616): #1 MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:353:35)
E/flutter (10616):
E/flutter (10616): #2 JdcookiePage.build. (package:jd_cookie/pages/jdcookie/view.dart:61:42)
E/flutter (10616):

Gradle issue

Unfortunately, the following problem arises when running flutter build appbundle:

Note: /Users/XXX/.pub-cache/hosted/pub.dartlang.org/webview_cookie_manager-2.0.6/android/src/main/java/io/flutter/plugins/webview_cookie_manager/WebviewCookieManagerPlugin.java uses or overrides a deprecated API.

My Settings:
Flutter: 2.10.4
ext.kotlin_version = '1.6.10'
classpath 'com.android.tools.build:gradle:7.1.2'

compileSdkVersion 31
minSdkVersion 21
targetSdkVersion 30

compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}

kotlinOptions {
    jvmTarget = JavaVersion.VERSION_11.toString()
}

Is an update planned?
Thank you in advanced.

Null Safety

Is there any plan on migrating to null safety?

Cant set Cross-Origin Cookies

When I tried this plugin along with flutter_webview_plugin it can't able to read or write cookies from the Cross-Origin site. But this works fine in webview_flutter and flutter_inappwebview plugins.

getCookies() without a URL parameter causes NullPointerExceptions

Steps to reproduce:

  • load the example project
  • change the line
    final gotCookies = await cookieManager.getCookies(_url);
    to
    final gotCookies = await cookieManager.getCookies();
  • run the project (I'm using Android)

Resulting error:

E/MethodChannel#webview_cookie_manager(28148): Failed to handle method call
E/MethodChannel#webview_cookie_manager(28148): java.lang.NullPointerException
E/MethodChannel#webview_cookie_manager(28148): 	at android.net.WebAddress.<init>(WebAddress.java:77)
E/MethodChannel#webview_cookie_manager(28148): 	at v3.a(PG:1)
E/MethodChannel#webview_cookie_manager(28148): 	at v3.getCookie(PG:1)
E/MethodChannel#webview_cookie_manager(28148): 	at io.flutter.plugins.webview_cookie_manager.WebviewCookieManagerPlugin.getCookies(WebviewCookieManagerPlugin.java:106)
E/MethodChannel#webview_cookie_manager(28148): 	at io.flutter.plugins.webview_cookie_manager.WebviewCookieManagerPlugin.onMethodCall(WebviewCookieManagerPlugin.java:59)
E/MethodChannel#webview_cookie_manager(28148): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:230)
E/MethodChannel#webview_cookie_manager(28148): 	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#webview_cookie_manager(28148): 	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:692)
E/MethodChannel#webview_cookie_manager(28148): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#webview_cookie_manager(28148): 	at android.os.MessageQueue.next(MessageQueue.java:336)
E/MethodChannel#webview_cookie_manager(28148): 	at android.os.Looper.loop(Looper.java:174)
E/MethodChannel#webview_cookie_manager(28148): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
E/MethodChannel#webview_cookie_manager(28148): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#webview_cookie_manager(28148): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
E/MethodChannel#webview_cookie_manager(28148): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
E/flutter (28148): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(error, null, null)
E/flutter (28148): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:572:7)
E/flutter (28148): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:161:18)
E/flutter (28148): <asynchronous suspension>
E/flutter (28148): #2      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
E/flutter (28148): #3      MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:347:40)
E/flutter (28148): #4      WebviewCookieManager.getCookies (package:webview_cookie_manager/webview_cookie_manager.dart:28:21)
E/flutter (28148): #5      _MyAppState.build.<anonymous closure> (package:webview_cookie_manager_example/main.dart:50:52)
E/flutter (28148): #6      _PlatformCallbacksHandler.onPageFinished (package:webview_flutter/webview_flutter.dart:491:29)
E/flutter (28148): #7      MethodChannelWebViewPlatform._onMethodCall (package:webview_flutter/src/webview_method_channel.dart:41:35)
E/flutter (28148): #8      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:432:55)
E/flutter (28148): #9      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:385:33)
E/flutter (28148): #10     _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:267:33)
E/flutter (28148): #11     _invoke3.<anonymous closure> (dart:ui/hooks.dart:282:15)
E/flutter (28148): #12     _rootRun (dart:async/zone.dart:1190:13)
E/flutter (28148): #13     _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter (28148): #14     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
E/flutter (28148): #15     _invoke3 (dart:ui/hooks.dart:281:10)
E/flutter (28148): #16     _dispatchPlatformMessage (dart:ui/hooks.dart:156:5)

Apart from this error I love this package! Thanks for your work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.