Skip to content

Commit

Permalink
fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
polbins committed Aug 26, 2020
1 parent 4b84a37 commit e7c921c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
11 changes: 5 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,17 @@ android {
//buildConfigField 'int', 'BUILD_NUMBER', "${project.ext.buildNumber}"

testInstrumentationRunner "journal.gratitude.com.gratitudejournal.CustomTestRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation":
"$projectDir/schemas".toString()]
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas")
}
}
buildConfigField "String", "DROPBOX_APP_KEY", "\"${project.property("dropboxAppKey")}\""

manifestPlaceholders = [dropboxAppKey: project.property("dropboxAppKey")]
}
dataBinding {
enabled = true
buildFeatures {
dataBinding true
}
buildTypes {
debug {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package journal.gratitude.com.gratitudejournal.di

import android.content.Context
import dagger.Module
import dagger.Provides
import journal.gratitude.com.gratitudejournal.fakes.FakeCloudUploader
Expand All @@ -13,7 +12,7 @@ object TestCloudUploadModule {
@JvmStatic
@Singleton
@Provides
fun provideCloudUpload(context: Context): CloudProvider {
fun provideCloudUpload(): CloudProvider {
return FakeCloudUploader()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ class FakeEntryRepository : EntryRepository {

override suspend fun getEntries(): List<Entry> {
val list = mutableListOf<Entry>()
entriesDatabase.forEach { (date, entry) -> list.add(entry) }
entriesDatabase.forEach { (_, entry) -> list.add(entry) }
return list
}

override suspend fun getEntriesFlow(): Flow<List<Entry>> {
val list = mutableListOf<Entry>()
entriesDatabase.forEach { (date, entry) -> list.add(entry) }
entriesDatabase.forEach { (_, entry) -> list.add(entry) }
return flow {
emit(emptyList<Entry>())
}
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ org.gradle.jvmargs=-Xmx1536m
# org.gradle.parallel=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
android.databinding.enableV2=true
android.useAndroidX=true
android.enableJetifier=true
dropboxAppKey=keyHiddenFromGit

0 comments on commit e7c921c

Please sign in to comment.