Skip to content

Commit

Permalink
fix(libre-build) skip spurious Firebase and GCM dependencies
Browse files Browse the repository at this point in the history
Fixes: jitsi#8353
  • Loading branch information
saghul committed Jan 12, 2021
1 parent 916208a commit 1ec8f70
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ dependencies {
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'com.squareup.duktape:duktape-android:1.3.0'

if (!rootProject.ext.libreBuild) {
if (rootProject.ext.libreBuild) {
implementation(project(':react-native-device-info')) {
exclude group: 'com.google.firebase'
exclude group: 'com.google.android.gms'
exclude group: 'com.android.installreferrer'
}
} else {
implementation project(':react-native-device-info')
implementation(project(":react-native-google-signin")) {
exclude group: 'com.google.android.gms'
exclude group: 'androidx'
Expand All @@ -59,7 +66,6 @@ dependencies {
implementation project(':react-native-calendar-events')
implementation project(':react-native-community_netinfo')
implementation project(':react-native-default-preference')
implementation project(':react-native-device-info')
implementation project(':react-native-immersive')
implementation project(':react-native-keep-awake')
implementation project(':react-native-linear-gradient')
Expand Down

0 comments on commit 1ec8f70

Please sign in to comment.