Skip to content

Commit 910d2e1

Browse files
Updated samples and demo app to use GroupDocs.Comparison for Java v23.5
1 parent db24045 commit 910d2e1

33 files changed

Lines changed: 60 additions & 52 deletions

File tree

Demos/Compose/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![GroupDocs.Comparison](https://raw.githubusercontent.com/groupdocs-comparison/groupdocs-comparison.github.io/master/resources/image/banner.png "GroupDocs.Comparison")
22
# GroupDocs.Comparison for Kotlin Compose Example
33
New GroupDocs.Comparison for Java Dropwizard UI Example
4-
###### version 23.3
4+
###### version 23.5
55

66
[![GitHub license](https://img.shields.io/github/license/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard.svg)](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java/blob/master/Demos/Compose/LICENSE)
77

Demos/Compose/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group = "com.groupdocs.ui.comparison.compose"
11-
version = "23.3"
11+
version = "23.5"
1212

1313
repositories {
1414
google()

Demos/Compose/src/main/kotlin/com/groupdocs/ui/comparison/compose/result/ResultViewModel.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import androidx.compose.runtime.State
55
import androidx.compose.runtime.mutableStateOf
66
import com.groupdocs.comparison.Comparer
77
import com.groupdocs.comparison.Document
8+
import com.groupdocs.comparison.common.function.CreatePageStreamFunction
89
import com.groupdocs.comparison.license.License
910
import com.groupdocs.comparison.options.CompareOptions
1011
import com.groupdocs.comparison.options.PreviewOptions
@@ -35,7 +36,7 @@ class ResultViewModel(private val screen: MutableState<Screen>) {
3536
val sourcePath: String
3637
val targetPath: String
3738
val targetName: String
38-
tempDir = Paths.get(System.getenv("TMP"))
39+
tempDir = Paths.get(System.getProperty("java.io.tmpdir"))
3940
if (screen.value is Screen.Result) {
4041
sourcePath = (screen.value as Screen.Result).source
4142
targetPath = (screen.value as Screen.Result).target
@@ -89,11 +90,11 @@ class ResultViewModel(private val screen: MutableState<Screen>) {
8990
CoroutineScope(Dispatchers.IO).launch {
9091
try {
9192
val result = Document(resultPath)
92-
result.generatePreview(PreviewOptions {
93+
result.generatePreview(PreviewOptions(CreatePageStreamFunction {
9394
val pagePath = tempDir.resolve("gd_${System.currentTimeMillis()}_page_$it.png")
9495
pageList.add(pagePath.toString())
9596
FileOutputStream(pagePath.toFile())
96-
}.apply {
97+
}).apply {
9798
previewFormat = PreviewFormats.PNG
9899
})
99100
} catch (e: Exception) {

Demos/Dropwizard/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL=CMD
22

3-
COMPARISON_VERSION = 23.3
3+
COMPARISON_VERSION = 23.5
44

55
# Groupdocs.Comparison for Java - Dropwizard sample
66

Demos/Dropwizard/Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: java -jar target/comparison-dropwizard-23.3.jar
1+
web: java -jar target/comparison-dropwizard-23.5.jar

Demos/Dropwizard/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![GroupDocs.Comparison](https://raw.githubusercontent.com/groupdocs-comparison/groupdocs-comparison.github.io/master/resources/image/banner.png "GroupDocs.Comparison")
22
# GroupDocs.Comparison for Java Dropwizard Example
33
New GroupDocs.Comparison for Java Dropwizard UI Example
4-
###### version 23.3
4+
###### version 23.5
55

66
[![Build Status](https://travis-ci.org/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard.svg?branch=master)](https://travis-ci.org/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard)
77
[![Maintainability](https://api.codeclimate.com/v1/badges/bd15712ebdd04405b1ea/maintainability)](https://codeclimate.com/github/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/maintainability)
@@ -74,7 +74,7 @@ Download [latest release](https://github.com/groupdocs-comparison/GroupDocs.Comp
7474
**Note**: This method is **recommended** for running this sample behind firewall.
7575

7676
```bash
77-
curl -J -L -o release.tar.gz https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java/releases/download/v23.3/groupdocs-comparison-dropwizard-23.3.0.tar.gz
77+
curl -J -L -o release.tar.gz https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java/releases/download/v23.5/groupdocs-comparison-dropwizard-23.5.0.tar.gz
7878
tar -xvzf release.tar.gz
7979
cd release
8080
java -jar comparison-1.8.6.jar configuration.yaml
@@ -94,7 +94,7 @@ Each can be used to run GroupDocs.Comparison for Java Dropwizard sample
9494
Example:
9595

9696
```bash
97-
docker run -p 8080:8080 --name my-comparison --rm groupdocs/comparison:23.3-java-openjdk8-bullseye-dropwizard
97+
docker run -p 8080:8080 --name my-comparison --rm groupdocs/comparison:23.5-java-openjdk8-bullseye-dropwizard
9898
## Open http://localhost:8080/comparison/ in your favorite browser.
9999
```
100100

Demos/Dropwizard/docker/Dockerfile-openjdk11-bullseye

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENV FILES_DIR "DocumentSamples"
3333
ENV RESULT_DIR "DocumentSamples"
3434
ENV HOST_ADDRESS ""
3535

36-
LABEL version="23.3" \
36+
LABEL version="23.5" \
3737
maintainer="GroupDocs Team" \
3838
url="https://products.groupdocs.com/comparison/java" \
3939
documentation="https://docs.groupdocs.com/comparison/java" \

Demos/Dropwizard/docker/Dockerfile-openjdk18-bullseye

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENV FILES_DIR "DocumentSamples"
3333
ENV RESULT_DIR "DocumentSamples"
3434
ENV HOST_ADDRESS ""
3535

36-
LABEL version="23.3" \
36+
LABEL version="23.5" \
3737
maintainer="GroupDocs Team" \
3838
url="https://products.groupdocs.com/comparison/java" \
3939
documentation="https://docs.groupdocs.com/comparison/java" \

Demos/Dropwizard/docker/Dockerfile-openjdk8-bullseye

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ENV FILES_DIR "DocumentSamples"
3333
ENV RESULT_DIR "DocumentSamples"
3434
ENV HOST_ADDRESS ""
3535

36-
LABEL version="23.3" \
36+
LABEL version="23.5" \
3737
maintainer="GroupDocs Team" \
3838
url="https://products.groupdocs.com/comparison/java" \
3939
documentation="https://docs.groupdocs.com/comparison/java" \

Demos/Dropwizard/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.groupdocs.ui</groupId>
88
<artifactId>comparison-dropwizard</artifactId>
9-
<version>23.3</version>
9+
<version>23.5</version>
1010
<packaging>jar</packaging>
1111

1212
<name>GroupDocs.Comparison Dropwizard</name>

0 commit comments

Comments
 (0)