Browse Source

Ensure that FDroid build will not include Firebase push provider.

`allLibrariesImpl()` is also used by the midule uitest, and in this case `gplayImplementation` cannot be found. Since the push provider modules do not contain any ui, it's fine to move the dependency declaration to the app module.
pull/2213/head
Benoit Marty 8 months ago committed by Benoit Marty
parent
commit
31fe516a49
  1. 5
      app/build.gradle.kts
  2. 4
      plugins/src/main/kotlin/extension/DependencyHandleScope.kt

5
app/build.gradle.kts

@ -237,6 +237,11 @@ dependencies {
implementation(projects.appconfig) implementation(projects.appconfig)
anvil(projects.anvilcodegen) anvil(projects.anvilcodegen)
// Comment to not include firebase in the project
"gplayImplementation"(projects.libraries.pushproviders.firebase)
// Comment to not include unified push in the project
implementation(projects.libraries.pushproviders.unifiedpush)
implementation(libs.appyx.core) implementation(libs.appyx.core)
implementation(libs.androidx.splash) implementation(libs.androidx.splash)
implementation(libs.androidx.core) implementation(libs.androidx.core)

4
plugins/src/main/kotlin/extension/DependencyHandleScope.kt

@ -87,10 +87,6 @@ fun DependencyHandlerScope.allLibrariesImpl() {
implementation(project(":libraries:permissions:impl")) implementation(project(":libraries:permissions:impl"))
implementation(project(":libraries:push:impl")) implementation(project(":libraries:push:impl"))
implementation(project(":libraries:push:impl")) implementation(project(":libraries:push:impl"))
// Comment to not include firebase in the project
implementation(project(":libraries:pushproviders:firebase"))
// Comment to not include unified push in the project
implementation(project(":libraries:pushproviders:unifiedpush"))
implementation(project(":libraries:featureflag:impl")) implementation(project(":libraries:featureflag:impl"))
implementation(project(":libraries:pushstore:impl")) implementation(project(":libraries:pushstore:impl"))
implementation(project(":libraries:preferences:impl")) implementation(project(":libraries:preferences:impl"))

Loading…
Cancel
Save