Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-beta1'
classpath 'com.android.tools.build:gradle:3.0.0-beta2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.dicedmelon.gradle:jacoco-android:0.1.1"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import javax.inject.Inject
* operations in which data store implementation layers can carry out.
*/
class BufferooCacheImpl @Inject constructor(dbOpenHelper: DbOpenHelper,
private val entityapper: BufferooEntityMapper,
private val entityMapper: BufferooEntityMapper,
private val mapper: BufferooMapper,
private val preferencesHelper: PreferencesHelper):
BufferooCache {
Expand Down Expand Up @@ -59,7 +59,7 @@ class BufferooCacheImpl @Inject constructor(dbOpenHelper: DbOpenHelper,
database.beginTransaction()
try {
bufferoos.forEach {
saveBufferoo(entityapper.mapToCached(it))
saveBufferoo(entityMapper.mapToCached(it))
}
database.setTransactionSuccessful()
} finally {
Expand All @@ -79,7 +79,7 @@ class BufferooCacheImpl @Inject constructor(dbOpenHelper: DbOpenHelper,

while (updatesCursor.moveToNext()) {
val cachedBufferoo = mapper.parseCursor(updatesCursor)
bufferoos.add(entityapper.mapFromCached(cachedBufferoo))
bufferoos.add(entityMapper.mapFromCached(cachedBufferoo))
}

updatesCursor.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import javax.inject.Inject
import javax.inject.Singleton

/**
* General Preferences Helper class, used for storing prefence values using the Preference API
* General Preferences Helper class, used for storing preference values using the Preference API
*/
@Singleton
class PreferencesHelper @Inject constructor(context: Context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import javax.inject.Inject


/**
* Map a [BufferooEntity] to and froma a [Bufferoo] instance when data is moving between
* Map a [BufferooEntity] to and from a [Bufferoo] instance when data is moving between
* this later and the Domain layer
*/
class BufferooMapper @Inject constructor(): Mapper<BufferooEntity, Bufferoo> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import io.reactivex.Single
import org.buffer.android.boilerplate.domain.model.Bufferoo

/**
* Interface defining methods for how the data layer can pass data to and from the Domain alyer.
* Interface defining methods for how the data layer can pass data to and from the Domain layer.
* This is to be implemented by the data layer, setting the requirements for the
* operations that need to be implemented
*/
Expand Down