Implemented AssistedInject for details screen
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import java.util.Properties
|
||||
|
||||
@Suppress("DSL_SCOPE_VIOLATION") // TODO: Remove once KTIJ-19369 is fixed
|
||||
plugins {
|
||||
alias(libs.plugins.convention.android.library)
|
||||
@ -9,10 +11,15 @@ android {
|
||||
buildFeatures {
|
||||
buildConfig = true
|
||||
}
|
||||
|
||||
defaultConfig {
|
||||
buildConfigField("String", "PIXABAY_API_KEY", "\"<REPLACE_WITH_PIXABAY_API_KEY>\"")
|
||||
val localPropertiesFile = project.rootProject.file("local.properties")
|
||||
val properties = Properties()
|
||||
properties.load(localPropertiesFile.inputStream())
|
||||
|
||||
val apiKey = properties.getProperty("PIXABAY_API_KEY") ?: ""
|
||||
buildConfigField("String", "PIXABAY_API_KEY", "\"$apiKey\"")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
Reference in New Issue
Block a user