From dd5206830b61e41213d88f14c8d7a2666e673848 Mon Sep 17 00:00:00 2001 From: Maksym Moroz Date: Fri, 15 Mar 2024 19:58:33 +0200 Subject: [PATCH] feat: enable and configure typesafe project accessors Signed-off-by: Maksym Moroz --- address_search/build.gradle | 6 +++--- analytics/build.gradle | 2 +- bankid/build.gradle | 6 +++--- biometric/build.gradle | 6 +++--- diia_storage/build.gradle | 2 +- doc_driver_license/build.gradle | 6 +++--- documents/build.gradle | 8 +++---- home/build.gradle | 4 ++-- login/build.gradle | 12 +++++------ menu/build.gradle | 8 +++---- notifications/build.gradle | 4 ++-- opensource/build.gradle | 38 ++++++++++++++++----------------- pin/build.gradle | 6 +++--- ps_criminal_cert/build.gradle | 10 ++++----- publicservice/build.gradle | 6 +++--- search/build.gradle | 4 ++-- settings.gradle | 2 ++ splash/build.gradle | 6 +++--- ui_base/build.gradle | 2 +- verification/build.gradle | 6 +++--- web/build.gradle | 4 ++-- 21 files changed, 75 insertions(+), 73 deletions(-) diff --git a/address_search/build.gradle b/address_search/build.gradle index 9527b68..3d3bfc8 100644 --- a/address_search/build.gradle +++ b/address_search/build.gradle @@ -92,9 +92,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':ui_base') - implementation project(':search') + implementation projects.core + implementation projects.uiBase + implementation projects.search implementation deps.fragment_ktx implementation deps.appcompat implementation deps.constraint_layout diff --git a/analytics/build.gradle b/analytics/build.gradle index 11ea873..df2325f 100644 --- a/analytics/build.gradle +++ b/analytics/build.gradle @@ -81,7 +81,7 @@ android { } dependencies { - implementation project(':core') + implementation projects.core implementation deps.hilt_android kapt deps.hilt_android_compiler diff --git a/bankid/build.gradle b/bankid/build.gradle index 9c72095..e9a3721 100644 --- a/bankid/build.gradle +++ b/bankid/build.gradle @@ -91,9 +91,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':verification') - implementation project(':ui_base') + implementation projects.core + implementation projects.verification + implementation projects.uiBase implementation deps.fragment_ktx implementation deps.appcompat implementation deps.constraint_layout diff --git a/biometric/build.gradle b/biometric/build.gradle index be1b4ce..cb4df34 100644 --- a/biometric/build.gradle +++ b/biometric/build.gradle @@ -87,9 +87,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':ui_base') - implementation project(':diia_storage') + implementation projects.core + implementation projects.uiBase + implementation projects.diiaStorage implementation deps.fragment_ktx implementation deps.appcompat implementation deps.material diff --git a/diia_storage/build.gradle b/diia_storage/build.gradle index 2de7471..32cc918 100644 --- a/diia_storage/build.gradle +++ b/diia_storage/build.gradle @@ -86,7 +86,7 @@ android { dependencies { implementation deps.security_crypto - implementation project(':core') + implementation projects.core implementation deps.moshi implementation deps.hilt_android diff --git a/doc_driver_license/build.gradle b/doc_driver_license/build.gradle index 1dfbc51..6bbbe19 100644 --- a/doc_driver_license/build.gradle +++ b/doc_driver_license/build.gradle @@ -94,9 +94,9 @@ dependencies { implementation deps.activity_ktx implementation deps.fragment_ktx implementation deps.appcompat - implementation project(path: ':ui_base') - implementation project(path: ':core') - implementation project(path: ':documents') + implementation projects.uiBase + implementation projects.core + implementation projects.documents // Moshi implementation deps.moshi implementation deps.moshi_adapters diff --git a/documents/build.gradle b/documents/build.gradle index c1d2caa..56569ea 100644 --- a/documents/build.gradle +++ b/documents/build.gradle @@ -88,10 +88,10 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':diia_storage') - implementation project(':web') - implementation project(path: ':ui_base') + implementation projects.core + implementation projects.diiaStorage + implementation projects.web + implementation projects.uiBase implementation deps.activity_ktx implementation deps.fragment_ktx implementation deps.appcompat diff --git a/home/build.gradle b/home/build.gradle index 962120b..cef2306 100644 --- a/home/build.gradle +++ b/home/build.gradle @@ -90,8 +90,8 @@ android { dependencies { - implementation project(':core') - implementation project(':diia_storage') + implementation projects.core + implementation projects.diiaStorage implementation deps.activity_ktx implementation deps.fragment_ktx implementation deps.appcompat diff --git a/login/build.gradle b/login/build.gradle index cbd3623..79fa279 100644 --- a/login/build.gradle +++ b/login/build.gradle @@ -87,12 +87,12 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':web') - implementation project(':pin') - implementation project(':verification') - implementation project(':ui_base') - implementation project(':diia_storage') + implementation projects.core + implementation projects.web + implementation projects.pin + implementation projects.verification + implementation projects.uiBase + implementation projects.diiaStorage implementation deps.fragment_ktx implementation deps.appcompat implementation deps.material diff --git a/menu/build.gradle b/menu/build.gradle index e4a33f0..27cfc0f 100644 --- a/menu/build.gradle +++ b/menu/build.gradle @@ -89,10 +89,10 @@ android { dependencies { - implementation project(path: ':ui_base') - implementation project(':core') - implementation project(':diia_storage') - implementation project(path: ':web') + implementation projects.uiBase + implementation projects.core + implementation projects.diiaStorage + implementation projects.web implementation deps.fragment_ktx implementation deps.appcompat diff --git a/notifications/build.gradle b/notifications/build.gradle index f54f820..9c80a34 100644 --- a/notifications/build.gradle +++ b/notifications/build.gradle @@ -89,8 +89,8 @@ android { dependencies { - implementation project(':core') - implementation project(':analytics') + implementation projects.core + implementation projects.analytics implementation project(':diia_storage') implementation deps.activity_ktx diff --git a/opensource/build.gradle b/opensource/build.gradle index 918a98b..8b3f664 100644 --- a/opensource/build.gradle +++ b/opensource/build.gradle @@ -137,25 +137,25 @@ android { } dependencies { - implementation project(':core') - implementation project(':splash') - implementation project(':home') - implementation project(':menu') - implementation project(':web') - implementation project(':verification') - implementation project(':bankid') - implementation project(':login') - implementation project(':publicservice') - implementation project(':ps_criminal_cert') - implementation project(':pin') - implementation project(':biometric') - implementation project(':notifications') - implementation project(':analytics') - implementation project(':search') - implementation project(':address_search') - implementation project(':diia_storage') - implementation project(':documents') - implementation project(':doc_driver_license') + implementation projects.core + implementation projects.splash + implementation projects.home + implementation projects.menu + implementation projects.web + implementation projects.verification + implementation projects.bankid + implementation projects.login + implementation projects.publicservice + implementation projects.psCriminalCert + implementation projects.pin + implementation projects.biometric + implementation projects.notifications + implementation projects.analytics + implementation projects.search + implementation projects.addressSearch + implementation projects.diiaStorage + implementation projects.documents + implementation projects.docDriverLicense implementation deps.activity_ktx implementation deps.fragment_ktx implementation deps.legacy_support diff --git a/pin/build.gradle b/pin/build.gradle index 778463b..c0f5b5a 100644 --- a/pin/build.gradle +++ b/pin/build.gradle @@ -87,9 +87,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':ui_base') - implementation project(':diia_storage') + implementation projects.core + implementation projects.uiBase + implementation projects.diiaStorage implementation deps.fragment_ktx implementation deps.appcompat diff --git a/ps_criminal_cert/build.gradle b/ps_criminal_cert/build.gradle index 6142207..f7d8593 100644 --- a/ps_criminal_cert/build.gradle +++ b/ps_criminal_cert/build.gradle @@ -93,14 +93,14 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) + implementation projects.uiBase + implementation projects.core + implementation projects.publicservice + implementation projects.addressSearch + implementation projects.search implementation deps.activity_ktx implementation deps.fragment_ktx implementation deps.appcompat - implementation project(path: ':ui_base') - implementation project(path: ':core') - implementation project(path: ':publicservice') - implementation project(path: ':address_search') - implementation project(path: ':search') //lifecycle implementation deps.lifecycle_extensions implementation deps.lifecycle_livedata_ktx diff --git a/publicservice/build.gradle b/publicservice/build.gradle index 10c08e9..b3783ea 100644 --- a/publicservice/build.gradle +++ b/publicservice/build.gradle @@ -94,12 +94,12 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) + implementation projects.uiBase + implementation projects.core + implementation projects.diiaStorage implementation deps.activity_ktx implementation deps.fragment_ktx implementation deps.appcompat - implementation project(path: ':ui_base') - implementation project(path: ':core') - implementation project(path: ':diia_storage') //lifecycle implementation deps.lifecycle_extensions implementation deps.lifecycle_livedata_ktx diff --git a/search/build.gradle b/search/build.gradle index 3c30eb7..3ba703a 100644 --- a/search/build.gradle +++ b/search/build.gradle @@ -91,8 +91,8 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':ui_base') + implementation projects.core + implementation projects.uiBase implementation deps.fragment_ktx implementation deps.appcompat implementation deps.constraint_layout diff --git a/settings.gradle b/settings.gradle index b30b889..df4ced5 100644 --- a/settings.gradle +++ b/settings.gradle @@ -21,3 +21,5 @@ include ':analytics' include ':diia_storage' include ':documents' include ':doc_driver_license' + +enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") \ No newline at end of file diff --git a/splash/build.gradle b/splash/build.gradle index db9d09a..af7763b 100644 --- a/splash/build.gradle +++ b/splash/build.gradle @@ -90,9 +90,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':ui_base') - implementation project(':diia_storage') + implementation projects.core + implementation projects.uiBase + implementation projects.diiaStorage implementation deps.fragment_ktx implementation deps.appcompat implementation deps.constraintlayout diff --git a/ui_base/build.gradle b/ui_base/build.gradle index 0f22a8d..8dbc87b 100644 --- a/ui_base/build.gradle +++ b/ui_base/build.gradle @@ -104,7 +104,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') + implementation projects.core implementation deps.activity_compose implementation deps.core_ktx implementation deps.appcompat diff --git a/verification/build.gradle b/verification/build.gradle index af0ae9d..349c478 100644 --- a/verification/build.gradle +++ b/verification/build.gradle @@ -90,9 +90,9 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) - implementation project(':core') - implementation project(':ui_base') - implementation project(':diia_storage') + implementation projects.core + implementation projects.uiBase + implementation projects.diiaStorage implementation deps.fragment_ktx implementation deps.appcompat implementation deps.constraint_layout diff --git a/web/build.gradle b/web/build.gradle index 2df6e99..21f924b 100644 --- a/web/build.gradle +++ b/web/build.gradle @@ -86,8 +86,8 @@ android { dependencies { - implementation project(':core') - implementation project(path: ':ui_base') + implementation projects.core + implementation projects.uiBase implementation deps.fragment_ktx implementation deps.appcompat