Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- Incorporate changes for Retention Messaging API v1.3 and 1.4 [https://github.com/apple/app-store-server-library-java/pull/242]

## Version 5.0.0
- Incorporate changes for App Store Server API v1.19 [https://github.com/apple/app-store-server-library-java/pull/219] from @riyazpanjwani
- Incorporate changes for App Store Server API v1.19 [https://github.com/apple/app-store-server-library-java/pull/220] from @riyazpanjwani
- This changes ConsumptionRequest and several dependent types to the V2 variant, while the V1 version was created as a new type, to align with documentation, which is a breaking change

## Version 4.0.0
Expand Down Expand Up @@ -49,7 +49,7 @@

## Version 2.2.0
- Incorporate changes for App Store Server API v1.12 and App Store Server Notifications v2.12 [https://github.com/apple/app-store-server-library-java/pull/103]
- Handle null appAccountToken appropriately in PromotionalOfferSignatureCreator [https://github.com/apple/app-store-server-library-java/pull/100]
- Handle null appAccountToken appropriately in ConsumptionRequest [https://github.com/apple/app-store-server-library-java/pull/100]

## Version 2.1.0
- Incorporate changes for App Store Server API v1.11 and App Store Server Notifications v2.11 [https://github.com/apple/app-store-server-library-java/pull/94]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Apple App Store Server Java Library
The Java server library for the [App Store Server API](https://developer.apple.com/documentation/appstoreserverapi), [App Store Server Notifications](https://developer.apple.com/documentation/appstoreservernotifications), [Retention Messaging API](https://developer.apple.com/documentation/retentionmessaging), and [Advanced Commerce API](https://developer.apple.com/documentation/AdvancedCommerceAPI). Also available in [Swift](https://github.com/apple/app-store-server-library-swift), [Python](https://github.com/apple/app-store-server-library-python), and [Node.js](https://github.com/apple/app-store-server-library-node).
The Java server library for the [App Store Server API](https://developer.apple.com/documentation/appstoreserverapi), [App Store Server Notifications](https://developer.apple.com/documentation/appstoreservernotifications), [Retention Messaging API](https://developer.apple.com/documentation/retentionmessaging), and [Advanced Commerce API](https://developer.apple.com/documentation/advancedcommerceapi). Also available in [Swift](https://github.com/apple/app-store-server-library-swift), [Python](https://github.com/apple/app-store-server-library-python), and [Node.js](https://github.com/apple/app-store-server-library-node).

## Table of Contents
1. [Installation](#installation)
Expand Down Expand Up @@ -40,7 +40,7 @@ To use the App Store Server API or create promotional offer signatures, a signin

### Obtaining Apple Root Certificates

Download and store the root certificates found in the Apple Root Certificates section of the [Apple PKI](https://www.apple.com/certificateauthority/) site. Provide these certificates as an array to a SignedDataVerifier to allow verifying the signed data comes from Apple.
Download and store the root certificates found in the Apple Root Certificates section of the [Apple PKI](https://www.apple.com/certificateauthority/) site. Provide these certificates as a Set of InputStreams to a SignedDataVerifier to allow verifying the signed data comes from Apple.

## Usage

Expand Down Expand Up @@ -91,7 +91,7 @@ import java.io.InputStream;
import java.util.Set;

public class ExampleVerification {
public static void main(String[] args) {
public static void main(String[] args) throws Exception {
String bundleId = "com.example";
Environment environment = Environment.SANDBOX;
Set<InputStream> rootCAs = Set.of(
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ apply plugin: 'maven-publish'
apply plugin: 'signing'

dependencies {
implementation 'com.squareup.okhttp3:okhttp:5.5.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.22.2'
implementation 'com.auth0:java-jwt:4.5.2'
api 'com.squareup.okhttp3:okhttp:5.5.0'
api 'com.fasterxml.jackson.core:jackson-databind:2.22.2'
api 'com.auth0:java-jwt:4.5.2'
implementation 'org.bouncycastle:bcprov-jdk18on:1.85.2'

testImplementation 'org.junit.jupiter:junit-jupiter:6.1.3'
Expand Down Expand Up @@ -55,7 +55,7 @@ publishing {
from components.java
pom {
name = "App Store Server Library"
description = "The Java server library for the App Store Server API and App Store Server Notifications"
description = "The Java server library for the App Store Server API, App Store Server Notifications, Retention Messaging API, and Advanced Commerce API"
url = "https://github.com/apple/app-store-server-library-java/"
licenses {
license {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.apple.itunes.storekit.model.AdvancedCommerceInAppRequest;
import com.apple.itunes.storekit.signature.JWSSignatureCreator;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;
Expand Down Expand Up @@ -36,6 +37,7 @@ public AdvancedCommerceInAppSignatureCreator(String signingKey, String keyId, St
.withIsGetterVisibility(JsonAutoDetect.Visibility.NONE)
.withSetterVisibility(JsonAutoDetect.Visibility.NONE)
.withCreatorVisibility(JsonAutoDetect.Visibility.NONE));
objectMapper.setDefaultPropertyInclusion(JsonInclude.Include.NON_NULL);
}

/**
Expand Down
Loading
Loading