146 lines
5.1 KiB
Groovy
146 lines
5.1 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'org.jetbrains.kotlin.android'
|
|
id 'com.google.firebase.appdistribution'
|
|
id 'dagger.hilt.android.plugin'
|
|
id 'com.google.gms.google-services'
|
|
id 'androidx.navigation.safeargs.kotlin'
|
|
id 'kotlin-kapt'
|
|
id 'com.google.firebase.crashlytics'
|
|
}
|
|
//apply plugin: 'kotlin-android'
|
|
|
|
android {
|
|
compileSdk 34
|
|
namespace 'in.sminnovations.hpostesting'
|
|
|
|
// prod - production, preprod - preproduction, quality - qc, dev - development
|
|
defaultConfig {
|
|
applicationId "in.sminnovations.hpostesting.preprod"
|
|
minSdk 21
|
|
targetSdk 34
|
|
versionCode 90
|
|
versionName "2.1.90"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
targetCompatibility JavaVersion.VERSION_17
|
|
}
|
|
kotlinOptions {
|
|
jvmTarget = '17'
|
|
}
|
|
dataBinding {
|
|
enabled = true
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
buildConfig = true
|
|
}
|
|
lint {
|
|
abortOnError false
|
|
checkReleaseBuilds false
|
|
}
|
|
packagingOptions {
|
|
exclude 'mockito-extensions/org.mockito.plugins.MockMaker'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "com.google.dagger:hilt-android:2.46"
|
|
kapt "com.google.dagger:hilt-android-compiler:2.46"
|
|
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
|
implementation 'com.google.android.material:material:1.11.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2'
|
|
implementation 'androidx.fragment:fragment-ktx:1.6.2'
|
|
|
|
//firebase
|
|
implementation platform('com.google.firebase:firebase-bom:32.1.0')
|
|
implementation("com.google.firebase:firebase-perf-ktx")
|
|
implementation("com.google.firebase:firebase-crashlytics-ktx")
|
|
implementation("com.google.firebase:firebase-analytics-ktx")
|
|
implementation 'com.google.firebase:firebase-firestore-ktx'
|
|
implementation 'com.google.firebase:firebase-auth-ktx'
|
|
implementation 'com.google.firebase:firebase-storage-ktx'
|
|
implementation 'com.firebaseui:firebase-ui-firestore:8.0.2'
|
|
implementation 'com.google.android.gms:play-services-auth:20.7.0'
|
|
implementation 'com.google.android.gms:play-services-location:21.0.1'
|
|
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
|
|
implementation 'com.google.android.things:androidthings:1.0'
|
|
implementation 'com.google.firebase:firebase-appdistribution:16.0.0-beta11'
|
|
implementation("com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta11")
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
|
implementation 'com.google.android.play:core:1.10.3'
|
|
|
|
|
|
|
|
|
|
// Testing
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
// Mockito dependencies
|
|
testImplementation 'org.mockito:mockito-core:3.12.4'
|
|
androidTestImplementation 'org.mockito:mockito-android:3.12.4'
|
|
androidTestImplementation 'org.mockito:mockito-inline:3.12.4'
|
|
testImplementation "androidx.arch.core:core-testing:2.2.0"
|
|
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1'
|
|
|
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2"
|
|
implementation 'com.opencsv:opencsv:5.5'
|
|
implementation 'com.github.mik3y:usb-serial-for-android:3.5.1'
|
|
|
|
implementation "androidx.fragment:fragment-ktx:1.6.2"
|
|
|
|
// CSV read, write
|
|
implementation 'com.opencsv:opencsv:5.5'
|
|
|
|
// Barcode scanner
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
|
|
// Google ML Kit usign play services
|
|
implementation 'com.google.android.gms:play-services-code-scanner:16.1.0'
|
|
|
|
//Room
|
|
implementation "androidx.room:room-ktx:2.6.1"
|
|
implementation "androidx.room:room-runtime:2.6.1"
|
|
kapt ("androidx.room:room-compiler:2.6.1")
|
|
|
|
//image
|
|
implementation 'com.github.bumptech.glide:glide:4.13.2'
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
|
|
|
|
// Navigation Component
|
|
implementation "androidx.navigation:navigation-fragment-ktx:2.7.6"
|
|
implementation "androidx.navigation:navigation-ui-ktx:2.7.6"
|
|
|
|
//Dagger - Hilt
|
|
implementation "com.google.dagger:hilt-android:2.46"
|
|
kapt "com.google.dagger:hilt-android-compiler:2.46"
|
|
kapt "androidx.hilt:hilt-compiler:1.1.0"
|
|
|
|
// Retrofit + GSON
|
|
implementation "com.squareup.retrofit2:retrofit:2.9.0"
|
|
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
|
|
implementation("com.squareup.okhttp3:okhttp:4.9.3")
|
|
|
|
implementation "androidx.preference:preference-ktx:1.2.1"
|
|
implementation 'io.nats:jnats:2.11.2'
|
|
|
|
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
|
|
|
implementation("io.nats:jnats:2.11.2")
|
|
} |