Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 705 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 705 Bytes

KSPWebViewLoader 🚧

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

How to use

@WebViewBuilder(
    url = "https://www.google.com/",
    autoSet = true
)
lateinit var webView: WebView

override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      setContentView(R.layout.activity_main)

      webView = findViewById<WebView>(R.id.webView)
		  WebViewLoader.onInitialize(this)
	  	}
			

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