Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Closes #3861: Add a component for synchronizing Application Services'…
Browse files Browse the repository at this point in the history
… unit testing dependencies used in Android Components.
  • Loading branch information
rocketsroger committed Aug 20, 2019
1 parent e341f93 commit 1c439bf
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildconfig.yml
Expand Up @@ -256,6 +256,10 @@ projects:
path: components/support/android-test
description: 'A collection of helpers for testing components from instrumented (on device) tests.'
publish: true
support-test-appservices:
path: components/support/test-appservices
description: 'A component for synchronizing Application Services'' unit testing dependencies used in Android Components.'
publish: true
support-utils:
path: components/support/utils
description: 'A collection of generic helper classes.'
Expand Down
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -199,6 +199,8 @@ _Supporting components with generic helper code._

* 🔵 [**Test**](components/support/test/README.md) - A collection of helpers for testing components in local unit tests (`src/test`).

* 🔵 [**Test Appservices**](components/support/test-appservices/README.md) - A component for synchronizing Application Services' unit testing dependencies used in Android Components.

* 🔵 [**Utils**](components/support/utils/README.md) - Generic utility classes to be shared between projects.

## Standalone libraries
Expand Down
19 changes: 19 additions & 0 deletions components/support/test-appservices/README.md
@@ -0,0 +1,19 @@
# [Android Components](../../../README.md) > Support > Test Appservices

A component for synchronizing Application Services' unit testing dependencies used in Android Components.

## Usage

### Setting up the dependency

Use Gradle to download the library from [maven.mozilla.org](https://maven.mozilla.org/) ([Setup repository](../../../README.md#maven-repository)):

```Groovy
implementation "org.mozilla.components:support-test-appservices:{latest-version}"
```

## License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/
35 changes: 35 additions & 0 deletions components/support/test-appservices/build.gradle
@@ -0,0 +1,35 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion config.compileSdkVersion

defaultConfig {
minSdkVersion config.minSdkVersion
targetSdkVersion config.targetSdkVersion
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt')
}
}

lintOptions {
warningsAsErrors true
abortOnError true
}
}

dependencies {
api Dependencies.mozilla_full_megazord_forUnitTests
}

apply from: '../../../publish.gradle'
ext.configurePublish(config.componentsGroupId, archivesBaseName, project.ext.description)

@@ -0,0 +1,5 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mozilla.components.support.test.appservices" />
3 changes: 3 additions & 0 deletions docs/changelog.md
Expand Up @@ -12,6 +12,9 @@ permalink: /changelog/
* [Gecko](https://github.com/mozilla-mobile/android-components/blob/master/buildSrc/src/main/java/Gecko.kt)
* [Configuration](https://github.com/mozilla-mobile/android-components/blob/master/buildSrc/src/main/java/Config.kt)

* **support-test-appservices**
* 🆕 New component for synchronizing Application Services' unit testing dependencies used in Android Components.

# 9.0.0

* [Commits](https://github.com/mozilla-mobile/android-components/compare/v8.0.0...v9.0.0)
Expand Down

0 comments on commit 1c439bf

Please sign in to comment.