From 1d9fb138096a89fe025480babe74eb49c3f70db3 Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 11 Aug 2023 19:26:53 +0930 Subject: [PATCH] Move plugin to huawei flavor --- app/build.gradle | 4 ++++ app/{ => src/huawei}/agconnect-services.json | 0 libsession/build.gradle | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) rename app/{ => src/huawei}/agconnect-services.json (100%) diff --git a/app/build.gradle b/app/build.gradle index 91ee23fbb4..6d6f0c9b0c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -27,6 +27,10 @@ apply plugin: 'kotlin-parcelize' apply plugin: 'kotlinx-serialization' apply plugin: 'dagger.hilt.android.plugin' +if (getGradle().getStartParameter().getTaskRequests().toString().contains("Huawei")){ + apply plugin: 'com.huawei.agconnect' +} + configurations.all { exclude module: "commons-logging" } diff --git a/app/agconnect-services.json b/app/src/huawei/agconnect-services.json similarity index 100% rename from app/agconnect-services.json rename to app/src/huawei/agconnect-services.json diff --git a/libsession/build.gradle b/libsession/build.gradle index 5dc67f525f..3cfb66cd32 100644 --- a/libsession/build.gradle +++ b/libsession/build.gradle @@ -2,7 +2,6 @@ plugins { id 'com.android.library' id 'kotlin-android' id 'kotlinx-serialization' - id 'com.huawei.agconnect' } android {