Skip to content

Commit cf21852

Browse files
committed
Merge branch 'main' into EWS-38452-ActivitySDK
2 parents 4b6bfef + 6dbfc00 commit cf21852

File tree

62 files changed

+7193
-51
lines changed

Some content is hidden

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

62 files changed

+7193
-51
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# dependabot configuration available at: https://docs.github.com/en/code-security/dependabot
22
version: 2
33
updates:
4-
54
- package-ecosystem: "github-actions"
65
directory: "/"
76
schedule:
@@ -15,7 +14,9 @@ updates:
1514
- Dependabot
1615

1716
- package-ecosystem: maven
18-
directory: "/code"
17+
directories:
18+
- "/examples"
19+
- "/tests/integration"
1920
schedule:
2021
interval: daily
2122
time: "11:30"

.github/workflows/generate-and-publish-sdk-sources.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ on:
1212

1313
jobs:
1414
generate-and-publish-sources:
15-
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-full-workflow.yaml@v20241126
15+
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-full-workflow.yaml@v20241217
1616
secrets: inherit
1717
with:
1818
name: xap
19-
version: ${{ inputs.version }}
20-
transformations: "--headers key --operationIdsToTags"
21-
repository: 'ExpediaGroup/xap-java-sdk'
2219
ref: ${{ github.head_ref || github.ref_name }}
20+
repository: 'ExpediaGroup/xap-java-sdk'
21+
sdk_repo_ref: 'v20241217'
22+
transformations: '--headers key --operationIdsToTags'
23+
version: ${{ inputs.version }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
mvn clean install
5656
5757
- name: Run Integration Tests
58-
working-directory: sdk-repo/integrations
58+
working-directory: sdk-repo/tests/integration
5959
run: |
6060
mvn verify \
6161
-Dcom.expediagroup.xapjavasdk.apikey="${{ secrets.API_KEY }}" \

.github/workflows/release-sdk.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,19 @@ on:
1111
default: ''
1212

1313
jobs:
14-
run-examples:
14+
integration-tests:
1515
strategy:
1616
matrix:
1717
jdk: [ 8, 11, 17, 21 ]
18-
uses: ./.github/workflows/run-examples.yaml
19-
secrets: inherit
20-
with:
21-
branch: ${{ inputs.branch }}
22-
jdk: ${{ matrix.jdk }}
23-
24-
integration-test:
25-
strategy:
26-
matrix:
27-
jdk: [ 8, 11, 17, 21 ]
28-
uses: ./.github/workflows/integration-test.yaml
18+
uses: ./.github/workflows/integration-tests.yaml
2919
secrets: inherit
3020
with:
3121
branch: ${{ inputs.branch }}
3222
jdk: ${{ matrix.jdk }}
3323

3424
release-sdk:
35-
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@v20241126
36-
needs: [ run-examples ]
25+
uses: ExpediaGroup/expediagroup-java-sdk/.github/workflows/selfserve-release-sdk.yaml@v20241217
26+
needs: [ integration-tests ]
3727
secrets: inherit
3828
with:
3929
branch: ${{ inputs.branch }}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Verify Examples and Integration Tests
2+
on:
3+
pull_request:
4+
branches:
5+
- 'main'
6+
jobs:
7+
detect-changes:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
pull-requests: read
11+
outputs:
12+
examples: ${{ steps.filter.outputs.examples }}
13+
integration-tests: ${{ steps.filter.outputs.integration-tests }}
14+
steps:
15+
- uses: dorny/paths-filter@v3
16+
id: filter
17+
with:
18+
filters: |
19+
examples:
20+
- 'examples/**'
21+
integration-tests:
22+
- 'tests/integration/**'
23+
24+
verify-examples:
25+
needs: detect-changes
26+
if: ${{ needs.detect-changes.outputs.examples == 'true' }}
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-java@v4
31+
with:
32+
java-version: '11'
33+
distribution: 'temurin'
34+
- name: verify examples
35+
working-directory: examples
36+
run: |
37+
mvn verify \
38+
-Dcom.expediagroup.xapjavasdk.apikey="${{ secrets.API_KEY }}" \
39+
-Dcom.expediagroup.xapjavasdk.apisecret="${{ secrets.API_SECRET }}" \
40+
-Dcom.expediagroup.xapjavasdk.vrbokey="${{ secrets.VRBO_KEY }}" \
41+
-Dcom.expediagroup.xapjavasdk.vrbosecret="${{ secrets.VRBO_SECRET }}" \
42+
43+
verify-integration-tests:
44+
needs: detect-changes
45+
if: ${{ needs.detect-changes.outputs.integration-tests == 'true' }}
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: actions/setup-java@v4
50+
with:
51+
java-version: '11'
52+
distribution: 'temurin'
53+
- name: verify integration tests
54+
working-directory: tests/integration
55+
run: |
56+
mvn verify \
57+
-Dcom.expediagroup.xapjavasdk.apikey="${{ secrets.API_KEY }}" \
58+
-Dcom.expediagroup.xapjavasdk.apisecret="${{ secrets.API_SECRET }}" \
59+
-Dcom.expediagroup.xapjavasdk.vrbokey="${{ secrets.VRBO_KEY }}" \
60+
-Dcom.expediagroup.xapjavasdk.vrbosecret="${{ secrets.VRBO_SECRET }}"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and less on the technical details of the API.
1717
You can find code examples for multiple use cases in the [examples](examples) directory.
1818

1919
### Integration Tests
20-
Integration tests are placed in the [integrations](integrations) directory.
20+
Integration tests are placed in the [integrations](tests/integration) directory.
2121

2222
---
2323

@@ -27,4 +27,4 @@ If you have any questions or need help with XAP, please refer to the
2727
[XAP Support](https://developers.expediagroup.com/xap/support) page.
2828

2929
If you experience any issues with the SDK, please raise an issue on the
30-
[GitHub repository](https://github.com/ExpediaGroup/xap-java-sdk/issues).
30+
[GitHub repository](https://github.com/ExpediaGroup/xap-java-sdk/issues).

code/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<dependency>
66
<groupId>com.expediagroup</groupId>
77
<artifactId>xap-sdk</artifactId>
8-
<version>1.0.0</version>
8+
<version>1.1.0</version>
99
</dependency>
1010
```
1111

code/pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>com.expediagroup</groupId>
66
<artifactId>xap-sdk</artifactId>
7-
<version>1.0.0</version>
7+
<version>1.1.0</version>
88
<name>EG xap-sdk for Java</name>
9-
<description>EG xap-sdk v1.0.0</description>
9+
<description>EG xap-sdk v1.1.0</description>
1010
<url>https://github.com/ExpediaGroup/test-sdk</url>
1111
<inceptionYear>2022</inceptionYear>
1212
<packaging>jar</packaging>
@@ -82,7 +82,7 @@
8282
<kotlin.version>2.0.21</kotlin.version>
8383
<kotlinx.coroutines.version>1.9.0</kotlinx.coroutines.version>
8484
<ktor.version>2.3.13</ktor.version>
85-
<kotlin-atomic.version>0.26.0</kotlin-atomic.version>
85+
<kotlin-atomic.version>0.26.1</kotlin-atomic.version>
8686
<slf4j.version>2.0.16</slf4j.version>
8787
<maven.nexus-staging.plugin.version>1.7.0</maven.nexus-staging.plugin.version>
8888
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
@@ -131,7 +131,7 @@
131131
<dependency>
132132
<groupId>com.fasterxml.jackson</groupId>
133133
<artifactId>jackson-bom</artifactId>
134-
<version>2.18.1</version>
134+
<version>2.18.2</version>
135135
<type>pom</type>
136136
<scope>import</scope>
137137
</dependency>
@@ -153,7 +153,7 @@
153153
<dependency>
154154
<groupId>com.fasterxml.jackson.core</groupId>
155155
<artifactId>jackson-annotations</artifactId>
156-
<version>2.18.1</version>
156+
<version>2.18.2</version>
157157
</dependency>
158158
</dependencies>
159159
</dependencyManagement>
@@ -744,13 +744,13 @@
744744
<dependency>
745745
<groupId>com.ebay.ejmask</groupId>
746746
<artifactId>ejmask-api</artifactId>
747-
<version>1.0.3</version>
747+
<version>1.3.0</version>
748748
</dependency>
749749

750750
<dependency>
751751
<groupId>com.ebay.ejmask</groupId>
752752
<artifactId>ejmask-extensions</artifactId>
753-
<version>1.0.3</version>
753+
<version>1.3.0</version>
754754
</dependency>
755755
</dependencies>
756756

code/src/main/kotlin/com/expediagroup/sdk/core/client/BaseRapidClient.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ abstract class BaseRapidClient(
4444
private val engine: HttpClientEngine =
4545
_configurationProvider.okHttpClient?.let {
4646
OkHttp.create {
47-
preconfigured = it
47+
config {
48+
preconfigured = it
49+
dispatcher(it.dispatcher)
50+
}
4851
}
4952
} ?: httpClientEngine
5053

code/src/main/kotlin/com/expediagroup/sdk/core/client/BaseXapClient.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ abstract class BaseXapClient(
4444
private val engine: HttpClientEngine =
4545
_configurationProvider.okHttpClient?.let {
4646
OkHttp.create {
47-
preconfigured = it
47+
config {
48+
preconfigured = it
49+
dispatcher(it.dispatcher)
50+
}
4851
}
4952
} ?: httpClientEngine
5053

0 commit comments

Comments
 (0)