Public Android Module
Step1. Add the token to $HOME/.gradle/gradle.properties
authToken=jp_6hv7j20dp8s7arjs05c5pivbdlStep2. Add it in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url "https://jitpack.io" credentials { username authToken } } } }
Step3. Add the dependency
Core-Rx
- Retrofit
- Glide
- TedPermission
- PhotoAttachActivity
- Extensions - IntentExtension DialogExtensions SnackbarExtensions ToastExtexsions ViewExtensions
- AKCountDownTimer
- AKZoomView
- Utils
- ApiResponse
- RetrofittUtil
- Koin - DI Module
- RxJava
- RxBinding
- LifeCycle Component
- ViewModel Component
dependencies { implementation 'com.github.appknot.AndroidModule:core-rx:$version' }
AkVideoView
dependencies { implementation 'com.github.appknot.AndroidModule:akvideoview:$version' }
setRetrofit("http://appknot.com/api/") RetrofitUtil().run { call = create(SeotDaApi::class.java).registerToken( "jin", fbToken ) onSuccess { it -> val userIdx = com.appknot.seotda.extensions.toMap(it)["user_idx"].toString() viewModel.requestEnterRoom(userIdx) } onError { _, msg -> showSnackbar(msg) } onFailure { showToast("fail") } executeWithProgress(this@UserActivity) }
val countDownTimer = object : AKCountDownTimer(countDownMaxMills, countDownInterval) { override fun onTick(millisUntilFinished: Long) { } override fun onFinish() { } }
if (isLoading) showLoadingDialog() else hideLoadingDialog()
startActivity( intentFor<MainActivity>(KEY_USER_LIST to userList) .clearTask() .newTask() ) startActivity<MainActivity>(KEY_USER_LIST to userList)
showSnackbar(message)
showToast(message)
Int.convertCurrency() - Int 형 숫자를 받아 1000 단위로 , 를 표시한다
Int.stringForTime() - Int 형 milliseconds 를 받아 00:00 형식으로 표시한다