Open JakeWharton opened 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.
Promise
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...
Coming with manifest v3 so we can just wait for that
https://developer.chrome.com/extensions/migrating_to_manifest_v3
Using https://github.com/mozilla/webextension-polyfill enables defining the external APIs directly with
Promise
s. This is nice because it doesn't break the ability to DI aChromePlatform
.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...