Skip to content

Commit

Permalink
Merge pull request #2138 from DataDog/mconstantin/rum-5531/introduce-…
Browse files Browse the repository at this point in the history
…the-stub-feature-module

RUM-5531 Introduce the stub-feature module for testing pyramid
  • Loading branch information
mariusc83 authored Jul 24, 2024
2 parents d1a746b + badaa67 commit 5298894
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
50 changes: 50 additions & 0 deletions reliability/stub-feature/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/

import com.datadog.gradle.config.androidLibraryConfig
import com.datadog.gradle.config.dependencyUpdateConfig
import com.datadog.gradle.config.kotlinConfig
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
// Build
id("com.android.library")
kotlin("android")
id("com.google.devtools.ksp")

// Analysis tools
id("com.github.ben-manes.versions")

// Tests
id("de.mobilej.unmock")
}

android {
namespace = "com.datadog.android.api.feature.stub"
}

dependencies {
implementation(project(":dd-sdk-android-core"))
implementation(libs.kotlin)

// Testing
implementation(project(":tools:unit")) {
attributes {
attribute(
com.android.build.api.attributes.ProductFlavorAttr.of("platform"),
objects.named("jvm")
)
}
}
implementation(libs.bundles.jUnit5)
implementation(libs.bundles.testTools)
implementation(libs.okHttp)
implementation(libs.gson)
}

androidLibraryConfig()
kotlinConfig(jvmBytecodeTarget = JvmTarget.JVM_11)
dependencyUpdateConfig()
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ include(":integrations:dd-sdk-android-trace-coroutines")

// TESTING UTILS
include(":reliability:stub-core")
include(":reliability:stub-feature")

// SINGLE FEATURE INTEGRATION TESTS
include(":reliability:single-fit:logs")
Expand Down

0 comments on commit 5298894

Please sign in to comment.