From 5c994ebfddaa6592f4cfc40523c94f477e0ef67a Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 8 Aug 2022 10:21:34 +0100 Subject: [PATCH] lifting the phonenumber dependency to the deps file and exposing as api for the app level module --- dependencies.gradle | 2 ++ matrix-sdk-android/build.gradle | 3 +-- vector/build.gradle | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index d32d0d10ac..e25e7b42cb 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -85,6 +85,8 @@ ext.libs = [ 'material' : "com.google.android.material:material:1.6.1", 'appdistributionApi' : "com.google.firebase:firebase-appdistribution-api-ktx:$appDistribution", 'appdistribution' : "com.google.firebase:firebase-appdistribution:$appDistribution", + // Phone number https://github.com/google/libphonenumber + 'phonenumber' : "com.googlecode.libphonenumber:libphonenumber:8.12.54" ], dagger : [ 'dagger' : "com.google.dagger:dagger:$dagger", diff --git a/matrix-sdk-android/build.gradle b/matrix-sdk-android/build.gradle index faa798c9dc..7b06edb530 100644 --- a/matrix-sdk-android/build.gradle +++ b/matrix-sdk-android/build.gradle @@ -199,8 +199,7 @@ dependencies { // Exif data handling implementation libs.apache.commonsImaging - // Phone number https://github.com/google/libphonenumber - implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.54' + implementation libs.google.phonenumber testImplementation libs.tests.junit // Note: version sticks to 1.9.2 due to https://github.com/mockk/mockk/issues/281 diff --git a/vector/build.gradle b/vector/build.gradle index 0fd885d1cd..f924af9a52 100644 --- a/vector/build.gradle +++ b/vector/build.gradle @@ -184,8 +184,7 @@ dependencies { // Debug api 'com.facebook.stetho:stetho:1.6.0' - // Phone number https://github.com/google/libphonenumber - implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.54' + api libs.google.phonenumber // FlowBinding implementation libs.github.flowBinding