Skip to content

Commit

Permalink
- make core dialog from private to be protected
Browse files Browse the repository at this point in the history
- adding cache on data observer
  • Loading branch information
yzzzd committed Aug 7, 2021
1 parent 9e84eb3 commit 8f7aace
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
minSdkVersion build_versions.min_sdk
targetSdkVersion build_versions.target_sdk
versionCode 3
versionName "3.0.0-beta3"
versionName "3.0.0-beta4"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/com/crocodic/core/api/DataObserver.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.crocodic.core.api

class DataObserver<T>(val page: Int, val datas: List<T?>)
class DataObserver<T>(val page: Int, val datas: List<T?>, val cache: Boolean = false)
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Update

interface BaseDao<T> {
interface CoreDao<T> {
/**
* Insert an object in the database.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.crocodic.core.extension.encrypt
* Created by nuryazid on 4/21/18.
*/

open class BaseSession(context: Context) {
open class CoreSession(context: Context) {

var PREF_NAME = "_core_"
var PREF_FCMID = "fcm_id".encrypt()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import com.google.android.material.bottomsheet.BottomSheetDialog
abstract class CoreDialog<VB : ViewBinding>(val context: Context) {

protected var binding: VB
private var dialog: BottomSheetDialog = BottomSheetDialog(context, R.style.BottomSheetDialog)
protected var dialog: BottomSheetDialog = BottomSheetDialog(context, R.style.BottomSheetDialog)

protected abstract fun getViewBinding(): VB

Expand Down

0 comments on commit 8f7aace

Please sign in to comment.