2023-01-12 01:04:45 +05:30
|
|
|
plugins {
|
|
|
|
|
id 'com.android.application'
|
|
|
|
|
id 'org.jetbrains.kotlin.android'
|
2023-01-31 16:57:28 +05:30
|
|
|
id 'com.google.firebase.appdistribution'
|
2023-06-28 12:41:18 +05:30
|
|
|
id 'dagger.hilt.android.plugin'
|
2023-01-31 16:57:28 +05:30
|
|
|
id 'com.google.gms.google-services'
|
2023-06-28 12:41:18 +05:30
|
|
|
id 'androidx.navigation.safeargs.kotlin'
|
|
|
|
|
id 'kotlin-kapt'
|
2023-08-23 12:07:25 +05:30
|
|
|
id 'com.google.firebase.crashlytics'
|
2023-01-12 01:04:45 +05:30
|
|
|
}
|
2023-01-31 15:30:38 +05:30
|
|
|
//apply plugin: 'kotlin-android'
|
2023-01-12 01:04:45 +05:30
|
|
|
|
|
|
|
|
android {
|
2023-08-14 21:12:14 +05:30
|
|
|
compileSdk 34
|
2023-06-28 12:41:18 +05:30
|
|
|
namespace 'in.sminnovations.hpostesting'
|
2023-01-12 01:04:45 +05:30
|
|
|
|
2024-02-13 17:57:38 +05:30
|
|
|
// dev -> development, quality -> qc, uat -> User Acceptance Testing, preprod -> preproduction, prod -> production, iocl -> iocl-iisc production
|
2023-01-12 01:04:45 +05:30
|
|
|
defaultConfig {
|
2024-02-13 17:59:26 +05:30
|
|
|
applicationId "in.sminnovations.hpostesting.dev"
|
2023-01-12 01:04:45 +05:30
|
|
|
minSdk 21
|
2023-08-14 21:12:14 +05:30
|
|
|
targetSdk 34
|
2024-02-13 17:57:38 +05:30
|
|
|
versionCode 114
|
|
|
|
|
versionName "2.1.114"
|
2023-01-12 01:04:45 +05:30
|
|
|
|
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-02 13:16:26 +05:30
|
|
|
|
2023-01-12 01:04:45 +05:30
|
|
|
buildTypes {
|
|
|
|
|
release {
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
compileOptions {
|
2023-06-28 12:41:18 +05:30
|
|
|
sourceCompatibility JavaVersion.VERSION_17
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_17
|
2023-01-12 01:04:45 +05:30
|
|
|
}
|
|
|
|
|
kotlinOptions {
|
2023-06-28 12:41:18 +05:30
|
|
|
jvmTarget = '17'
|
2023-01-12 01:04:45 +05:30
|
|
|
}
|
|
|
|
|
dataBinding {
|
|
|
|
|
enabled = true
|
|
|
|
|
}
|
2023-05-30 08:48:59 +05:30
|
|
|
buildFeatures {
|
|
|
|
|
viewBinding true
|
2023-09-05 17:20:21 +05:30
|
|
|
buildConfig = true
|
2023-05-30 08:48:59 +05:30
|
|
|
}
|
2023-08-08 15:30:46 +05:30
|
|
|
lint {
|
|
|
|
|
abortOnError false
|
|
|
|
|
checkReleaseBuilds false
|
|
|
|
|
}
|
2023-11-22 10:36:59 +05:30
|
|
|
packagingOptions {
|
|
|
|
|
exclude 'mockito-extensions/org.mockito.plugins.MockMaker'
|
|
|
|
|
}
|
2024-01-19 15:12:26 +05:30
|
|
|
// testOptions {
|
|
|
|
|
// unitTests {
|
|
|
|
|
// includeAndroidResources = true
|
|
|
|
|
// }
|
|
|
|
|
// }
|
2023-01-12 01:04:45 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2023-11-29 15:51:38 +05:30
|
|
|
implementation "com.google.dagger:hilt-android:2.46"
|
|
|
|
|
kapt "com.google.dagger:hilt-android-compiler:2.46"
|
2023-01-12 01:04:45 +05:30
|
|
|
|
2023-09-16 05:43:27 +00:00
|
|
|
implementation 'androidx.core:core-ktx:1.12.0'
|
2023-06-28 12:41:18 +05:30
|
|
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
2023-12-29 11:10:38 +05:30
|
|
|
implementation 'com.google.android.material:material:1.11.0'
|
2023-01-12 01:04:45 +05:30
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
2024-01-19 15:12:26 +05:30
|
|
|
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.7.0'
|
2023-11-22 16:31:46 +05:30
|
|
|
implementation 'androidx.fragment:fragment-ktx:1.6.2'
|
2023-06-03 19:10:48 +05:30
|
|
|
|
2023-06-28 12:41:18 +05:30
|
|
|
//firebase
|
|
|
|
|
implementation platform('com.google.firebase:firebase-bom:32.1.0')
|
2023-10-22 18:28:33 +05:30
|
|
|
implementation("com.google.firebase:firebase-perf-ktx")
|
2023-08-23 12:07:25 +05:30
|
|
|
implementation("com.google.firebase:firebase-crashlytics-ktx")
|
|
|
|
|
implementation("com.google.firebase:firebase-analytics-ktx")
|
2023-06-28 12:41:18 +05:30
|
|
|
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'
|
2023-09-16 05:43:27 +00:00
|
|
|
implementation 'com.google.android.gms:play-services-auth:20.7.0'
|
2024-01-26 11:20:13 +05:30
|
|
|
implementation 'com.google.android.gms:play-services-location:21.1.0'
|
2023-06-28 12:41:18 +05:30
|
|
|
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
|
2023-08-18 12:20:21 +05:30
|
|
|
implementation 'com.google.android.things:androidthings:1.0'
|
2023-11-22 16:31:46 +05:30
|
|
|
implementation 'com.google.firebase:firebase-appdistribution:16.0.0-beta11'
|
|
|
|
|
implementation("com.google.firebase:firebase-appdistribution-api-ktx:16.0.0-beta11")
|
2023-11-29 15:51:38 +05:30
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
|
|
|
|
implementation 'androidx.preference:preference-ktx:1.2.1'
|
2023-12-29 11:10:38 +05:30
|
|
|
implementation 'com.google.android.play:core:1.10.3'
|
2024-01-02 17:09:22 +05:30
|
|
|
implementation 'io.nats:jnats:2.11.2'
|
2023-12-29 11:10:38 +05:30
|
|
|
|
2023-09-15 17:26:38 +05:30
|
|
|
|
2023-06-03 19:10:48 +05:30
|
|
|
|
|
|
|
|
// Testing
|
2023-01-12 01:04:45 +05:30
|
|
|
testImplementation 'junit:junit:4.13.2'
|
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
2024-01-26 11:20:13 +05:30
|
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
|
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.2'
|
2023-01-12 01:04:45 +05:30
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
2024-01-19 15:12:26 +05:30
|
|
|
testImplementation "androidx.work:work-testing:2.9.0"
|
2024-01-18 12:08:03 +05:30
|
|
|
androidTestImplementation 'androidx.test:core-ktx:1.5.0'
|
2024-01-19 15:12:26 +05:30
|
|
|
testImplementation 'androidx.fragment:fragment-testing:1.6.2'
|
|
|
|
|
testImplementation "org.robolectric:robolectric:4.7"
|
2024-01-18 12:08:03 +05:30
|
|
|
|
|
|
|
|
// mockk
|
|
|
|
|
testImplementation 'io.mockk:mockk:1.10.6'
|
|
|
|
|
|
2023-11-17 14:48:53 +05:30
|
|
|
// 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'
|
2024-01-23 13:42:27 +05:30
|
|
|
androidTestImplementation 'org.mockito:mockito-android:3.12.4'
|
2024-02-04 14:45:37 +05:30
|
|
|
testImplementation 'org.powermock:powermock-api-mockito2:2.0.9'
|
|
|
|
|
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
|
2024-01-23 13:42:27 +05:30
|
|
|
|
2023-11-17 14:48:53 +05:30
|
|
|
testImplementation "androidx.arch.core:core-testing:2.2.0"
|
2023-11-29 15:51:38 +05:30
|
|
|
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.1'
|
2023-01-19 18:57:59 +05:30
|
|
|
|
2024-01-19 15:12:26 +05:30
|
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.7.0"
|
|
|
|
|
implementation 'com.opencsv:opencsv:5.9'
|
2023-08-09 14:51:44 +05:30
|
|
|
implementation 'com.github.mik3y:usb-serial-for-android:3.5.1'
|
2023-01-19 18:57:59 +05:30
|
|
|
|
2023-11-29 15:51:38 +05:30
|
|
|
implementation "androidx.fragment:fragment-ktx:1.6.2"
|
2023-01-19 18:57:59 +05:30
|
|
|
|
2023-05-19 13:08:02 +05:30
|
|
|
// CSV read, write
|
2023-12-14 13:59:48 +05:30
|
|
|
implementation 'com.opencsv:opencsv:5.9'
|
2023-01-27 13:22:21 +05:30
|
|
|
|
2023-05-19 13:08:02 +05:30
|
|
|
// Barcode scanner
|
|
|
|
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
2023-01-31 15:30:38 +05:30
|
|
|
|
2024-01-19 15:12:26 +05:30
|
|
|
// Google ML Kit using play services
|
2023-08-09 14:51:44 +05:30
|
|
|
implementation 'com.google.android.gms:play-services-code-scanner:16.1.0'
|
2023-05-30 08:48:59 +05:30
|
|
|
|
2023-06-28 12:41:18 +05:30
|
|
|
//Room
|
2023-12-29 11:10:38 +05:30
|
|
|
implementation "androidx.room:room-ktx:2.6.1"
|
|
|
|
|
implementation "androidx.room:room-runtime:2.6.1"
|
|
|
|
|
kapt ("androidx.room:room-compiler:2.6.1")
|
2023-06-28 12:41:18 +05:30
|
|
|
|
|
|
|
|
//image
|
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.13.2'
|
2023-08-23 12:07:25 +05:30
|
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
|
2023-06-28 12:41:18 +05:30
|
|
|
|
|
|
|
|
// Navigation Component
|
2023-12-29 11:10:38 +05:30
|
|
|
implementation "androidx.navigation:navigation-fragment-ktx:2.7.6"
|
|
|
|
|
implementation "androidx.navigation:navigation-ui-ktx:2.7.6"
|
2023-06-28 12:41:18 +05:30
|
|
|
|
|
|
|
|
//Dagger - Hilt
|
|
|
|
|
implementation "com.google.dagger:hilt-android:2.46"
|
|
|
|
|
kapt "com.google.dagger:hilt-android-compiler:2.46"
|
2023-11-28 15:39:57 +05:30
|
|
|
kapt "androidx.hilt:hilt-compiler:1.1.0"
|
2023-06-28 12:41:18 +05:30
|
|
|
|
|
|
|
|
// Retrofit + GSON
|
|
|
|
|
implementation "com.squareup.retrofit2:retrofit:2.9.0"
|
|
|
|
|
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
|
2024-01-03 12:52:27 +05:30
|
|
|
implementation("com.squareup.okhttp3:okhttp:4.9.3")
|
2023-06-28 12:41:18 +05:30
|
|
|
|
2023-12-01 15:55:49 +05:30
|
|
|
implementation "androidx.preference:preference-ktx:1.2.1"
|
2024-02-06 13:25:06 +05:30
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1'
|
2024-01-06 16:32:00 +05:30
|
|
|
|
|
|
|
|
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
|
|
|
|
|
2024-01-16 10:53:54 +05:30
|
|
|
// implementation("io.nats:jnats:2.11.2")
|
2024-01-02 17:09:22 +05:30
|
|
|
implementation 'com.google.android.play:core:1.10.3'
|
|
|
|
|
|
2024-02-02 16:13:13 +05:30
|
|
|
implementation fileTree(dir: 'libs', include: ['*.aar'])
|
2024-02-07 16:33:57 +05:30
|
|
|
implementation 'io.nats:jnats:2.11.4'
|
|
|
|
|
|
2023-06-28 12:41:18 +05:30
|
|
|
}
|