feat: api integration
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user