JakeWharton / SdkSearch

An Android app and Chrome extension for searching the Android SDK documentation.
Apache License 2.0
2.06k stars 176 forks source link

Promise-based Chrome APIs. #66

Open JakeWharton opened 6 years ago

JakeWharton commented 6 years ago

Using https://github.com/mozilla/webextension-polyfill enables defining the external APIs directly with Promises. This is nice because it doesn't break the ability to DI a ChromePlatform.

We could also very easily use impure extension functions to achieve the result (https://github.com/JakeWharton/SdkSearch/compare/jakew/promise/2018-01-25), but it currently breaks the Kotlin JS compiler...

JakeWharton commented 5 years ago

Coming with manifest v3 so we can just wait for that

JakeWharton commented 4 years ago

https://developer.chrome.com/extensions/migrating_to_manifest_v3