-Connected to backend using retrofit -Added TokenManager and AuthInterceptor for the application to login and make calls with authentication to access some backend calls that need authentication
54 lines
1.6 KiB
Kotlin
54 lines
1.6 KiB
Kotlin
plugins {
|
|
alias(libs.plugins.android.application)
|
|
}
|
|
|
|
android {
|
|
namespace = "com.example.petstoremobile"
|
|
compileSdk = 36
|
|
|
|
defaultConfig {
|
|
applicationId = "com.example.petstoremobile"
|
|
minSdk = 24
|
|
targetSdk = 36
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
|
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(libs.appcompat)
|
|
implementation(libs.material)
|
|
implementation(libs.activity)
|
|
implementation(libs.constraintlayout)
|
|
|
|
implementation("com.squareup.retrofit2:retrofit:2.9.0")
|
|
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
|
|
implementation("com.squareup.okhttp3:logging-interceptor:4.9.1")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
implementation("androidx.viewpager2:viewpager2:1.1.0")
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
implementation("androidx.camera:camera-camera2:1.3.0")
|
|
implementation("androidx.camera:camera-lifecycle:1.3.0")
|
|
implementation("androidx.camera:camera-view:1.3.0")
|
|
testImplementation(libs.junit)
|
|
androidTestImplementation(libs.ext.junit)
|
|
androidTestImplementation(libs.espresso.core)
|
|
} |