Releases: zerodevid/DevBase-Android
Releases · zerodevid/DevBase-Android
add fullscreen loading & layout loading
Migrate spotdialog to loadingdialog (own dialog)
Migrate spotdialog to loadingdialog (own dialog)
Fix access variable & add resource string diaog
Full Changelog: 1.1.2...1.1.3
Add DevResponseNothing
Feature :
- Add Dev Response Nothing (if the response not have a pattern / Restfull API)
Fixing dependency
Fixing
- Remove unused dependency
- bump version dependency
DevBase - Android 1.0.9
New Feature :
- Add proguard rules
- Add toast utis
Toast
fun Activity.toast(message: String, duration: Int = android.widget.Toast.LENGTH_SHORT) { android.widget.Toast.makeText(this, message, duration).show() }
fun Fragment.toast(message: String, duration: Int = android.widget.Toast.LENGTH_SHORT) { Toast.makeText(requireContext(), message, duration).show() }
Fixing :
- Blank screen if using proguard rules
DevBase - Android 1.0.9 BETA
Make generic response base, you can custom your response base with your SerializedName GSON
Example :
Data Class
data class DevResponseDynamicExample<T>(
@SerializedName("success")
override val success: Int?,
@SerializedName("message")
override val message: String?,
@SerializedName("data")
override val data: T?
) : DevResponseDynamicInterface<T>
API Endpoint
@FormUrlEncoded
@POST("api/")
fun login(
@Field("username") username: String,
@Field("password") password: String
): Single<DevResponseDynamicExample<List<DataUser>>>
RxJava
// for init state
fun Single<*>.observeDynamic(state: MutableLiveData<DevStateDynamic>){}
// for observer
inline fun <reified T> MutableLiveData<DevStateDynamic>.observerDynamic()
DevBase - Android 1.0.8
Move setup spotdialog in lazy to make easier initialize variable
DevBase - Android 1.0.7
Create dynamic response API handle
DevBase - Android 1.0.6
add result all on observer