项目作者: jsh-me

项目描述 :
android webview loader using ksp
高级语言: Kotlin
项目地址: git://github.com/jsh-me/KSPWebViewLoader.git
创建时间: 2021-07-17T17:26:42Z
项目社区:https://github.com/jsh-me/KSPWebViewLoader

开源协议:

下载


KSPWebViewLoader 🚧

@WebViewBuilder Annotation can be automating your webview settings. (WIP)

How to use

  1. @WebViewBuilder(
  2. url = "https://www.google.com/",
  3. autoSet = true
  4. )
  5. lateinit var webView: WebView
  6. override fun onCreate(savedInstanceState: Bundle?) {
  7. super.onCreate(savedInstanceState)
  8. setContentView(R.layout.activity_main)
  9. webView = findViewById<WebView>(R.id.webView)
  10. WebViewLoader.onInitialize(this)
  11. }

Reference

https://jsuch2362.medium.com/my-first-kotlin-symbol-processing-tool-for-android-4eb3a2cfd600

https://github.com/google/ksp

https://medium.com/@jason_kim/annotation-processing-101-%EB%B2%88%EC%97%AD-be333c7b913