Skip to content

Commit c850079

Browse files
author
Chuck Greb
committed
Public beta
1 parent ce3883f commit c850079

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+13138
-4
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ env:
55
- ANDROID_API_LEVEL=27
66
- ANDROID_BUILD_TOOLS_VERSION=27.0.3
77

8+
branches:
9+
only:
10+
- master
11+
812
before_cache:
913
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
1014
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
@@ -40,4 +44,5 @@ script:
4044
- bash ./scripts/travis/run_tests.sh
4145

4246
after_success:
47+
- bash ./scripts/travis/coveralls.sh
4348
- bash ./scripts/travis/deploy_to_bintray.sh

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
[![Build Status](https://travis-ci.com/button/button-merchant-android.svg?token=csLDMWdyHoUrMqv9JzCZ&branch=master)](https://travis-ci.com/button/button-merchant-android)
2+
[![Coverage Status](https://coveralls.io/repos/github/button/button-merchant-android-private/badge.svg?branch=master&t=VbxDcA)](https://coveralls.io/github/button/button-merchant-android-private?branch=master)
23

34
# Button Merchant Android
45
An open source client library for Button merchants.
56

6-
**Note:** The Button Merchant library is shared only with priveliged Merchants. Aspects of the documentation, and this repo are incomplete, pending public release. Please see the docs below for usage.
7-
87
## Documentation
98
Documentation for the Merchant Library can be found on the [Button Developer site](https://developer.usebutton.com/guides/merchants/android/open-source-merchant-library).
109

@@ -21,3 +20,8 @@ In order to get the sample app to compile and run, you will need to define your
2120
```groovy
2221
buttonMerchantAppId="__YOUR_APP_ID__"
2322
```
23+
24+
# Contributing
25+
We are looking forward to accepting your contributions to this project very soon!
26+
27+
Until then, if you have something you would like to contribute, please [get in touch]([email protected]).

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ buildscript {
3535
classpath 'com.android.tools.build:gradle:3.1.2'
3636
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
3737
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
38+
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2'
39+
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.2'
3840

3941
// NOTE: Do not place your application dependencies here; they belong
4042
// in the individual module build.gradle files

button-merchant/build.gradle

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
apply plugin: 'com.android.library'
2727
apply plugin: 'com.jfrog.bintray'
28+
apply plugin: 'com.github.kt3k.coveralls'
29+
apply plugin: 'jacoco-android'
2830

2931
group = 'com.usebutton.merchant'
3032
version = libraryVersionName
@@ -56,6 +58,45 @@ android {
5658
}
5759
}
5860

61+
configurations {
62+
jaxDoclet
63+
classpaths
64+
}
65+
66+
task javadocJar(type: Jar, dependsOn: "generateProductionJavadoc") {
67+
classifier = 'javadoc'
68+
from new File(project(':button-merchant').buildDir, "/docs/javadoc/")
69+
}
70+
71+
android.libraryVariants.all { variant ->
72+
73+
task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) {
74+
source = variant.javaCompile.source
75+
title = null
76+
List<File> pathList = new ArrayList<File>()
77+
pathList.add(file('./doclava-1.0.6.jar'))
78+
options.docletpath = pathList
79+
options.classpath = configurations.classpaths.files.asType(List)
80+
options {
81+
doclet "com.google.doclava.Doclava"
82+
bootClasspath new File(System.getenv('JAVA_HOME') + "/jre/lib/rt.jar")
83+
addStringOption "hdf project.name", "Button Merchant Library ${libraryVersionName}"
84+
addStringOption "public"
85+
addStringOption "templatedir", "javadoc"
86+
addStringOption "verbose"
87+
88+
addStringOption "federate jdk", "http://download.oracle.com/javase/6/docs/api/index.html?"
89+
addStringOption "federationxml jdk", "http://doclava.googlecode.com/svn/static/api/openjdk-6.xml"
90+
addStringOption "federate android", "http://d.android.com/reference"
91+
addStringOption "federationxml android", "http://doclava.googlecode.com/svn/static/api/android-10.xml"
92+
}
93+
exclude '**/BuildConfig.java'
94+
exclude '**/R.java'
95+
exclude '**/internal/**'
96+
exclude '**/thirdparty/**'
97+
}
98+
}
99+
59100
dependencies {
60101
implementation fileTree(dir: 'libs', include: ['*.jar'])
61102

@@ -81,7 +122,7 @@ bintray {
81122
override = libraryVersionName.endsWith("-SNAPSHOT")
82123

83124
pkg {
84-
repo = 'Internal'
125+
repo = 'Public'
85126
name = 'android-merchant-library'
86127
desc = "Button Merchant Library for Android v${libraryVersionName}"
87128
userOrg = 'button'
@@ -97,3 +138,11 @@ bintray {
97138
}
98139
}
99140
}
141+
142+
coveralls {
143+
jacocoReportPath = "${buildDir}/reports/jacoco/jacocoTestDebugUnitTestReport/jacocoTestDebugUnitTestReport.xml"
144+
}
145+
146+
tasks.coveralls {
147+
dependsOn 'jacocoTestDebugUnitTestReport'
148+
}

button-merchant/doclava-1.0.6.jar

1.72 MB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#header {
2+
border-bottom: 3px solid #0767a4;
3+
}
4+
5+
#search_filtered .jd-selected {
6+
background-color: #0767a4;
7+
}

docs/history/1.0.0-beta2/assets/customizations.js

Whitespace-only changes.

0 commit comments

Comments
 (0)