Skip to content

Commit 2dccd20

Browse files
authored
Merge branch 'apple:main' into feature_1.0
2 parents 11dce7c + 6aa5f6f commit 2dccd20

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 2.0.0
4+
- Incorporate changes for App Store Server API v1.10.1 [https://github.com/apple/app-store-server-library-java/pull/77]
5+
- This change is a breaking change, as the datatype of the price field has changed from Integer to Long
6+
37
## Version 1.1.0
48
- Support App Store Server Notifications v2.10 [https://github.com/apple/app-store-server-library-java/pull/74]
59
- Require appAppleId in SignedDataVerifier for the Production environment [https://github.com/apple/app-store-server-library-java/pull/68]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Java server library for the [App Store Server API](https://developer.apple.c
1515

1616
### Gradle
1717
```groovy
18-
implementation 'com.apple.itunes.storekit:app-store-server-library:1.1.0'
18+
implementation 'com.apple.itunes.storekit:app-store-server-library:2.0.0'
1919
2020
```
2121

@@ -24,7 +24,7 @@ implementation 'com.apple.itunes.storekit:app-store-server-library:1.1.0'
2424
<dependency>
2525
<groupId>com.apple.itunes.storekit</groupId>
2626
<artifactId>app-store-server-library</artifactId>
27-
<version>1.1.0</version>
27+
<version>2.0.0</version>
2828
</dependency>
2929
```
3030

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=1.1.0
1+
version=2.0.0
22
group=com.apple.itunes.storekit

src/main/java/com/apple/itunes/storekit/client/AppStoreServerAPIClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
public class AppStoreServerAPIClient {
4545
private static final String PRODUCTION_URL = "https://api.storekit.itunes.apple.com";
4646
private static final String SANDBOX_URL = "https://api.storekit-sandbox.itunes.apple.com";
47-
private static final String USER_AGENT = "app-store-server-library/java/1.1.0";
47+
private static final String USER_AGENT = "app-store-server-library/java/2.0.0";
4848
private static final MediaType JSON = MediaType.parse("application/json; charset=utf-8");
4949

5050
private final OkHttpClient httpClient;

src/main/java/com/apple/itunes/storekit/verification/SignedDataVerifier.java

+5
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public SignedDataVerifier(Set<InputStream> rootCertificates, String bundleId, Lo
6262

6363
/**
6464
* Verifies and decodes a signedTransaction obtained from the App Store Server API, an App Store Server Notification, or from a device
65+
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/jwstransaction">JWSTransaction</a>
6566
*
6667
* @param signedTransaction The signedTransaction field
6768
* @return The decoded transaction info after verification
@@ -80,6 +81,7 @@ public JWSTransactionDecodedPayload verifyAndDecodeTransaction(String signedTran
8081

8182
/**
8283
* Verifies and decodes a signedRenewalInfo obtained from the App Store Server API, an App Store Server Notification, or from a device
84+
* @see <a href="https://developer.apple.com/documentation/appstoreserverapi/jwsrenewalinfo">JWSRenewalInfo</a>
8385
*
8486
* @param signedRenewalInfo The signedRenewalInfo field
8587
* @return The decoded renewal info after verification
@@ -95,6 +97,7 @@ public JWSRenewalInfoDecodedPayload verifyAndDecodeRenewalInfo(String signedRene
9597

9698
/**
9799
* Verifies and decodes an App Store Server Notification signedPayload
100+
* @see <a href="https://developer.apple.com/documentation/appstoreservernotifications/signedpayload">signedPayload</a>
98101
*
99102
* @param signedPayload The payload received by your server
100103
* @return The decoded payload after verification
@@ -142,6 +145,8 @@ protected void verifyNotification(String bundleId, Long appAppleId, Environment
142145

143146
/**
144147
* Verifies and decodes a signed AppTransaction
148+
* @see <a href="https://developer.apple.com/documentation/storekit/apptransaction">AppTransaction</a>
149+
*
145150
* @param signedAppTransaction The signed AppTransaction
146151
* @return The decoded AppTransaction after validation
147152
* @throws VerificationException Thrown if the data could not be verified

0 commit comments

Comments
 (0)