Skip to content

Commit 177b5fd

Browse files
Ree-makerreejoseph
authored andcommitted
Flight SDK Example for Listing
2 parents 47743c1 + 05343ad commit 177b5fd

30 files changed

+1274
-34
lines changed

code/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,18 @@
7070
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
7171
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
7272
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
73-
<maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version>
73+
<maven-surefire-plugin.version>3.5.3</maven-surefire-plugin.version>
7474
<build-helper-maven-plugin.version>3.6.0</build-helper-maven-plugin.version>
7575
<ktlint-plugin.version>3.5.0</ktlint-plugin.version>
76-
<jacoco-plugin.version>0.8.12</jacoco-plugin.version>
77-
<dokka-plugin.version>1.9.20</dokka-plugin.version>
76+
<jacoco-plugin.version>0.8.13</jacoco-plugin.version>
77+
<dokka-plugin.version>2.0.0</dokka-plugin.version>
7878
<dokka-old-versions.location/> <!-- passed as a property when running dokka:dokka-->
7979
<properties.maven.plugin.version>1.2.1</properties.maven.plugin.version>
8080
<maven.licence.plugin.version>5.0.0</maven.licence.plugin.version>
8181
<flatten.maven.plugin.version>1.7.0</flatten.maven.plugin.version>
8282
<kotlin.version>2.1.20</kotlin.version>
8383
<kotlinx.coroutines.version>1.10.1</kotlinx.coroutines.version>
84-
<ktor.version>2.3.13</ktor.version>
84+
<ktor.version>3.1.2</ktor.version>
8585
<kotlin-atomic.version>0.27.0</kotlin-atomic.version>
8686
<slf4j.version>2.0.17</slf4j.version>
8787
<maven.nexus-staging.plugin.version>1.7.0</maven.nexus-staging.plugin.version>

examples/LICENSE-HEADER.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (C) ${year} Expedia, Inc.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

examples/pom.xml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<groupId>com.expediagroup</groupId>
2424
<artifactId>xap-java-sdk-examples</artifactId>
25-
<version>1.2.3-SNAPSHOT</version>
25+
<version>1.2.5-SNAPSHOT</version>
2626
<name>XAP Java SDK Examples</name>
2727
<description>Expedia Group XAP Java SDK Examples</description>
2828

@@ -31,7 +31,8 @@
3131
<maven.compiler.source>1.8</maven.compiler.source>
3232
<maven.compiler.target>1.8</maven.compiler.target>
3333
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34-
<xap-java-sdk.sdk.version>1.2.3-SNAPSHOT</xap-java-sdk.sdk.version>
34+
<xap-java-sdk.sdk.version>1.2.5-SNAPSHOT</xap-java-sdk.sdk.version>
35+
<maven.licence.plugin.version>4.6</maven.licence.plugin.version>
3536
</properties>
3637

3738
<repositories>
@@ -92,6 +93,33 @@
9293
</execution>
9394
</executions>
9495
</plugin>
96+
<plugin>
97+
<groupId>com.mycila</groupId>
98+
<artifactId>license-maven-plugin</artifactId>
99+
<version>${maven.licence.plugin.version}</version>
100+
<configuration>
101+
<properties>
102+
<year>2025</year>
103+
</properties>
104+
<licenseSets>
105+
<licenseSet>
106+
<header>LICENSE-HEADER.txt</header>
107+
<includes>
108+
<include>**/*.java</include>
109+
</includes>
110+
</licenseSet>
111+
</licenseSets>
112+
</configuration>
113+
<executions>
114+
<execution>
115+
<id>add-license-header</id>
116+
<phase>validate</phase>
117+
<goals>
118+
<goal>format</goal>
119+
</goals>
120+
</execution>
121+
</executions>
122+
</plugin>
95123
</plugins>
96124
</build>
97125
</project>

examples/src/main/java/com/expediagroup/sdk/xap/examples/XapSdkDemoTestRun.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Expedia, Inc.
2+
* Copyright (C) 2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,6 +16,8 @@
1616

1717
package com.expediagroup.sdk.xap.examples;
1818

19+
import com.expediagroup.sdk.xap.examples.scenarios.activity.ActivityDetailsQuickStartScenario;
20+
import com.expediagroup.sdk.xap.examples.scenarios.activity.ActivityListingsQuickStartScenario;
1921
import com.expediagroup.sdk.xap.examples.scenarios.car.CarDetailsQuickStartScenario;
2022
import com.expediagroup.sdk.xap.examples.scenarios.car.CarListingsQuickStartScenario;
2123
import com.expediagroup.sdk.xap.examples.scenarios.lodging.AvailabilityCalendarsQuickStartScenario;
@@ -70,6 +72,20 @@ public static void main(String[] args) {
7072
logger.info(
7173
"=============================== End of Car Scenarios ==============================");
7274

75+
logger.info(
76+
"============================== Running Activity Scenarios =============================");
77+
ActivityListingsQuickStartScenario activityListingsQuickStartScenario =
78+
new ActivityListingsQuickStartScenario();
79+
80+
activityListingsQuickStartScenario.run();
81+
82+
ActivityDetailsQuickStartScenario activityDetailsQuickStartScenario =
83+
new ActivityDetailsQuickStartScenario();
84+
activityDetailsQuickStartScenario.run();
85+
logger.info(
86+
"=============================== End of Activity Scenarios ==============================");
87+
88+
7389
System.exit(0);
7490
}
7591
}

examples/src/main/java/com/expediagroup/sdk/xap/examples/scenarios/XapScenario.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Expedia, Inc.
2+
* Copyright (C) 2025 Expedia, Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)