From 296c5d743f825122cb6ec003a442be35f9895aeb Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 17 Aug 2023 22:34:13 +0930 Subject: [PATCH] Limit scope of huawei dependencies --- build.gradle | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 90266d56cb..2cb531a7c1 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,12 @@ buildscript { repositories { google() mavenCentral() - maven { url 'https://developer.huawei.com/repo/' } + if (project.hasProperty('huawei')) maven { + url 'https://developer.huawei.com/repo/' + content { + includeGroup 'com.huawei.agconnect' + } + } } dependencies { @@ -58,7 +63,15 @@ allprojects { } jcenter() maven { url "https://jitpack.io" } - if (project.hasProperty('huawei')) maven { url 'https://developer.huawei.com/repo/' } + if (project.hasProperty('huawei')) maven { + url 'https://developer.huawei.com/repo/' + content { + includeGroup 'com.huawei.android.hms' + includeGroup 'com.huawei.agconnect' + includeGroup 'com.huawei.hmf' + includeGroup 'com.huawei.hms' + } + } } project.ext {