This repository was archived by the owner on Jan 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ CookieManager.get('http://example.com')
111
111
});
112
112
113
113
// list cookies (IOS ONLY)
114
- CookieManager .getAll ()
114
+ // useWebKit: boolean
115
+ CookieManager .getAll (useWebKit)
115
116
.then ((res ) => {
116
117
console .log (' CookieManager.getAll =>' , res);
117
118
});
Original file line number Diff line number Diff line change @@ -230,21 +230,6 @@ -(NSString *)getDomainName:(NSURL *) url
230
230
}
231
231
}
232
232
233
- RCT_EXPORT_METHOD (getAll:(RCTPromiseResolveBlock)resolve
234
- rejecter:(RCTPromiseRejectBlock)reject) {
235
- NSHTTPCookieStorage *cookieStorage = [NSHTTPCookieStorage sharedHTTPCookieStorage ];
236
- NSMutableDictionary *cookies = [NSMutableDictionary dictionary ];
237
- for (NSHTTPCookie *c in cookieStorage.cookies ) {
238
- NSMutableDictionary *d = [NSMutableDictionary dictionary ];
239
- [d setObject: c.value forKey: @" value" ];
240
- [d setObject: c.name forKey: @" name" ];
241
- [d setObject: c.domain forKey: @" domain" ];
242
- [d setObject: c.path forKey: @" path" ];
243
- [d setObject: [self .formatter stringFromDate: c.expiresDate] forKey: @" expiresDate" ];
244
- [cookies setObject: d forKey: c.name];
245
- }
246
- }
247
-
248
233
-(NSDictionary *)createCookieList : (NSArray <NSHTTPCookie *>*)cookies
249
234
{
250
235
NSMutableDictionary *cookieList = [NSMutableDictionary dictionary ];
You can’t perform that action at this time.
0 commit comments