diff --git a/CODEOWNERS b/CODEOWNERS index 751f948fab..250e7bacf3 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -16,3 +16,4 @@ google-services.json @navi-android/leads *.pro @navi-android/leads *.yml @navi-android/leads *.jks @navi-android/leads +*.toml @navi-android/leads diff --git a/app/build.gradle b/app/build.gradle index 14985c2e6f..038c1bb844 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,13 +1,13 @@ plugins { - id 'com.android.application' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' + alias libs.plugins.android.application + alias libs.plugins.firebase.crashlytics + alias libs.plugins.firebase.perf + alias libs.plugins.google.services + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize id 'maven-publish' - id 'com.google.firebase.crashlytics' - id 'com.google.gms.google-services' - id 'com.google.firebase.firebase-perf' - id 'com.google.dagger.hilt.android' } kapt { @@ -117,7 +117,7 @@ android { } } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } flavorDimensions = ["app"] productFlavors { @@ -232,13 +232,9 @@ publishing { } dependencies { - implementation platform("androidx.compose:compose-bom:$compose_bom_version") - - implementation project(":navi-vkyc") api project(":navi-payment") + implementation project(":navi-vkyc") implementation project(":navi-chat") - androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1' - implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) implementation project(":navi-amc") implementation project(":navi-rr") implementation project(":navi-gold") @@ -246,116 +242,88 @@ dependencies { implementation project(":navi-hl") implementation project(":navi-ap") implementation project(":navi-pay") - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" - implementation "com.google.android.material:material:$material_version" - implementation 'com.android.support:multidex:1.0.3' - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" - implementation "androidx.work:work-runtime-ktx:$work_version" - implementation 'com.otaliastudios:cameraview:2.7.2' - - implementation 'com.android.installreferrer:installreferrer:2.2' - - // Auto fetch phone number - implementation 'com.google.android.gms:play-services-auth:18.0.0' - - implementation 'com.google.android.gms:play-services-ads:22.0.0' - - // finormic implementation project(":finoramic-androidx-sdk") + implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation fragmentLibs.ktx + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.constraintlayout + implementation libs.android.material + implementation libs.androidx.multidex + implementation libs.androidx.lifecycle.viewmodel.ktx + implementation libs.androidx.workRuntime.ktx + implementation libs.otaliastudios.cameraview - // AndroidJUnitRunner and JUnit Rules - androidTestImplementation "androidx.test:runner:$test_runner_version" - androidTestImplementation "androidx.test:rules:$test_rules_version" + implementation libs.android.installreferrer - // Espresso dependencies - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - androidTestImplementation "androidx.test.espresso:espresso-intents:$espresso_version" - androidTestImplementation "androidx.test.espresso:espresso-web:$espresso_version" - androidTestImplementation("androidx.test.espresso:espresso-contrib:$espresso_version") { + implementation libs.android.gms.playServicesAuth + + implementation libs.android.gms.playServicesAds + + implementation libs.androidx.fragment.ktx + + androidTestImplementation libs.androidx.test.runner + androidTestImplementation libs.androidx.test.rules + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.espresso.intents + androidTestImplementation libs.androidx.test.espresso.web + androidTestImplementation(libs.androidx.test.espresso.contrib) { exclude(group: "com.google.protobuf", module: "protobuf-lite") } - androidTestImplementation "org.hamcrest:hamcrest:$hamcrest_version" - debugImplementation "androidx.test:monitor:$test_monitor_version" + androidTestImplementation libs.hamcrest + debugImplementation libs.androidx.test.monitor - testImplementation('com.navi.medici.test-library:database-library:0.0.26-SNAPSHOT') { - exclude group: "org.postgresql" - exclude group: "org.apache.commons" - exclude group: "junit" - } - androidTestImplementation('com.google.guava:guava:28.2-android') { - exclude group: "com.google.code.findbugs", module: "jsr305" - } - androidTestImplementation 'com.squareup.okhttp3:mockwebserver:4.4.1' - androidTestImplementation 'android.arch.core:core-testing:1.1.1' - testImplementation 'android.arch.core:core-testing:1.1.1' - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - testImplementation "io.mockk:mockk:$mockk_version" + androidTestImplementation libs.okhttp.mockwebserver + androidTestImplementation libs.arch.core.testing + testImplementation libs.arch.core.testing + testImplementation libs.junit + androidTestImplementation libs.androidx.test.junit + testImplementation libs.mockk - // Dependency for postgres + implementation libs.facebook.applinks + implementation libs.branch -// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2' + api libs.android.play.core.ktx + implementation libs.truecaller + implementation libs.android.support.annotations - // Facebook sdk - implementation 'com.facebook.android:facebook-applinks:13.1.0' + implementation libs.dagger.hiltAndroid + kapt libs.dagger.hiltCompiler - // for branch io deeplink - implementation 'io.branch.sdk.android:library:5.1.1' + androidTestImplementation libs.dagger.hiltAndroidTesting + kaptAndroidTest libs.dagger.hiltCompiler - // for play store in app review - api playCore.implementation + testImplementation libs.dagger.hiltAndroidTesting + kaptTest libs.dagger.hiltCompiler - // for Trucaller - implementation "com.truecaller.android.sdk:truecaller-sdk:2.7.0" + testImplementation libs.restAssured + testImplementation libs.awaitility - implementation 'com.android.support:support-annotations:28.0.0' + implementation libs.androidx.browser - implementation hiltLibs.implementation - kapt hiltLibs.kapt + implementation libs.android.gms.playServicesAuthApiPhone - // For instrumentation tests - androidTestImplementation hiltLibs.androidTest - kaptAndroidTest hiltLibs.kaptAndroidTest + implementation libs.retrofit.converter.scalars - // For local unit tests - testImplementation hiltLibs.test - kaptTest hiltLibs.kaptTest + implementation libs.finarkein - // RestAssured - testImplementation 'io.rest-assured:rest-assured:4.3.0' - testImplementation 'org.awaitility:awaitility:4.1.0' + implementation libs.otpless - //Custom tabs - implementation 'androidx.browser:browser:1.3.0' - - //one tap sms verification - implementation 'com.google.android.gms:play-services-auth-api-phone:18.0.1' - - implementation 'com.squareup.retrofit2:converter-scalars:2.9.0' - - implementation "io.finarkein.anubhav:sdk-core:$finarkein_version" - - implementation "com.github.otpless-tech:otpless-android-sdk:$otp_less_version" - - //Hyperion dependencies - debugImplementation hyperion.debug_core - debugImplementation hyperion.attribute - debugImplementation hyperion.build_config - debugImplementation hyperion.crash - debugImplementation hyperion.disk - debugImplementation hyperion.geiger_counter - debugImplementation hyperion.measurement - debugImplementation hyperion.phoenix - debugImplementation hyperion.reporter - debugImplementation hyperion.shared_prefrence - debugImplementation hyperion.timber - debugImplementation hyperion.menu - releaseImplementation hyperion.release_core + debugImplementation libs.hyperion.core + debugImplementation libs.hyperion.attr + debugImplementation libs.hyperion.buildConfig + debugImplementation libs.hyperion.crash + debugImplementation libs.hyperion.disk + debugImplementation libs.hyperion.geigerCounter + debugImplementation libs.hyperion.measurement + debugImplementation libs.hyperion.phoenix + debugImplementation libs.hyperion.recorder + debugImplementation libs.hyperion.sharedPreferences + debugImplementation libs.hyperion.timber + debugImplementation libs.hyperion.simpleItem + releaseImplementation libs.hyperion.coreNoOp } diff --git a/build.gradle b/build.gradle index ad621ee6b3..eb8f36217a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,22 +1,26 @@ buildscript { dependencies { - classpath 'in.juspay:hypersdk.plugin:2.0.4' + classpath libs.juspay.hypersdk.plugin } } plugins { - id 'com.android.application' version '7.3.1' apply false - id 'org.jetbrains.kotlin.android' version '1.8.10' apply false - id 'com.google.gms.google-services' version '4.3.15' apply false - id 'com.google.firebase.crashlytics' version '2.8.1' apply false - id 'com.google.firebase.firebase-perf' version '1.4.1' apply false - id 'com.google.dagger.hilt.android' version '2.44' apply false - id 'androidx.navigation.safeargs.kotlin' version '2.4.2' apply false - id 'com.diffplug.spotless' version '6.20.0' + alias libs.plugins.android.application apply false + alias libs.plugins.android.dynamic.feature apply false + alias libs.plugins.android.library apply false + alias libs.plugins.google.services apply false + alias libs.plugins.firebase.crashlytics apply false + alias libs.plugins.firebase.perf apply false + alias libs.plugins.hilt.android apply false + alias libs.plugins.kotlin.android apply false + alias libs.plugins.kotlin.kapt apply false + alias libs.plugins.kotlin.parcelize apply false + alias libs.plugins.navigation apply false + alias libs.plugins.ksp apply false + alias libs.plugins.spotless } apply from: 'spotless.gradle' -apply from: 'dependencies.gradle' apply from: 'projectDependencyGraph.gradle' allprojects { diff --git a/dependencies.gradle b/dependencies.gradle deleted file mode 100644 index a18ef92511..0000000000 --- a/dependencies.gradle +++ /dev/null @@ -1,121 +0,0 @@ -ext { - android_junit_version = '1.1.5' - appcompat_version = '1.6.1' - core_version = '1.8.0' - espresso_version = '3.5.0' - hilt_version = '2.44' - junit_version = '4.13.2' - lifecycle_version = '2.6.1' - lottie_version = '6.1.0' - material_version = '1.9.0' - room_version = '2.5.2' - work_version = '2.8.1' - nav_version = '2.5.3' - camera_version = '1.3.0-beta01' - kotlin_coroutine_version = '1.6.4' - retrofit_version = '2.9.0' - kotlin_compiler_extension_version = '1.4.4' - compose_bom_version = '2023.06.01' - accompanist_version = '0.24.10-beta' - otp_less_version = '1.1.4' - finarkein_version = '0.4.0' - uitron_version = '1.0.20' - mockk_version = '1.10.2' - hamcrest_version = '2.2' - test_monitor_version = '1.6.0' - test_runner_version = '1.4.0' - test_rules_version = '1.4.0' - hyperion_version = '0.9.34' - hyperion_menu_version = '0.5.0' - razor_pay_version = '1.6.33' - constraint_layout_version = '2.1.4' - gson_version = '2.10.1' - log_interceptor = '4.10.0' - hms_version = '2.6.7' - exoplayer_version = '2.18.1' - compose_destinations_version = '1.8.42-beta' - io_mock_version = '1.10.2' - cashfree_version = '2.0.6' - chucker_version = '3.5.2' - coroutine_test_version = '1.5.0' - accompanist_pager_version = '0.23.1' - joda_date_time_version = '2.12.2' - coil_compose_version = '2.4.0' - digio_version = 'v4.0.6' - juspay_hypersdk_clientId = 'navi' - juspay_hypersdk_sdkVersion = '2.1.15' - - androidX = [ - workKtx : "android.arch.work:work-runtime-ktx:1.0.1", - hiltWork : "androidx.hilt:hilt-work:1.0.0", - hiltKapt : "androidx.hilt:hilt-compiler:1.0.0", - core : "androidx.core:core-ktx:$core_version", - appCompat : "androidx.appcompat:appcompat:$appcompat_version" - ] - - hiltLibs = [ - implementation : "com.google.dagger:hilt-android:$hilt_version", - kapt : "com.google.dagger:hilt-compiler:$hilt_version", - androidTest : "com.google.dagger:hilt-android-testing:$hilt_version", - kaptAndroidTest : "com.google.dagger:hilt-compiler:$hilt_version", - test : "com.google.dagger:hilt-android-testing:$hilt_version", - kaptTest : "com.google.dagger:hilt-compiler:$hilt_version", - androidCompiler : "com.google.dagger:hilt-android-compiler:$hilt_version" - ] - - fragmentLibs = [ - ktx : "androidx.fragment:fragment-ktx:1.5.2" - ] - - glideLibs = [ - implementation : "com.github.bumptech.glide:glide:4.14.2", - kapt : "com.github.bumptech.glide:compiler:4.14.0" - ] - - playCore = [ - implementation : "com.google.android.play:core-ktx:1.8.1" - ] - - shimmer = [ - implementation : 'com.facebook.shimmer:shimmer:0.5.0' - ] - - hyperion = [ - debug_core : "com.willowtreeapps.hyperion:hyperion-core:$hyperion_version", - release_core: "com.willowtreeapps.hyperion:hyperion-core-no-op:$hyperion_version", - attribute: "com.willowtreeapps.hyperion:hyperion-attr:$hyperion_version", - build_config: "com.willowtreeapps.hyperion:hyperion-build-config:$hyperion_version", - crash: "com.willowtreeapps.hyperion:hyperion-crash:$hyperion_version", - disk: "com.willowtreeapps.hyperion:hyperion-disk:$hyperion_version", - geiger_counter: "com.willowtreeapps.hyperion:hyperion-geiger-counter:$hyperion_version", - measurement: "com.willowtreeapps.hyperion:hyperion-measurement:$hyperion_version", - phoenix: "com.willowtreeapps.hyperion:hyperion-phoenix:$hyperion_version", - reporter: "com.willowtreeapps.hyperion:hyperion-recorder:$hyperion_version", - shared_prefrence: "com.willowtreeapps.hyperion:hyperion-shared-preferences:$hyperion_version", - timber: "com.willowtreeapps.hyperion:hyperion-timber:$hyperion_version", - menu: "com.github.takahirom:Hyperion-Simple-Item:$hyperion_menu_version" - ] - - material = [ - comMaterial : "com.google.android.material:material:$material_version" - ] - - junit = [ - testImplementation : "junit:junit:$junit_version", - extJunit : "androidx.test.ext:junit:$android_junit_version", - testEspresso : "androidx.test.espresso:espresso-core:$espresso_version" - ] - - mockk = [ - ioMock : "io.mockk:mockk:$io_mock_version" - ] - - coroutine = [ - coroutineTest : "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutine_test_version" - ] - - composeDestination = [ - destinationCore : "io.github.raamcosta.compose-destinations:core:$compose_destinations_version", - destinationKsp : "io.github.raamcosta.compose-destinations:ksp:$compose_destinations_version" - ] -} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000000..2c7a04e896 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,361 @@ +[versions] +accompanist-pager = "0.23.1" +accompanist-permissions = "0.25.1" +accompanist-systemuicontroller = "0.17.0" +androidGradlePlugin = "7.3.1" +android-exoplayer = "2.18.1" +android-flexbox = "3.0.0" +android-gms-playServicesAds = "22.0.0" +android-gms-playServicesAuth = "18.0.0" +android-gms-playServicesAuthApiPhone = "18.0.1" +android-gms-playServicesLocation = "21.0.1" +android-gms-playServicesMaps = "17.0.0" +android-gms-playServicesMlkitFaceDetection = "17.1.0" +android-installreferrer = "2.2" +android-material = "1.9.0" +android-places = "2.6.0" +android-play-core-ktx = "1.8.1" +android-supportAnnotations = "28.0.0" +androidx-appcompat = "1.6.1" +androidx-browser = "1.3.0" +androidx-camera = "1.3.0-beta01" +androidx-constraintlayout = "2.1.4" +androidx-constraintlayoutCompose = "1.1.0-alpha10" +androidx-core-ktx = "1.8.0" +androidx-coreGoogleShortcuts = "1.0.0" +androidx-fragment = "1.5.2" +androidx-gridlayout = "1.0.0" +androidx-hilt = "1.0.0" +androidx-legacy-support-v4 = "1.0.0" +androidx-lifecycle = "2.6.1" +androidx-multidex = "2.0.1" +androidx-pagingCompose = "3.2.0" +androidx-pagingRuntimeKtx = "3.1.1" +androidx-preferenceKtx = "1.2.0" +androidx-securityCryptoKtx = "1.1.0-alpha03" +androidx-test-espresso = "3.5.0" +androidx-test-junit = "1.1.5" +androidx-test-monitor = "1.6.0" +androidx-test-rules = "1.4.0" +androidx-test-runner = "1.4.0" +androidx-workRuntimeKtx = "2.8.1" +anrwatchdog = "1.4.0" +appsflyer = "6.3.2" +arch-coreTesting = "1.1.1" +arch-workRuntimeKtx = "1.0.1" +awaitility = "4.1.0" +branch = "5.1.1" +cashfree = "2.0.6" +chucker = "3.5.2" +coilCompose = "2.4.0" +compose-bom = "2023.06.01" +compose-lib = '1.4.4' +delight-advancedWebView = "v3.0.0" +digio = "v4.0.6" +digitap = "1.3.7" +facebook-applinks = "13.1.0" +facebook-shimmer = "0.5.0" +finarkein = "0.4.0" +firebase-bom = "32.2.2" +firebase-crashlytics = "2.8.1" +firebase-perf = "1.4.1" +glide-compiler = "4.14.0" +glide-glide = "4.14.2" +google-services = "4.3.15" +gson = "2.10.1" +hamcrest = "2.2" +hilt = "2.44" +hms = "2.6.7" +hyperion = "0.9.34" +hyperionSimpleItem = "0.5.0" +jakewharton-timber = "4.7.1" +jodaMoney = "1.0.1" +jodaTime = "2.12.2" +jsonPath = "2.8.0" +junit = "4.13.2" +juspay-googlePayClientApi = "1.0.0" +juspay-hypersdk = "2.1.15" +juspay-hypersdkPlugin = "2.0.4" +kotlin = "1.8.10" +kotlinxCoroutines = "1.6.4" +kotlinxCoroutinesTest = "1.5.0" +ksp = "1.8.10-1.0.9" +lottie = "6.1.0" +masayukiSuda-easingInterpolator = "v1.3.2" +mlkit-barcodeScanning = "17.1.0" +mockk = "1.10.2" +moengage-android-sdk = "12.6.02" +moengage-inapp = "6.5.0" +moengage-push-amp-plus = "6.2.1" +moengage-rich-notification = "4.3.2" +navi-uitron = "1.0.20" +navigation = "2.5.3" +okhttp-loggingInterceptor = "4.10.0" +okhttp-mockwebserver = "4.4.1" +otaliastudios-cameraview = "2.7.2" +otpless = "1.1.4" +payu-checkoutPro = "2.0.17" +payu-nativeOtpAssist = "1.3.4" +philjay-mpAndroidChart = "v3.1.0" +picasso = "2.71828" +pierfrancescosoffritti-androidyoutubeplayer = "11.1.0" +raamcosta-composeDestinations = "1.8.42-beta" +razorpay = "1.6.33" +restAssured = "4.3.0" +retrofit = "2.9.0" +room = "2.5.2" +shawnLin-numberPicker = "2.4.13" +spotless = "6.20.0" +truecaller = "2.7.0" +visit = "1.24" +wasabeef-recyclerviewAnimators = "4.0.1" +zetetic-androidDatabaseSqlcipher = "4.5.4" +zxing = "3.3.3" + +[libraries] +accompanist-pager = { module = "com.google.accompanist:accompanist-pager", version.ref = "accompanist-pager" } +accompanist-pagerIndicators = { module = "com.google.accompanist:accompanist-pager-indicators", version.ref = "accompanist-pager" } +accompanist-permissions = { module = "com.google.accompanist:accompanist-permissions", version.ref = "accompanist-permissions" } +accompanist-systemuicontroller = { module = "com.google.accompanist:accompanist-systemuicontroller", version.ref = "accompanist-systemuicontroller" } + +android-exoplayer-core = { module = "com.google.android.exoplayer:exoplayer-core", version.ref = "android-exoplayer" } +android-exoplayer-hls = { module = "com.google.android.exoplayer:exoplayer-hls", version.ref = "android-exoplayer" } +android-exoplayer-ui = { module = "com.google.android.exoplayer:exoplayer-ui", version.ref = "android-exoplayer" } + +android-flexbox = { module = "com.google.android.flexbox:flexbox", version.ref = "android-flexbox" } + +android-installreferrer = { module = "com.android.installreferrer:installreferrer", version.ref = "android-installreferrer" } + +android-gms-playServicesAds = { module = "com.google.android.gms:play-services-ads", version.ref = "android-gms-playServicesAds" } +android-gms-playServicesAuth = { module = "com.google.android.gms:play-services-auth", version.ref = "android-gms-playServicesAuth" } +android-gms-playServicesAuthApiPhone = { module = "com.google.android.gms:play-services-auth-api-phone", version.ref = "android-gms-playServicesAuthApiPhone" } +android-gms-playServicesLocation = { module = "com.google.android.gms:play-services-location", version.ref = "android-gms-playServicesLocation" } +android-gms-playServicesMaps = { module = "com.google.android.gms:play-services-maps", version.ref = "android-gms-playServicesMaps" } +android-gms-playServicesMlkitFaceDetection = { module = "com.google.android.gms:play-services-mlkit-face-detection", version.ref = "android-gms-playServicesMlkitFaceDetection" } + +android-material = { module = "com.google.android.material:material", version.ref = "android-material" } + +android-places = { module = "com.google.android.libraries.places:places", version.ref = "android-places" } + +android-play-core-ktx = { module = "com.google.android.play:core-ktx", version.ref = "android-play-core-ktx" } + +android-support-annotations = { module = "com.android.support:support-annotations", version.ref = "android-supportAnnotations" } + +androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" } + +androidx-browser = { module = "androidx.browser:browser", version.ref = "androidx-browser" } + +androidx-camera-camera2 = { module = "androidx.camera:camera-camera2", version.ref = "androidx-camera" } +androidx-camera-core = { module = "androidx.camera:camera-core", version.ref = "androidx-camera" } +androidx-camera-lifecycle = { module = "androidx.camera:camera-lifecycle", version.ref = "androidx-camera" } +androidx-camera-mlkit-vision = { module = "androidx.camera:camera-mlkit-vision", version.ref = "androidx-camera" } +androidx-camera-view = { module = "androidx.camera:camera-view", version.ref = "androidx-camera" } + +androidx-compose-bom = { module = "androidx.compose:compose-bom", version.ref = "compose-bom" } +androidx-compose-material = { module = "androidx.compose.material:material" } +androidx-compose-foundation = { module = "androidx.compose.foundation:foundation" } + +androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "androidx-constraintlayout" } +androidx-constraintlayoutCompose = { module = "androidx.constraintlayout:constraintlayout-compose", version.ref = "androidx-constraintlayoutCompose" } + +androidx-core-google-shortcuts = { module = "androidx.core:core-google-shortcuts", version.ref = "androidx-coreGoogleShortcuts" } +androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidx-core-ktx" } + +androidx-fragment-ktx = { module = "androidx.fragment:fragment-ktx", version.ref = "androidx-fragment" } + +androidx-gridlayout = { module = "androidx.gridlayout:gridlayout", version.ref = "androidx-gridlayout" } + +androidx-hilt-compiler = { module = "androidx.hilt:hilt-compiler", version.ref = "androidx-hilt" } +androidx-hilt-work = { module = "androidx.hilt:hilt-work", version.ref = "androidx-hilt" } + +androidx-legacy-support-v4 = { module = "androidx.legacy:legacy-support-v4", version.ref = "androidx-legacy-support-v4" } + +androidx-lifecycle-livedata-ktx = { module = "androidx.lifecycle:lifecycle-livedata-ktx", version.ref = "androidx-lifecycle" } +androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "androidx-lifecycle" } +androidx-lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "androidx-lifecycle" } +androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidx-lifecycle" } + +androidx-multidex = { module = "androidx.multidex:multidex", version.ref = "androidx-multidex" } + +androidx-navigation-fragment-ktx = { module = "androidx.navigation:navigation-fragment-ktx", version.ref = "navigation" } +androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version.ref = "navigation" } + +androidx-paging-compose = { module = "androidx.paging:paging-compose", version.ref = "androidx-pagingCompose" } +androidx-paging-runtime-ktx = { module = "androidx.paging:paging-runtime-ktx", version.ref = "androidx-pagingRuntimeKtx" } + +androidx-preference-ktx = { module = "androidx.preference:preference-ktx", version.ref = "androidx-preferenceKtx" } + +androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" } +androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" } +androidx-room-paging = { module = "androidx.room:room-paging", version.ref = "room" } +androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" } +androidx-room-testing = { module = "androidx.room:room-testing", version.ref = "room" } + +androidx-security-crypto-ktx = { module = "androidx.security:security-crypto-ktx", version.ref = "androidx-securityCryptoKtx" } + +androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidx-test-espresso" } +androidx-test-espresso-contrib = { module = "androidx.test.espresso:espresso-contrib", version.ref = "androidx-test-espresso" } +androidx-test-espresso-web = { module = "androidx.test.espresso:espresso-web", version.ref = "androidx-test-espresso" } +androidx-test-espresso-intents = { module = "androidx.test.espresso:espresso-intents", version.ref = "androidx-test-espresso" } +androidx-test-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-test-junit" } +androidx-test-monitor = { module = "androidx.test:monitor", version.ref = "androidx-test-monitor" } +androidx-test-rules = { module = "androidx.test:rules", version.ref = "androidx-test-rules" } +androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidx-test-runner" } + +androidx-workRuntime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "androidx-workRuntimeKtx" } + +anrwatchdog = { module = "com.github.anrwatchdog:anrwatchdog", version.ref = "anrwatchdog" } + +appsflyer = { module = "com.appsflyer:af-android-sdk", version.ref = "appsflyer" } + +arch-core-testing = { module = "android.arch.core:core-testing", version.ref = "arch-coreTesting" } +arch-work-runtime-ktx = { module = "android.arch.work:work-runtime-ktx", version.ref = "arch-workRuntimeKtx" } + +awaitility = { module = "org.awaitility:awaitility", version.ref = "awaitility" } + +branch = { module = "io.branch.sdk.android:library", version.ref = "branch" } + +cashfree = { module = "com.cashfree.pg:api", version.ref = "cashfree" } + +chucker-library = { module = "com.github.chuckerteam.chucker:library", version.ref = "chucker" } +chucker-libraryNoOp = { module = "com.github.chuckerteam.chucker:library-no-op", version.ref = "chucker" } + +coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coilCompose" } + +dagger-hiltAndroid = { module = "com.google.dagger:hilt-android", version.ref = "hilt" } +dagger-hiltAndroidCompiler = { module = "com.google.dagger:hilt-android-compiler", version.ref = "hilt" } +dagger-hiltAndroidTesting = { module = "com.google.dagger:hilt-android-testing", version.ref = "hilt" } +dagger-hiltCompiler = { module = "com.google.dagger:hilt-compiler", version.ref = "hilt" } + +delight-advancedWebView = { module = "com.github.delight-im:Android-AdvancedWebView", version.ref = "delight-advancedWebView" } + +digio-gateway-common = { module = "com.github.digio-tech:gateway", version.ref = "digio" } +digio-gateway-esign = { module = "com.github.digio-tech:gateway_esign", version.ref = "digio" } +digio-gateway-kyc = { module = "com.github.digio-tech:gateway_kyc", version.ref = "digio" } + +digitap = { module = "com.digitap.sdk:okyc", version.ref = "digitap" } + +facebook-applinks = { module = "com.facebook.android:facebook-applinks", version.ref = "facebook-applinks" } +facebook-shimmer = { module = "com.facebook.shimmer:shimmer", version.ref = "facebook-shimmer" } + +finarkein = { module = "io.finarkein.anubhav:sdk-core", version.ref = "finarkein" } + +firebase-bom = { module = "com.google.firebase:firebase-bom", version.ref = "firebase-bom" } +firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx" } +firebase-auth-ktx = { module = "com.google.firebase:firebase-auth-ktx" } +firebase-config-ktx = { module = "com.google.firebase:firebase-config-ktx" } +firebase-crashlytics-ktx = { module = "com.google.firebase:firebase-crashlytics-ktx" } +firebase-database-ktx = { module = "com.google.firebase:firebase-database-ktx" } +firebase-dynamic-links-ktx = { module = "com.google.firebase:firebase-dynamic-links-ktx" } +firebase-firestore-ktx = { module = "com.google.firebase:firebase-firestore-ktx" } +firebase-messaging-ktx = { module = "com.google.firebase:firebase-messaging-ktx" } +firebase-perf-ktx = { module = "com.google.firebase:firebase-perf-ktx" } + +glide-glide = { module = "com.github.bumptech.glide:glide", version.ref = "glide-glide" } +glide-compiler = { module = "com.github.bumptech.glide:compiler", version.ref = "glide-compiler" } + +gson = { module = "com.google.code.gson:gson", version.ref = "gson" } + +hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "hamcrest" } + +hms-videoView = { module = "live.100ms:video-view", version.ref = "hms" } +hms-androidSdk = { module = "live.100ms:android-sdk", version.ref = "hms" } + +hyperion-buildConfig = { module = "com.willowtreeapps.hyperion:hyperion-build-config", version.ref = "hyperion" } +hyperion-attr = { module = "com.willowtreeapps.hyperion:hyperion-attr", version.ref = "hyperion" } +hyperion-core = { module = "com.willowtreeapps.hyperion:hyperion-core", version.ref = "hyperion" } +hyperion-coreNoOp = { module = "com.willowtreeapps.hyperion:hyperion-core-no-op", version.ref = "hyperion" } +hyperion-simpleItem = { module = "com.github.takahirom:Hyperion-Simple-Item", version.ref = "hyperionSimpleItem" } +hyperion-timber = { module = "com.willowtreeapps.hyperion:hyperion-timber", version.ref = "hyperion" } +hyperion-sharedPreferences = { module = "com.willowtreeapps.hyperion:hyperion-shared-preferences", version.ref = "hyperion" } +hyperion-recorder = { module = "com.willowtreeapps.hyperion:hyperion-recorder", version.ref = "hyperion" } +hyperion-phoenix = { module = "com.willowtreeapps.hyperion:hyperion-phoenix", version.ref = "hyperion" } +hyperion-measurement = { module = "com.willowtreeapps.hyperion:hyperion-measurement", version.ref = "hyperion" } +hyperion-geigerCounter = { module = "com.willowtreeapps.hyperion:hyperion-geiger-counter", version.ref = "hyperion" } +hyperion-disk = { module = "com.willowtreeapps.hyperion:hyperion-disk", version.ref = "hyperion" } +hyperion-crash = { module = "com.willowtreeapps.hyperion:hyperion-crash", version.ref = "hyperion" } + +jakewharton-timber = { module = "com.jakewharton.timber:timber", version.ref = "jakewharton-timber" } + +jayway-jsonPath = { module = "com.jayway.jsonpath:json-path", version.ref = "jsonPath" } + +joda-money = { module = "org.joda:joda-money", version.ref = "jodaMoney" } +joda-time = { module = "joda-time:joda-time", version.ref = "jodaTime" } + +junit = { module = "junit:junit", version.ref = "junit" } + +juspay-hypersdk-plugin = { module = "in.juspay:hypersdk.plugin", version.ref = "juspay-hypersdkPlugin" } +juspay-googlePayClientApi = { module = "in.juspay:google-pay-client-api", version.ref = "juspay-googlePayClientApi" } + +kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinxCoroutines" } +kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutines" } +kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinxCoroutinesTest" } + +lottie = { module = "com.airbnb.android:lottie", version.ref = "lottie" } + +masayukiSuda-easingInterpolator = { module = "com.github.MasayukiSuda:EasingInterpolator", version.ref = "masayukiSuda-easingInterpolator" } + +mlkit-barcodeScanning = { module = "com.google.mlkit:barcode-scanning", version.ref = "mlkit-barcodeScanning" } + +mockk = { module = "io.mockk:mockk", version.ref = "mockk" } + +moengage-android-sdk = { module = "com.moengage:moe-android-sdk", version.ref = "moengage-android-sdk" } +moengage-inapp = { module = "com.moengage:inapp", version.ref = "moengage-inapp" } +moengage-push-amp-plus = { module = "com.moengage:push-amp-plus", version.ref = "moengage-push-amp-plus" } +moengage-rich-notification = { module = "com.moengage:rich-notification", version.ref = "moengage-rich-notification" } + +navi-uitron = { module = "com.navi.medici:uitron", version.ref = "navi-uitron" } + +okhttp-loggingInterceptor = { module = "com.squareup.okhttp3:logging-interceptor", version.ref = "okhttp-loggingInterceptor" } +okhttp-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp-mockwebserver" } + +otaliastudios-cameraview = { module = "com.otaliastudios:cameraview", version.ref = "otaliastudios-cameraview" } + +otpless = { module = "com.github.otpless-tech:otpless-android-sdk", version.ref = "otpless" } + +payu-checkoutPro = { module = "in.payu:payu-checkout-pro", version.ref = "payu-checkoutPro" } +payu-nativeOtpAssist = { module = "in.payu:native-otp-assist", version.ref = "payu-nativeOtpAssist" } + +philjay-mpAndroidChart = { module = "com.github.PhilJay:MPAndroidChart", version.ref = "philjay-mpAndroidChart" } + +picasso = { module = "com.squareup.picasso:picasso", version.ref = "picasso" } + +pierfrancescosoffritti-androidyoutubeplayer = { module = "com.pierfrancescosoffritti.androidyoutubeplayer:core", version.ref = "pierfrancescosoffritti-androidyoutubeplayer" } + +raamcosta-composeDestinations-core = { module = "io.github.raamcosta.compose-destinations:core", version.ref = "raamcosta-composeDestinations" } +raamcosta-composeDestinations-ksp = { module = "io.github.raamcosta.compose-destinations:ksp", version.ref = "raamcosta-composeDestinations" } + +razorpay = { module = "com.razorpay:checkout", version.ref = "razorpay" } + +restAssured = { module = "io.rest-assured:rest-assured", version.ref = "restAssured" } + +retrofit-retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" } +retrofit-converter-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" } +retrofit-converter-scalars = { module = "com.squareup.retrofit2:converter-scalars", version.ref = "retrofit" } + +shawnLin-numberPicker = { module = "io.github.ShawnLin013:number-picker", version.ref = "shawnLin-numberPicker" } + +truecaller = { module = "com.truecaller.android.sdk:truecaller-sdk", version.ref = "truecaller" } + +visit = { module = "com.github.VisitApp:VisitSDK", version.ref = "visit" } + +wasabeef-recyclerview-animators = { module = "jp.wasabeef:recyclerview-animators", version.ref = "wasabeef-recyclerviewAnimators" } + +zetetic-android-database-sqlcipher = { module = "net.zetetic:android-database-sqlcipher", version.ref = "zetetic-androidDatabaseSqlcipher" } + +zxing = { module = "com.google.zxing:core", version.ref = "zxing" } + +[plugins] +android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" } +android-dynamic-feature = { id = "com.android.dynamic-feature", version.ref = "androidGradlePlugin" } +android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" } +firebase-crashlytics = { id = "com.google.firebase.crashlytics", version.ref = "firebase-crashlytics" } +firebase-perf = { id = "com.google.firebase.firebase-perf", version.ref = "firebase-perf" } +google-services = { id = "com.google.gms.google-services", version.ref = "google-services" } +hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "hilt" } +kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } +kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" } +kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" } +ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } +navigation = { id = "androidx.navigation.safeargs.kotlin", version.ref = "navigation" } +spotless = { id = "com.diffplug.spotless", version.ref = "spotless" } diff --git a/navi-amc/build.gradle b/navi-amc/build.gradle index 1ecc457d53..09f9a653e4 100644 --- a/navi-amc/build.gradle +++ b/navi-amc/build.gradle @@ -1,10 +1,10 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' - id 'androidx.navigation.safeargs.kotlin' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.navigation } android { @@ -37,7 +37,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -51,34 +51,28 @@ android { dependencies { implementation project(":navi-payment") - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - // Fragment - implementation fragmentLibs.ktx + implementation libs.androidx.appcompat + implementation libs.androidx.constraintlayout + implementation libs.androidx.core.ktx + implementation libs.androidx.fragment.ktx - implementation hiltLibs.implementation - kapt hiltLibs.kapt + implementation libs.dagger.hiltAndroid - // For instrumentation tests - androidTestImplementation hiltLibs.androidTest - kaptAndroidTest hiltLibs.kaptAndroidTest - implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' + implementation libs.philjay.mpAndroidChart + kapt libs.dagger.hiltCompiler + kaptAndroidTest libs.dagger.hiltCompiler - // For local unit tests - testImplementation hiltLibs.test - kaptTest hiltLibs.kaptTest + kaptTest libs.dagger.hiltCompiler -} + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + androidTestImplementation libs.dagger.hiltAndroidTesting -static def formatString(String value) { - return '"' + value + '"' + testImplementation libs.dagger.hiltAndroidTesting + testImplementation libs.junit } kapt { diff --git a/navi-analytics/build.gradle b/navi-analytics/build.gradle index 9065132768..44f40e3dc5 100644 --- a/navi-analytics/build.gradle +++ b/navi-analytics/build.gradle @@ -1,7 +1,7 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' + alias libs.plugins.android.library + alias libs.plugins.kotlin.android + alias libs.plugins.ksp } android { @@ -33,40 +33,38 @@ android { } dependencies { - implementation project(":pulse") implementation project(":navi-base") + implementation project(":pulse") - api platform('com.google.firebase:firebase-bom:32.2.2') - api 'com.google.firebase:firebase-analytics-ktx' - api 'com.google.firebase:firebase-auth-ktx' - api 'com.google.firebase:firebase-config-ktx' - api 'com.google.firebase:firebase-crashlytics-ktx' - api 'com.google.firebase:firebase-database-ktx' - api 'com.google.firebase:firebase-dynamic-links-ktx' - api 'com.google.firebase:firebase-firestore-ktx' - api 'com.google.firebase:firebase-messaging-ktx' - api 'com.google.firebase:firebase-perf-ktx' + api platform(libs.firebase.bom) - implementation "androidx.core:core-ktx:$core_version" - //Appsflyer sdk integration - implementation 'com.appsflyer:af-android-sdk:6.3.2' - // for moengage sdk - api 'com.moengage:moe-android-sdk:12.6.02' - implementation 'com.moengage:rich-notification:4.3.2' - api 'com.moengage:push-amp-plus:6.2.1' - implementation 'com.moengage:inapp:6.5.0' - implementation "androidx.room:room-runtime:$room_version" - // Kotlin + coroutines - implementation "androidx.work:work-runtime-ktx:$work_version" + implementation libs.androidx.core.ktx + implementation libs.androidx.room.ktx + implementation libs.androidx.room.runtime + implementation libs.androidx.workRuntime.ktx + implementation libs.appsflyer - // To use Kotlin annotation processing tool (kapt) - kapt "androidx.room:room-compiler:$room_version" + implementation libs.moengage.inapp + implementation libs.moengage.rich.notification - // optional - Kotlin Extensions and Coroutines support for Room - implementation "androidx.room:room-ktx:$room_version" - debugImplementation 'com.github.chuckerteam.chucker:library:3.5.2' - releaseImplementation 'com.github.chuckerteam.chucker:library-no-op:3.5.2' + debugImplementation libs.chucker.library + releaseImplementation libs.chucker.libraryNoOp - testImplementation "androidx.room:room-testing:$room_version" + api libs.firebase.analytics.ktx + api libs.firebase.auth.ktx + api libs.firebase.config.ktx + api libs.firebase.crashlytics.ktx + api libs.firebase.database.ktx + api libs.firebase.dynamic.links.ktx + api libs.firebase.firestore.ktx + api libs.firebase.messaging.ktx + api libs.firebase.perf.ktx + + api libs.moengage.android.sdk + api libs.moengage.push.amp.plus + + ksp libs.androidx.room.compiler + + testImplementation libs.androidx.room.testing } diff --git a/navi-ap/build.gradle b/navi-ap/build.gradle index 5d67903026..e50359a8d6 100644 --- a/navi-ap/build.gradle +++ b/navi-ap/build.gradle @@ -1,10 +1,10 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'com.google.devtools.ksp' version '1.8.10-1.0.9' - id 'com.google.dagger.hilt.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.ksp } android { @@ -35,7 +35,7 @@ android { compose true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } libraryVariants.all { variant -> kotlin.sourceSets { @@ -47,26 +47,31 @@ android { } dependencies { - - implementation androidX.core - implementation androidX.appCompat - - implementation material.comMaterial - - testImplementation junit.testImplementation - androidTestImplementation junit.extJunit - androidTestImplementation junit.testEspresso - testImplementation mockk.ioMock - testImplementation coroutine.coroutineTest - - implementation composeDestination.destinationCore - ksp composeDestination.destinationKsp - - implementation hiltLibs.implementation - implementation androidX.hiltKapt - kapt hiltLibs.androidCompiler - implementation project(":navi-common") implementation project(":finoramic-androidx-sdk") - implementation 'com.jayway.jsonpath:json-path:2.8.0' + + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.hilt.compiler + + implementation libs.android.material + + implementation libs.dagger.hiltAndroid + + implementation libs.jayway.jsonPath + + implementation libs.raamcosta.composeDestinations.core + + kapt libs.dagger.hiltAndroidCompiler + + ksp libs.raamcosta.composeDestinations.ksp + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit + + testImplementation libs.kotlinx.coroutines.test + + testImplementation libs.mockk } diff --git a/navi-base/build.gradle b/navi-base/build.gradle index 36201fe4ce..14e9e06686 100644 --- a/navi-base/build.gradle +++ b/navi-base/build.gradle @@ -1,9 +1,10 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.ksp } android { @@ -45,24 +46,30 @@ android { } dependencies { - api "com.google.code.gson:gson:$gson_version" - implementation 'androidx.security:security-crypto-ktx:1.1.0-alpha03' - api 'com.jakewharton.timber:timber:4.7.1' - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - testImplementation "io.mockk:mockk:$mockk_version" - api "com.squareup.okhttp3:logging-interceptor:$log_interceptor" + implementation libs.androidx.room.ktx + implementation libs.androidx.room.runtime + implementation libs.androidx.security.crypto.ktx - // Room - implementation "androidx.room:room-ktx:$room_version" - implementation "androidx.room:room-runtime:$room_version" - annotationProcessor "androidx.room:room-compiler:$room_version" - kapt "androidx.room:room-compiler:$room_version" - implementation "joda-time:joda-time:$joda_date_time_version" + implementation libs.dagger.hiltAndroid - // Hilt - implementation 'com.google.dagger:hilt-android:2.44' - kapt 'androidx.hilt:hilt-compiler:1.0.0' - kapt 'com.google.dagger:hilt-android-compiler:2.44' + implementation libs.joda.time + + api libs.gson + + api libs.jakewharton.timber + + api libs.okhttp.loggingInterceptor + + kapt libs.androidx.hilt.compiler + + kapt libs.dagger.hiltAndroidCompiler + + ksp libs.androidx.room.compiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit + + testImplementation libs.mockk } diff --git a/navi-chat/build.gradle b/navi-chat/build.gradle index d98a3fb9be..f1b706130e 100644 --- a/navi-chat/build.gradle +++ b/navi-chat/build.gradle @@ -1,9 +1,10 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.ksp } android { @@ -34,7 +35,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -42,26 +43,25 @@ android { } dependencies { - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - implementation 'androidx.legacy:legacy-support-v4:1.0.0' - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" - implementation 'androidx.gridlayout:gridlayout:1.0.0' - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - - // Navi common module implementation project(':navi-common') - // Hilt - implementation hiltLibs.implementation - kapt hiltLibs.kapt + implementation libs.androidx.appcompat + implementation libs.androidx.constraintlayout + implementation libs.androidx.core.ktx + implementation libs.androidx.fragment.ktx + implementation libs.androidx.gridlayout + implementation libs.androidx.legacy.support.v4 - // Fragment - implementation fragmentLibs.ktx + implementation libs.android.material - // Room Database - kapt "androidx.room:room-compiler:$room_version" + implementation libs.dagger.hiltAndroid + + kapt libs.dagger.hiltCompiler + + ksp libs.androidx.room.compiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit } diff --git a/navi-common/build.gradle b/navi-common/build.gradle index 846cbb3210..c80fb20acd 100644 --- a/navi-common/build.gradle +++ b/navi-common/build.gradle @@ -1,9 +1,10 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.ksp id 'hypersdk.plugin' } @@ -36,7 +37,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -51,82 +52,55 @@ static def formatString(String value) { } dependencies { - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" - debugApi 'com.github.chuckerteam.chucker:library:3.5.2' - releaseApi 'com.github.chuckerteam.chucker:library-no-op:3.5.2' - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - - api "org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlin_coroutine_version" - api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutine_version" - - implementation playCore.implementation - - api group: 'joda-time', name: 'joda-time', version: '2.10.5' - api 'org.joda:joda-money:1.0.1' - - implementation hiltLibs.implementation - kapt hiltLibs.kapt - - //JusPay - implementation 'in.juspay:google-pay-client-api:1.0.0' - - // Room Database - kapt "androidx.room:room-compiler:$room_version" - api "androidx.room:room-runtime:$room_version" - api "androidx.room:room-ktx:$room_version" - - // Navigation - implementation "androidx.navigation:navigation-fragment-ktx:$nav_version" - implementation "androidx.navigation:navigation-ui-ktx:$nav_version" - - // Digio Requirements - api "androidx.camera:camera-core:$camera_version" - api "androidx.camera:camera-camera2:$camera_version" - api "androidx.camera:camera-lifecycle:$camera_version" - api "androidx.camera:camera-view:$camera_version" - implementation 'androidx.preference:preference-ktx:1.2.0' - implementation 'com.google.android.gms:play-services-mlkit-face-detection:17.1.0' - - //youtube video player - implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:11.1.0' - - implementation hiltLibs.implementation - kapt hiltLibs.kapt - - implementation hiltLibs.androidTest - kapt hiltLibs.kaptAndroidTest - - api 'com.github.VisitApp:VisitSDK:1.24' - api 'com.github.delight-im:Android-AdvancedWebView:v3.0.0' - - implementation hiltLibs.test - kapt hiltLibs.kaptTest api project(":navi-widgets") + api project(":one-money-sdk") - //ANR-WatchDog - api 'com.github.anrwatchdog:anrwatchdog:1.4.0' + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.constraintlayout + implementation libs.androidx.preference.ktx + implementation libs.androidx.navigation.fragment.ktx + implementation libs.androidx.navigation.ui.ktx - api "com.google.android.gms:play-services-location:21.0.1" + implementation libs.android.gms.playServicesMlkitFaceDetection + implementation libs.android.material + implementation libs.android.play.core.ktx - // Digio: common for esign and kyc - api "com.github.digio-tech:gateway:$digio_version" - // Digio: for adhaar verification - api "com.github.digio-tech:gateway_kyc:$digio_version" - // Digio e-nach - api "com.github.digio-tech:gateway_esign:$digio_version" + implementation libs.dagger.hiltAndroid + implementation libs.dagger.hiltAndroidTesting - // Digitap for Aadhaar kyc - api 'com.digitap.sdk:okyc:1.3.7' + implementation libs.juspay.googlePayClientApi - // compose with lifecycle - api "androidx.lifecycle:lifecycle-runtime-compose:$lifecycle_version" + implementation libs.pierfrancescosoffritti.androidyoutubeplayer + + api libs.androidx.camera.core + api libs.androidx.camera.camera2 + api libs.androidx.camera.lifecycle + api libs.androidx.camera.view + api libs.androidx.lifecycle.runtime.compose + api libs.androidx.room.runtime + api libs.androidx.room.ktx + + api libs.android.gms.playServicesLocation + + api libs.anrwatchdog + + api libs.delight.advancedWebView + + api libs.digio.gateway.common + api libs.digio.gateway.kyc + api libs.digio.gateway.esign + + api libs.digitap + + api libs.joda.time + api libs.joda.money + + api libs.kotlinx.coroutines.android + api libs.kotlinx.coroutines.core + + api libs.visit - // Hyperverge api('co.hyperverge:hypersnapsdk:4.12.1@aar', { transitive = true exclude group: 'com.google.android.gms' @@ -135,13 +109,22 @@ dependencies { exclude group: 'co.hyperverge', module: 'hypersnap-pdfconverter' }) - // Onemoney - api project(":one-money-sdk") + debugApi libs.chucker.library + releaseApi libs.chucker.libraryNoOp - testImplementation "io.mockk:mockk:$mockk_version" + kapt libs.dagger.hiltCompiler + + ksp libs.androidx.room.compiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit + + testImplementation libs.mockk } hyperSdkPlugin { - clientId = "$juspay_hypersdk_clientId" - sdkVersion = "$juspay_hypersdk_sdkVersion" + clientId = 'navi' + sdkVersion = libs.versions.juspay.hypersdk } diff --git a/navi-design/build.gradle b/navi-design/build.gradle index 6c2510714a..2b0dd70877 100644 --- a/navi-design/build.gradle +++ b/navi-design/build.gradle @@ -1,8 +1,8 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' + alias libs.plugins.android.library + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize } android { @@ -33,7 +33,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -42,24 +42,37 @@ android { dependencies { api project(":navi-base") - api platform("androidx.compose:compose-bom:$compose_bom_version") - api 'androidx.compose.foundation:foundation' - api "androidx.compose.material:material" - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - api "androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha10" - implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" - api "androidx.core:core-ktx:$core_version" - api "com.airbnb.android:lottie:$lottie_version" - implementation "com.google.android.material:material:$material_version" - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - api shimmer.implementation - testImplementation "io.mockk:mockk:$mockk_version" - implementation "com.google.accompanist:accompanist-systemuicontroller:0.17.0" - api glideLibs.implementation - kapt glideLibs.kapt - api "io.coil-kt:coil-compose:$coil_compose_version" + api platform(libs.androidx.compose.bom) + + implementation libs.accompanist.systemuicontroller + + implementation libs.androidx.appcompat + implementation libs.androidx.lifecycle.runtime.ktx + + implementation libs.android.material + + api libs.androidx.core.ktx + + api libs.androidx.compose.foundation + api libs.androidx.compose.material + + api libs.androidx.constraintlayoutCompose + + api libs.facebook.shimmer + + api libs.glide.glide + + api libs.lottie + + api libs.coil.compose + + kapt libs.glide.compiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit + + testImplementation libs.mockk } diff --git a/navi-gold/build.gradle b/navi-gold/build.gradle index aba6a272c1..7c6ded1714 100644 --- a/navi-gold/build.gradle +++ b/navi-gold/build.gradle @@ -1,10 +1,10 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'dagger.hilt.android.plugin' - id 'androidx.navigation.safeargs.kotlin' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.navigation } android { @@ -37,7 +37,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -50,31 +50,25 @@ android { } dependencies { - implementation project(":navi-common") implementation project(":navi-chat") implementation project(":navi-payment") - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation 'androidx.constraintlayout:constraintlayout:2.0.4' - // Retrofit + GSON - implementation "com.squareup.retrofit2:retrofit:$retrofit_version" - implementation "com.squareup.retrofit2:converter-gson:$retrofit_version" + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.constraintlayout + implementation libs.androidx.fragment.ktx + implementation libs.androidx.lifecycle.livedata.ktx + implementation libs.androidx.lifecycle.viewmodel.ktx + implementation libs.androidx.multidex - // Fragment - implementation fragmentLibs.ktx + implementation libs.dagger.hiltAndroid - //ViewModel & LiveData - implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" + implementation libs.philjay.mpAndroidChart - // multidex - implementation "androidx.multidex:multidex:2.0.1" + implementation libs.retrofit.converter.gson + implementation libs.retrofit.retrofit - implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' - - implementation hiltLibs.implementation - kapt hiltLibs.kapt + kapt libs.dagger.hiltCompiler } kapt { diff --git a/navi-hl/build.gradle b/navi-hl/build.gradle index c8c3a9cf18..e31729f156 100644 --- a/navi-hl/build.gradle +++ b/navi-hl/build.gradle @@ -1,9 +1,9 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'androidx.navigation.safeargs.kotlin' + alias libs.plugins.android.library + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.navigation } android { @@ -31,7 +31,7 @@ android { viewBinding true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -49,17 +49,12 @@ android { dependencies { implementation project(":navi-common") - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" - implementation 'androidx.legacy:legacy-support-v4:1.0.0' - // Glide - implementation "com.github.bumptech.glide:glide:4.11.0" - // GSON - implementation "com.squareup.retrofit2:converter-gson:2.9.0" - - // multidex - implementation("androidx.multidex:multidex:2.0.1") + implementation libs.androidx.constraintlayout + implementation libs.androidx.legacy.support.v4 + implementation libs.androidx.multidex + implementation libs.retrofit.converter.gson } kapt { diff --git a/navi-insurance/build.gradle b/navi-insurance/build.gradle index e2ed2fc2d7..e9b5583250 100644 --- a/navi-insurance/build.gradle +++ b/navi-insurance/build.gradle @@ -1,9 +1,9 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize } android { @@ -35,7 +35,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -78,54 +78,46 @@ static def formatString(String value) { dependencies { implementation project(":navi-payment") - implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation 'com.google.android.gms:play-services-auth:19.0.0' - implementation 'com.google.android.gms:play-services-auth-api-phone:17.5.0' - implementation 'com.google.android.libraries.places:places:2.6.0' - implementation playCore.implementation + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.constraintlayout + implementation libs.androidx.fragment.ktx + implementation libs.androidx.gridlayout + implementation libs.androidx.lifecycle.runtime.ktx + implementation libs.androidx.security.crypto.ktx - implementation "com.google.android.material:material:$material_version" + implementation libs.android.gms.playServicesAuth + implementation libs.android.gms.playServicesAuthApiPhone + implementation libs.android.gms.playServicesLocation + implementation libs.android.gms.playServicesMaps + implementation libs.android.flexbox + implementation libs.android.material + implementation libs.android.places + implementation libs.android.play.core.ktx - implementation "androidx.security:security-crypto:1.1.0-alpha03" + implementation libs.arch.work.runtime.ktx - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" + implementation libs.dagger.hiltAndroid + implementation libs.dagger.hiltAndroidTesting - implementation 'jp.wasabeef:recyclerview-animators:4.0.1' - implementation 'com.google.android.flexbox:flexbox:3.0.0' + implementation libs.payu.checkoutPro + implementation libs.payu.nativeOtpAssist + implementation libs.picasso - implementation 'com.squareup.picasso:picasso:2.71828' + implementation libs.wasabeef.recyclerview.animators - implementation 'com.google.android.gms:play-services-maps:17.0.0' - implementation 'com.google.android.gms:play-services-location:17.1.0' + implementation libs.shawnLin.numberPicker - implementation 'com.google.android.play:core:1.10.0' + kapt libs.dagger.hiltCompiler - implementation 'io.github.ShawnLin013:number-picker:2.4.13' + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit - implementation androidX.workKtx - implementation 'androidx.gridlayout:gridlayout:1.0.0' + testImplementation libs.arch.core.testing - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - testImplementation "io.mockk:mockk:$mockk_version" - testImplementation 'android.arch.core:core-testing:1.1.1' - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - implementation 'in.payu:payu-checkout-pro:2.0.17' - implementation 'in.payu:native-otp-assist:1.3.4' - implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" + testImplementation libs.junit - implementation hiltLibs.implementation - kapt hiltLibs.kapt - - implementation hiltLibs.androidTest - kapt hiltLibs.kaptAndroidTest - - implementation hiltLibs.test - kapt hiltLibs.kaptTest - - implementation fragmentLibs.ktx + testImplementation libs.mockk } diff --git a/navi-pay/build.gradle b/navi-pay/build.gradle index 8d3c17ee92..9ab5081fa9 100644 --- a/navi-pay/build.gradle +++ b/navi-pay/build.gradle @@ -1,10 +1,10 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'com.google.devtools.ksp' version '1.8.10-1.0.9' - id 'com.google.dagger.hilt.android' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'org.jetbrains.kotlin.kapt' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.ksp } android { @@ -36,7 +36,7 @@ android { compose true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } lintOptions { disable 'NullSafeMutableLiveData' @@ -64,70 +64,52 @@ android { } dependencies { - // Unit tests - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - testImplementation "io.mockk:mockk:$mockk_version" - testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutine_test_version" - - // Android & Google Support - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - implementation "com.google.accompanist:accompanist-systemuicontroller:0.17.0" - implementation platform("androidx.compose:compose-bom:$compose_bom_version") - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" - - // ML Kit for QRScan - implementation 'com.google.mlkit:barcode-scanning:17.1.0' - - // Zxing for QRCode - implementation 'com.google.zxing:core:3.3.3' - - implementation "androidx.camera:camera-mlkit-vision:$camera_version" - - // Others implementation project(":navi-common") - implementation project(":navi-base") - - // Compose Navigation - implementation "io.github.raamcosta.compose-destinations:core:$compose_destinations_version" - ksp "io.github.raamcosta.compose-destinations:ksp:$compose_destinations_version" - - // Hilt - implementation "com.google.dagger:hilt-android:$hilt_version" - kapt 'androidx.hilt:hilt-compiler:1.0.0' - kapt "com.google.dagger:hilt-android-compiler:$hilt_version" - - // Accompanist Permissions - implementation 'com.google.accompanist:accompanist-permissions:0.25.1' - - // Pagination - implementation "androidx.paging:paging-compose:3.2.0" - - // Room - kapt "androidx.room:room-compiler:$room_version" - implementation "androidx.room:room-paging:$room_version" - - // Youtube Player - implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:11.1.0' - - // Shortcut - implementation 'androidx.core:core-google-shortcuts:1.0.0' - - // Constraint Layout - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" - - // SQL Cipher - implementation "net.zetetic:android-database-sqlcipher:4.5.4" - - // NPCI CL UPI devImplementation project(path: ':npci-upi-cl', configuration: 'uat') qaImplementation project(path: ':npci-upi-cl', configuration: 'uat') prodImplementation project(path: ':npci-upi-cl', configuration: 'prod') - implementation "com.google.accompanist:accompanist-pager:$accompanist_pager_version" - implementation "com.google.accompanist:accompanist-pager-indicators:$accompanist_pager_version" + implementation libs.accompanist.pager + implementation libs.accompanist.pagerIndicators + implementation libs.accompanist.permissions + implementation libs.accompanist.systemuicontroller - implementation playCore.implementation + implementation libs.androidx.appcompat + implementation libs.androidx.camera.mlkit.vision + implementation libs.androidx.constraintlayout + implementation libs.androidx.core.ktx + implementation libs.androidx.core.google.shortcuts + implementation libs.androidx.lifecycle.viewmodel.ktx + implementation libs.androidx.paging.compose + implementation libs.androidx.room.paging + + implementation libs.android.material + implementation libs.android.play.core.ktx + + implementation libs.dagger.hiltAndroid + + implementation libs.mlkit.barcodeScanning + + implementation libs.pierfrancescosoffritti.androidyoutubeplayer + + implementation libs.raamcosta.composeDestinations.core + + implementation libs.zetetic.android.database.sqlcipher + + implementation libs.zxing + + kapt libs.androidx.hilt.compiler + + kapt libs.dagger.hiltAndroidCompiler + + ksp libs.androidx.room.compiler + ksp libs.raamcosta.composeDestinations.ksp + + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit + + testImplementation libs.kotlinx.coroutines.test + + testImplementation libs.mockk } diff --git a/navi-payment/build.gradle b/navi-payment/build.gradle index 3d4d4095cc..17db344566 100644 --- a/navi-payment/build.gradle +++ b/navi-payment/build.gradle @@ -1,9 +1,9 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize } android { @@ -33,7 +33,7 @@ android { targetCompatibility JavaVersion.VERSION_1_8 } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -41,36 +41,31 @@ android { } dependencies { - - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - - // Razorpay - api "com.razorpay:checkout:$razor_pay_version" - - // CashFree - api "com.cashfree.pg:api:$cashfree_version" - - // Retrofit - implementation "com.squareup.retrofit2:retrofit:$retrofit_version" - implementation "com.squareup.retrofit2:converter-gson:$retrofit_version" - - // Chucker - debugImplementation "com.github.chuckerteam.chucker:library:$chucker_version" - releaseImplementation "com.github.chuckerteam.chucker:library-no-op:$chucker_version" - - // ViewModel & LiveData - implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" - implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" - implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" - - implementation hiltLibs.implementation - kapt hiltLibs.kapt - - implementation project(":navi-base") api project(":navi-common") + + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.lifecycle.livedata.ktx + implementation libs.androidx.lifecycle.viewmodel.ktx + implementation libs.androidx.lifecycle.runtime.ktx + + implementation libs.android.material + + implementation libs.dagger.hiltAndroid + + implementation libs.retrofit.retrofit + implementation libs.retrofit.converter.gson + + debugImplementation libs.chucker.library + releaseImplementation libs.chucker.libraryNoOp + + api libs.cashfree + api libs.razorpay + + kapt libs.dagger.hiltCompiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit } diff --git a/navi-rr/build.gradle b/navi-rr/build.gradle index 686f3d1882..bf8ea7cebc 100644 --- a/navi-rr/build.gradle +++ b/navi-rr/build.gradle @@ -1,9 +1,9 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize } android { @@ -35,7 +35,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } testOptions { unitTests.returnDefaultValues = true @@ -52,21 +52,29 @@ android { dependencies { implementation project(":navi-common") - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - implementation "androidx.paging:paging-compose:3.2.0" - implementation "androidx.lifecycle:lifecycle-runtime-compose:$lifecycle_version" - implementation glideLibs.implementation - kapt glideLibs.kapt - implementation fragmentLibs.ktx - implementation hiltLibs.implementation - kapt hiltLibs.kapt - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation 'android.arch.core:core-testing:1.1.1' - testImplementation 'android.arch.core:core-testing:1.1.1' - testImplementation "junit:junit:$junit_version" - testImplementation "io.mockk:mockk:$mockk_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" + + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.fragment.ktx + implementation libs.androidx.lifecycle.runtime.compose + implementation libs.androidx.paging.compose + + implementation libs.android.material + + implementation libs.dagger.hiltAndroid + + kapt libs.dagger.hiltCompiler + + kapt libs.glide.compiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + androidTestImplementation libs.arch.core.testing + + testImplementation libs.arch.core.testing + + testImplementation libs.junit + + testImplementation libs.mockk } diff --git a/navi-vkyc/build.gradle b/navi-vkyc/build.gradle index c56e179123..5168bdd4e1 100644 --- a/navi-vkyc/build.gradle +++ b/navi-vkyc/build.gradle @@ -1,9 +1,9 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'com.google.dagger.hilt.android' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize } android { @@ -38,27 +38,24 @@ android { } dependencies { - implementation project(":navi-common") - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" - implementation hiltLibs.implementation - kapt hiltLibs.kapt + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.fragment.ktx - implementation hiltLibs.androidTest - kapt hiltLibs.kaptAndroidTest + implementation libs.android.material - implementation hiltLibs.test - kapt hiltLibs.kaptTest + implementation libs.dagger.hiltAndroid + implementation libs.dagger.hiltAndroidTesting - implementation fragmentLibs.ktx + implementation libs.hms.androidSdk + implementation libs.hms.videoView - implementation "live.100ms:android-sdk:$hms_version" - implementation "live.100ms:video-view:$hms_version" + kapt libs.dagger.hiltCompiler + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit } diff --git a/navi-widgets/build.gradle b/navi-widgets/build.gradle index 1ca38e8a60..bb1cfe6adc 100644 --- a/navi-widgets/build.gradle +++ b/navi-widgets/build.gradle @@ -1,9 +1,9 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'com.google.dagger.hilt.android' - id 'org.jetbrains.kotlin.plugin.parcelize' + alias libs.plugins.android.library + alias libs.plugins.hilt.android + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize } android { @@ -34,7 +34,7 @@ android { incremental true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } kotlinOptions { jvmTarget = '1.8' @@ -42,36 +42,43 @@ android { } dependencies { - - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - implementation 'androidx.legacy:legacy-support-v4:1.0.0' api project(":navi-analytics") - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" api project(":navi-design") - implementation 'androidx.gridlayout:gridlayout:1.0.0' - api "com.navi.medici:uitron:$uitron_version" - // Gson - implementation 'com.squareup.retrofit2:converter-gson:2.9.0' - implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer_version" - implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayer_version" - implementation "com.google.android.exoplayer:exoplayer-hls:$exoplayer_version" - implementation 'com.google.android.flexbox:flexbox:3.0.0' - implementation androidX.workKtx - implementation androidX.hiltWork - kapt androidX.hiltKapt - implementation hiltLibs.implementation - kapt hiltLibs.kapt + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.gridlayout + implementation libs.androidx.hilt.work + implementation libs.androidx.legacy.support.v4 - // Paging Library - api 'androidx.paging:paging-runtime-ktx:3.1.1' - // Easing interpolator - api 'com.github.MasayukiSuda:EasingInterpolator:v1.3.2' + implementation libs.android.exoplayer.core + implementation libs.android.exoplayer.ui + implementation libs.android.exoplayer.hls + implementation libs.android.flexbox + implementation libs.android.material - implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0' - testImplementation "io.mockk:mockk:$mockk_version" + implementation libs.arch.work.runtime.ktx + + implementation libs.dagger.hiltAndroid + + implementation libs.philjay.mpAndroidChart + + implementation libs.retrofit.converter.gson + + api libs.androidx.paging.runtime.ktx + + api libs.masayukiSuda.easingInterpolator + + api libs.navi.uitron + + kapt libs.androidx.hilt.compiler + + kapt libs.dagger.hiltCompiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.mockk + + testImplementation libs.junit } diff --git a/navi_hl_dynamic/build.gradle b/navi_hl_dynamic/build.gradle index d4081fce80..c53dec6091 100644 --- a/navi_hl_dynamic/build.gradle +++ b/navi_hl_dynamic/build.gradle @@ -1,9 +1,9 @@ plugins { - id 'com.android.dynamic-feature' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' - id 'androidx.navigation.safeargs.kotlin' + alias libs.plugins.android.dynamic.feature + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize + alias libs.plugins.navigation } android { @@ -31,7 +31,7 @@ android { viewBinding true } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -65,17 +65,12 @@ dependencies { implementation project(':app') implementation project(":navi-hl") implementation project(":navi-common") - implementation project(":navi-widgets") - implementation project(":navi-design") - implementation "androidx.constraintlayout:constraintlayout:$constraint_layout_version" - implementation 'androidx.legacy:legacy-support-v4:1.0.0' - // okhttp - implementation 'com.squareup.okhttp3:logging-interceptor:4.2.2' - - // Fragment - implementation fragmentLibs.ktx + implementation libs.androidx.constraintlayout + implementation libs.androidx.fragment.ktx + implementation libs.androidx.legacy.support.v4 + implementation libs.okhttp.loggingInterceptor } kapt { diff --git a/navi_pl_dynamic/build.gradle b/navi_pl_dynamic/build.gradle index 6036e870c9..a27e7536c9 100644 --- a/navi_pl_dynamic/build.gradle +++ b/navi_pl_dynamic/build.gradle @@ -1,8 +1,8 @@ plugins { - id 'com.android.dynamic-feature' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' - id 'org.jetbrains.kotlin.plugin.parcelize' + alias libs.plugins.android.dynamic.feature + alias libs.plugins.kotlin.android + alias libs.plugins.kotlin.kapt + alias libs.plugins.kotlin.parcelize } android { @@ -36,7 +36,7 @@ android { jvmTarget = '1.8' } composeOptions { - kotlinCompilerExtensionVersion kotlin_compiler_extension_version + kotlinCompilerExtensionVersion libs.versions.compose.lib.get() } flavorDimensions = ["app"] productFlavors { @@ -54,23 +54,23 @@ android { } dependencies { - implementation platform("androidx.compose:compose-bom:$compose_bom_version") implementation project(":app") - implementation project(":navi-analytics") - implementation project(":navi-common") implementation project(":navi-chat") implementation project(':navi-vkyc') - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" + implementation project(":navi-common") - implementation fragmentLibs.ktx + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.fragment.ktx - implementation glideLibs.implementation - kapt glideLibs.kapt + implementation libs.android.material - implementation androidX.workKtx + implementation libs.arch.work.runtime.ktx + + kapt libs.glide.compiler + + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.junit } diff --git a/pulse/build.gradle b/pulse/build.gradle index 44c997e149..32d02b6537 100644 --- a/pulse/build.gradle +++ b/pulse/build.gradle @@ -1,7 +1,7 @@ plugins { - id 'com.android.library' - id 'org.jetbrains.kotlin.android' - id 'org.jetbrains.kotlin.kapt' + alias libs.plugins.android.library + alias libs.plugins.kotlin.android + alias libs.plugins.ksp } android { @@ -33,29 +33,27 @@ android { dependencies { implementation project(":navi-base") - implementation "androidx.core:core-ktx:$core_version" - implementation "androidx.appcompat:appcompat:$appcompat_version" - implementation "com.google.android.material:material:$material_version" - implementation "androidx.room:room-runtime:$room_version" - // Kotlin + coroutines - implementation "androidx.work:work-runtime-ktx:$work_version" + implementation libs.androidx.appcompat + implementation libs.androidx.core.ktx + implementation libs.androidx.room.ktx + implementation libs.androidx.room.runtime + implementation libs.androidx.workRuntime.ktx - // To use Kotlin annotation processing tool (kapt) - kapt "androidx.room:room-compiler:$room_version" + implementation libs.android.material - // optional - Kotlin Extensions and Coroutines support for Room - implementation "androidx.room:room-ktx:$room_version" + debugImplementation libs.chucker.library + releaseImplementation libs.chucker.libraryNoOp - api "com.squareup.retrofit2:retrofit:$retrofit_version" - api "com.squareup.retrofit2:converter-gson:$retrofit_version" - debugImplementation 'com.github.chuckerteam.chucker:library:3.5.2' - releaseImplementation 'com.github.chuckerteam.chucker:library-no-op:3.5.2' + api libs.retrofit.converter.gson + api libs.retrofit.retrofit - // optional - Test helpers - testImplementation "androidx.room:room-testing:$room_version" - testImplementation "junit:junit:$junit_version" - androidTestImplementation "androidx.test.ext:junit:$android_junit_version" - androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_version" + ksp libs.androidx.room.compiler + androidTestImplementation libs.androidx.test.espresso.core + androidTestImplementation libs.androidx.test.junit + + testImplementation libs.androidx.room.testing + + testImplementation libs.junit }