brain / Android /app /build.gradle
peterluo3131's picture
feature: update setting page to manage server url
3f5eb73
plugins {
id 'com.android.application'
id 'com.google.gms.google-services'
id 'kotlin-kapt'
id 'kotlin-android'
}
android {
namespace 'com.matthaigh27.chatgptwrapper'
compileSdk 33
defaultConfig {
applicationId "com.matthaigh27.chatgptwrapper"
minSdk 28
targetSdk 33
versionCode 1
versionName "1.7"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
buildConfigField "String", "BASE_URL", "\"https://ttt246-brain.hf.space/\""
}
release {
buildConfigField "String", "BASE_URL", "\"https://ttt246-brain.hf.space/\""
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
viewBinding true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11
}
dataBinding {
enabled true
}
}
dependencies {
//Core
implementation 'androidx.core:core-ktx:1.9.0'
implementation 'com.google.code.gson:gson:2.8.5'
//UI & UX
implementation 'androidx.appcompat:appcompat:1.6.0'
implementation 'com.google.android.material:material:1.8.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'de.hdodenhof:circleimageview:3.1.0'
implementation 'com.github.soulqw:CoCo:1.1.2'
implementation 'com.github.dhaval2404:imagepicker:2.1'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
testImplementation 'org.testng:testng:6.9.6'
// Testing-only dependencies
androidTestImplementation "androidx.test.ext:junit:$rootProject.extJUnitVersion"
androidTestImplementation "androidx.test:runner:$rootProject.runnerVersion"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
// UiAutomator Testing
androidTestImplementation "androidx.test.uiautomator:uiautomator:$rootProject.uiAutomatorVersion"
androidTestImplementation 'org.hamcrest:hamcrest-integration:1.3'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.2"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0-alpha05"
//Firebase
implementation platform('com.google.firebase:firebase-bom:31.4.0')
implementation 'com.google.android.gms:play-services-gcm:17.0.0'
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-firestore-ktx:24.4.5'
implementation 'com.google.firebase:firebase-database-ktx:19.6.0'
implementation 'com.google.firebase:firebase-firestore:15.0.0'
implementation 'com.google.firebase:firebase-storage-ktx:20.1.0'
implementation 'com.google.firebase:firebase-messaging-ktx'
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.firebaseui:firebase-ui-storage:7.2.0'
implementation "androidx.room:room-runtime:$rootProject.roomVersion"
annotationProcessor "androidx.room:room-compiler:$rootProject.roomVersion"
// To use room database
implementation "androidx.room:room-ktx:$rootProject.roomVersion"
kapt "androidx.room:room-compiler:$rootProject.roomVersion"
implementation "androidx.room:room-rxjava2:$rootProject.roomVersion"
implementation "androidx.room:room-rxjava3:$rootProject.roomVersion"
implementation "androidx.room:room-guava:$rootProject.roomVersion"
testImplementation "androidx.room:room-testing:$rootProject.roomVersion"
implementation "androidx.room:room-paging:$rootProject.roomVersion"
//To use Retrofit
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$rootProject.lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$rootProject.lifecycleVersion"
implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
implementation "com.squareup.okhttp3:okhttp:$rootProject.okHttpVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$rootProject.okHttpVersion"
implementation "com.squareup.okhttp3:okhttp-urlconnection:$rootProject.okHttpVersion"
}