1.5.0
New Features
- Cookie Management.
interface CookieManager {
/**
* Sets a cookie for the given url.
* @param url The url for which the cookie is to be set.
* @param cookie The cookie to be set.
* */
suspend fun setCookie(url: String, cookie: Cookie)
/**
* Gets all the cookies for the given url.
* @param url The url for which the cookies are to be retrieved.
*
* @return A list of cookies for the given url.
* */
suspend fun getCookies(url: String): List<Cookie>
/**
* Removes all the cookies.
* */
suspend fun removeAllCookies()
/**
* Removes all the cookies for the given url.
* @param url The url for which the cookies are to be removed.
* */
suspend fun removeCookies(url: String)
}
Due to some issues with JCEF, we have decided to support Android and iOS platforms at first. Once the KCEF testing is stable, we will switch to it and also support cookies on the Desktop platform.
What's Changed
- Support Cookie management by @KevinnZou in #10
- Reorganize the project structure by @KevinnZou in #22
- Create a Wiki for API documentation by @KevinnZou in #24
Full Changelog: 1.4.0...1.5.0