Skip to content

Instantly share code, notes, and snippets.

@Khant-NyarxG-Next
Last active July 26, 2023 03:43
Show Gist options
  • Save Khant-NyarxG-Next/85783e39c5af45020dcb6bcf84de1e8d to your computer and use it in GitHub Desktop.
Save Khant-NyarxG-Next/85783e39c5af45020dcb6bcf84de1e8d to your computer and use it in GitHub Desktop.
kotlin dependencies,plugins
#you can use xml id directly with
apply plugin: 'kotlin-android-extensions'
#use like this
#import kotlinx.android.synthetic.main.activity_main.*
#retrofit to fetch api and json class to delecare as dataModel
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-jackson:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
implementation 'com.google.code.gson:gson:2.8.8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment