feat: api integration

This commit is contained in:
Stefan Zollinger
2023-10-24 12:03:00 +02:00
parent f13fccfe1a
commit 8a49edd6fb
8 changed files with 125 additions and 84 deletions

View File

@@ -15,6 +15,13 @@ android {
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
def propsFile = rootProject.file('env.properties')
def props = new Properties()
props.load(new FileInputStream(propsFile))
buildConfigField "String", "API_BASE_URL", "\"${props['apiBaseUrl']}\""
buildConfigField "String", "API_KEY", "\"${props['apiKey']}\""
}
buildTypes {
@@ -32,6 +39,7 @@ android {
}
buildFeatures {
viewBinding true
buildConfig true
}
}
@@ -47,4 +55,6 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0'
implementation "com.android.volley:volley:1.2.1"
}