Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
10 changes: 5 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@

# SDK-specific owners
/android-cpp/ @kristopherjohnson @teodorciuraru
/android-java/ @phatblat @busec0
/android-kotlin/ @phatblat @busec0
/android-java/ @russhwolf @phatblat @busec0
/android-kotlin/ @russhwolf @phatblat @busec0
/cpp-tui/ @kristopherjohnson @teodorciuraru
/dotnet-maui/ @busec0 @kristopherjohnson
/dotnet-tui/ @busec0 @kristopherjohnson
/dotnet-winforms/ @busec0 @kristopherjohnson
/flutter_app/ @pvditto @teodorciuraru
/java-spring/ @phatblat @busec0
/java-server/ @russhwolf @phatblat @busec0
/javascript-tui/ @konstantinbe @pvditto @teodorciuraru
/javascript-web/ @konstantinbe @pvditto @teodorciuraru
/kotlin-multiplatform/ @busec0 @phatblat
/kotlin-multiplatform/ @russhwolf @phatblat @busec0
/react-native/ @teodorciuraru @kristopherjohnson
/react-native-expo/ @teodorciuraru @kristopherjohnson
/rust-tui/ @kristopherjohnson
/swift/ @phatblat @konstantinbe @busec0
/swift/ @konstantinbe @busec0

# TODO: Enable once we have 2 reviewers for Edge Server
# /edge-server/ @baxterjo
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#
# .github/workflows/java-spring-ci.yml
# Workflow for building and testing java-spring with BrowserStack integration
# .github/workflows/java-server-ci.yml
# Workflow for building and testing java-server with BrowserStack integration
#
---
name: Java Spring CI
name: Java Server CI

on:
pull_request:
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
echo "DITTO_WEBSOCKET_URL=${{ secrets.DITTO_WEBSOCKET_URL }}" >> .env

- name: Run linter (PMD + SpotBugs)
working-directory: java-spring
working-directory: java-server
run: ./gradlew pmdMain pmdTest spotbugsMain

build:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
echo "DITTO_WEBSOCKET_URL=${{ secrets.DITTO_WEBSOCKET_URL }}" >> .env

- name: Build Spring Boot JAR
working-directory: java-spring
working-directory: java-server
env:
DITTO_APP_ID: ${{ secrets.DITTO_APP_ID }}
DITTO_PLAYGROUND_TOKEN: ${{ secrets.DITTO_PLAYGROUND_TOKEN }}
Expand All @@ -80,8 +80,8 @@ jobs:
- name: Upload JAR artifacts
uses: actions/upload-artifact@v4
with:
name: java-spring-jar-${{ github.run_number }}
path: java-spring/build/libs/*.jar
name: java-server-jar-${{ github.run_number }}
path: java-server/build/libs/*.jar
retention-days: 1

browserstack-test:
Expand All @@ -99,8 +99,8 @@ jobs:
- name: Download JAR artifacts
uses: actions/download-artifact@v4
with:
name: java-spring-jar-${{ github.run_number }}
path: java-spring/build/libs/
name: java-server-jar-${{ github.run_number }}
path: java-server/build/libs/

- name: Setup Java
uses: actions/setup-java@v4
Expand Down Expand Up @@ -155,9 +155,13 @@ jobs:
- name: Get BrowserStack build info
id: build-info
uses: ./.github/actions/generate-browserstack-names
with:
platform-suffix: " (Java)"
title-max-length: "90"
commit-max-length: "130"

- name: Create BrowserStack config
working-directory: java-spring
working-directory: java-server
run: |
# Load platforms from centralized config and convert to YAML format
PLATFORMS=$(yq eval '.["java-spring"].platforms[] | " - os: \(.os)\n osVersion: \"\(.osVersion)\"\n browserName: \(.browserName)\n browserVersion: \(.browserVersion)"' ../.github/browserstack-devices.yml)
Expand All @@ -176,7 +180,7 @@ jobs:
EOF

- name: Start Spring Boot app in background
working-directory: java-spring
working-directory: java-server
env:
DITTO_APP_ID: ${{ secrets.DITTO_APP_ID }}
DITTO_PLAYGROUND_TOKEN: ${{ secrets.DITTO_PLAYGROUND_TOKEN }}
Expand All @@ -200,11 +204,13 @@ jobs:
done

- name: Seed and execute Selenium tests on BrowserStack cloud browsers
# working-directory: java-server
id: test
uses: nick-fields/retry@v3
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
BROWSERSTACK_BUILD_NAME: "Java Spring Selenium Tests #${{ github.run_number }}"
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_LOCAL: true
with:
max_attempts: 5
Expand Down Expand Up @@ -271,7 +277,7 @@ jobs:

- name: Stop Spring Boot app
if: always()
working-directory: java-spring
working-directory: java-server
run: |
if [ -f app.pid ]; then
kill $(cat app.pid) || true
Expand All @@ -287,7 +293,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: browserstack-test-reports-${{ github.run_number }}
path: java-spring/build/reports/tests/
path: java-server/build/reports/tests/
retention-days: 1

- name: Upload app logs
Expand All @@ -296,7 +302,7 @@ jobs:
with:
name: spring-boot-logs-${{ github.run_number }}
path: |
java-spring/app.log
java-server/app.log
browserstack-local.log
retention-days: 1

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ build and run them.
- [Android Kotlin](android-kotlin/README.md)
- [Android Java](android-java/README.md)
- [Android C++](android-cpp/README.md)
- [Java Server](java-spring/README.md)
- [Java Server](java-server/README.md)
- [C++ TUI](cpp-tui/README.md)
- [C# .NET MAUI](dotnet-maui/README.md)
- [C# .NET TUI](dotnet-tui/README.md)
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions java-spring/build.gradle.kts → java-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,29 @@ spotbugs {

dependencies {
// ditto-java artifact includes the Java API for Ditto
implementation("com.ditto:ditto-java:5.0.0-preview.1")
implementation("com.ditto:ditto-java:5.0.0-preview.3")

// This will include binaries for all the supported platforms and architectures
implementation("com.ditto:ditto-binaries:5.0.0-preview.1")
implementation("com.ditto:ditto-binaries:5.0.0-preview.3")

// To reduce your module artifact's size, consider including just the necessary platforms and architectures
/*
// macOS Apple Silicon
implementation("com.ditto:ditto-binaries:5.0.0-preview.1") {
implementation("com.ditto:ditto-binaries:5.0.0-preview.3") {
capabilities {
requireCapability("com.ditto:ditto-binaries-macos-arm64")
}
}

// Windows x86_64
implementation("com.ditto:ditto-binaries:5.0.0-preview.1") {
implementation("com.ditto:ditto-binaries:5.0.0-preview.3") {
capabilities {
requireCapability("com.ditto:ditto-binaries-windows-x64")
}
}

// Linux x86_64
implementation("com.ditto:ditto-binaries:5.0.0-preview.1") {
implementation("com.ditto:ditto-binaries:5.0.0-preview.3") {
capabilities {
requireCapability("com.ditto:ditto-binaries-linux-x64")
}
Expand All @@ -68,7 +68,7 @@ dependencies {
runtimeOnly("com.h2database:h2")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")

// Selenium WebDriver for visual browser testing
testImplementation("org.seleniumhq.selenium:selenium-java:4.11.0")
testImplementation("io.github.bonigarcia:webdrivermanager:5.9.2")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ java {
}
}

repositories {
mavenCentral()
}

tasks.withType<Test> {
useJUnitPlatform()
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions java-server/java-spring-maven/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.kotlin/
bin/
build/
target/
Loading
Loading