Skip to content

Commit bb7c818

Browse files
Merge pull request #79 from pokepay/version-2.0.18
Update version to 2.0.18
2 parents 054767d + bd32289 commit bb7c818

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pokepaylib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ android {
1616
minSdkVersion 26
1717
targetSdkVersion 32
1818
versionCode 0
19-
versionName "2.0.17"
19+
versionName "2.0.18"
2020

2121
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
2222

@@ -66,7 +66,7 @@ uploadArchives {
6666
repositories {
6767
mavenDeployer {
6868
repository url: "file://${repo.absolutePath}"
69-
pom.version = '2.0.17' // version
69+
pom.version = '2.0.18' // version
7070
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
7171

7272
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {

pokepaylib/src/main/java/jp/pokepay/pokepaylib/ExternalServiceAPI/ExternalServiceRequest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
package jp.pokepay.pokepaylib.ExternalServiceAPI;
22

3+
import java.util.HashMap;
34
import java.util.Map;
45

56
import jp.pokepay.pokepaylib.BankAPI.BankRequestError;
7+
import jp.pokepay.pokepaylib.BuildConfig;
68
import jp.pokepay.pokepaylib.OAuthAPI.OAuthRequestError;
79
import jp.pokepay.pokepaylib.ProcessingError;
810
import jp.pokepay.pokepaylib.Request;
@@ -17,6 +19,8 @@ protected Map<String, Object> parameters() {
1719
}
1820

1921
protected <T> T send(Class<T> cls) throws ProcessingError, ExternalServiceRequestError {
22+
Map<String, String> headers = new HashMap<String, String>();
23+
headers.put("X-SDK-Version", BuildConfig.VERSION_NAME);
2024
try {
2125
return Request.send(cls, ExternalServiceRequestError.class, path(), method(), parameters());
2226
} catch (BankRequestError | OAuthRequestError e) {

0 commit comments

Comments
 (0)