Skip to content

Commit

Permalink
Provide documentation for legacy library build of android-xml-run-lis…
Browse files Browse the repository at this point in the history
…tener (#22)

* Update artifact naming

* Update documentation for legacy builds, bump version to 0.4.0
  • Loading branch information
schroepf authored Apr 9, 2019
1 parent eac4e81 commit 11ff6fc
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 11 deletions.
Binary file added android/.idea/caches/gradle_models.ser
Binary file not shown.
14 changes: 10 additions & 4 deletions android/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion android/android-xml-run-listener/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ An [AndroidJUnitRunner](https://developer.android.com/reference/android/support/

Add dependency to `build.gradle`:

### AndroidX compatible

```
androidTestCompile 'de.schroepf:android-xml-run-listener:0.4.0'
```

### Legacy build (pre AndroidX)

```
androidTestCompile 'de.schroepf:android-xml-run-listener:0.3.1'
androidTestCompile 'de.schroepf:android-xml-run-listener-legacy:0.4.0'
```


## Activating the XmlRunListener

Add the following to your app's `build.gradle` file's `defaultConfig` section:
Expand Down
14 changes: 11 additions & 3 deletions android/android-xml-run-listener/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ apply plugin: 'com.github.dcendents.android-maven'

// This is the library version used when deploying the artifact
group = "de.schroepf"
version = "0.3.1"
version = "0.4.0"

def siteUrl = 'https://github.com/schroepf/TestLab/tree/master/android/android-xml-run-listener'
def gitUrl = 'https://github.com/schroepf/TestLab'
def artifactGroup = 'de.schroepf'
def artifactIdentifier = 'android-xml-run-listener'
def artifactName = "$artifactGroup:$artifactIdentifier"

// This is the library version used when deploying the artifact
group = artifactGroup
version = "0.4.0"

android {
compileSdkVersion 28
Expand Down Expand Up @@ -41,7 +47,9 @@ install {
packaging 'aar'

// Add your description here
name 'de.schroepf:android-xml-run-listener'
name artifactName
groupId artifactGroup
artifactId artifactIdentifier
description = 'JUnit XML RunListener for android instrumentation tests'
url siteUrl

Expand Down Expand Up @@ -110,7 +118,7 @@ bintray {
configurations = ['archives']
pkg {
repo = 'schroepf'
name = 'android-xml-run-listener'
name = artifactIdentifier
websiteUrl = siteUrl
vcsUrl = gitUrl
publish = true
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
androidx_test_runner_version = '1.1.0'
androidx_test_rules_version = '1.1.0'
androidx_test_orchestrator_version = '1.1.0'
android_xml_run_listener_version = '0.3.0'
android_xml_run_listener_version = '0.4.0'
androidx_espresso_version = '3.1.0'
junit_version = '4.12'
}
Expand Down
4 changes: 2 additions & 2 deletions android/sampleapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ dependencies {

// use git version
androidTestImplementation project(':android-test-rules')
androidTestImplementation project(':android-xml-run-listener')
// androidTestImplementation project(':android-xml-run-listener')

// use published version
// androidTestImplementation "de.schroepf:android-xml-run-listener:$android_xml_run_listener_version"
androidTestImplementation "de.schroepf:android-xml-run-listener:$android_xml_run_listener_version"

// Android Testing Support Library's runner and rules
androidTestImplementation("androidx.test.espresso:espresso-core:$androidx_espresso_version") {
Expand Down

0 comments on commit 11ff6fc

Please sign in to comment.