From a654b24dc0e654cb03ea2b86c9f1846ccb815fdc Mon Sep 17 00:00:00 2001 From: GOVINDDIXIT Date: Tue, 28 Jul 2020 19:30:53 +0530 Subject: [PATCH] update gradle --- android/app/build.gradle | 12 +++++++++--- android/build.gradle | 4 ++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index 28437b71d..0b7a9dd02 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -1,10 +1,10 @@ def taskRequests = getGradle().getStartParameter().getTaskRequests().toString().toLowerCase() -def isPlay = !taskRequests.contains("foss") +def isFoss = taskRequests.contains("foss") apply plugin: "com.android.application" apply plugin: 'kotlin-android' -if (isPlay) { +if (!isFoss) { apply plugin: "io.fabric" apply plugin: "com.google.firebase.firebase-perf" apply plugin: 'com.bugsnag.android.gradle' @@ -196,6 +196,12 @@ android { dimension = "type" buildConfigField "boolean", "PLAY_BUILD", "true" } + official { + dimension = "type" + applicationId = "chat.rocket.android" + resValue "string", "app_name", "Rocket Chat" + buildConfigField "boolean", "PLAY_BUILD", "true" + } } applicationVariants.all { variant -> @@ -271,6 +277,6 @@ task copyDownloadableDepsToLibs(type: Copy) { } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) -if (isPlay) { +if (!isFoss) { apply plugin: 'com.google.gms.google-services' } diff --git a/android/build.gradle b/android/build.gradle index f8ba12ada..5ba4f467b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -19,10 +19,10 @@ buildscript { } def taskRequests = getGradle().getStartParameter().getTaskRequests().toString().toLowerCase() - def isPlay = !taskRequests.contains("foss") + def isFoss = taskRequests.contains("foss") dependencies { - if (isPlay) { + if (!isFoss) { classpath 'com.google.gms:google-services:4.2.0' classpath 'io.fabric.tools:gradle:1.28.1' classpath 'com.google.firebase:perf-plugin:1.2.1'