Skip to content

Commit 24a470d

Browse files
committed
Release 1.0.1 preparations
1 parent d9cfc9e commit 24a470d

37 files changed

+3984
-3761
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Custom Ignorings
2+
# Everything generated.
3+
[Gg]enerated
4+
[Gg]enerated/**
5+
Generated.meta
6+
17
# Created by https://www.gitignore.io/api/rider,unity
28
# Edit at https://www.gitignore.io/?templates=rider,unity
39

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
# Changelog
22

3+
## [1.0.1] - 2021-11-29
4+
5+
* Moved to `Dev.Dres` namespace
6+
* Enhanced README documentation for users
7+
* Added code documentation for developers
8+
39
## [1.0.0] - 2021-10-21
410
This is the first release of the DRES Unity API package compatible with the DRES OpenAPI version 1.0.

README.md

+44-4
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,60 @@
22

33
An interface for [DRES](https://github.com/dres-dev/DRES), meant to be used in [Unity](https://unity.com/).
44

5-
**Note: This is heavily Work-in-Progress**
5+
## Usage / Installation
66

7-
## Usage
7+
This is a upm package, add it through the [Unity Package Manager](https://docs.unity3d.com/Manual/Packages.html) as a package from git using the URL `https://github.com/vitrivr/DresUnityInterface.git#main` or directly by adding the following to your `manifest.json` for latest version:
88

9-
This is a upm package, add it through the Unity package manager as a package from git using the URL `https://github.com/vitrivr/DresUnityInterface.git#main` or directly by adding the following to your `manifest.json` for latest version:
9+
```json
10+
"dev.dres.unityclient": "https://github.com/vitrivr/DresUnityInterface.git#main"
11+
```
12+
13+
## Configuration
14+
15+
This package requires a config file, `dresapi.json` to be located either at
16+
17+
* `Assets/` (corresponds to [`Application.dataPath`](https://docs.unity3d.com/ScriptReference/Application-dataPath.html) for Unity Editor)
18+
* The persistent data folder for your platform (i.e. where [`Application.persistentDataPath`](https://docs.unity3d.com/ScriptReference/Application-persistentDataPath.html) points to)
19+
20+
The configuration file contains vital information about DRES:
1021

1122
```json
12-
"org.vitrivr.unityinterface.dresapi": "https://github.com/vitrivr/DresUnityInterface.git#main"
23+
"host": "example.com/dres",
24+
"port": 443,
25+
"tls": true,
26+
"user": "username",
27+
"password": "password"
28+
```
29+
30+
* `host`: the host address of the DRES instance, either an IP or name (defaults to `localhost`)
31+
* `port`: the port of the DRES instance (defaults to `8080`)
32+
* `tls`: whether to use tls or not, i.e. the API calls will be `https` with `true`, `false` otherwise (defaults to `false`)
33+
* `user`: the DRES user name (+)
34+
* `password`: the DRES user passwor (+)
35+
36+
(+): Could be omitted and provided in a separate file (`credentials.json`), as a sibling to the config file:
37+
38+
```json
39+
"user":"username",
40+
"password":"password"
1341
```
1442

1543
## Development
1644

1745
For development, clone this repository into a directory `org.vitrivr.unityinterface.dresapi` inside the Packages directory of the Unity project you want to develop in.
1846

47+
```
48+
$> git clone [email protected]:vitrivr/DresUnityInterface.git org.vitrivr.unityinterface.dresapi
49+
```
50+
51+
And subsequently (re-) generate the client libraries:
52+
53+
```
54+
$> gradlew clean deploy
55+
```
56+
57+
For developers, it might be necessary to re-open the unity project multiple times, until the pre-checks are okay.
58+
1959
## Contributors
2060

2161
- Florian Spiess [@Spiess](https://github.com/Spiess)

Runtime/Libs/Dev.Dres.ClientApi.dll

137 KB
Binary file not shown.

Runtime/Libs/Org.Vitrivr.DresApi.dll.meta renamed to Runtime/Libs/Dev.Dres.ClientApi.dll.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Libs/Dev.Dres.ClientApi.xml

+3,565
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Libs/Org.Vitrivr.DresApi.xml.meta renamed to Runtime/Libs/Dev.Dres.ClientApi.xml.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Libs/JsonSubTypes.Dres.dll.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Libs/Newtonsoft.Json.Dres.dll.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Runtime/Libs/Org.Vitrivr.DresApi.dll

-116 KB
Binary file not shown.

0 commit comments

Comments
 (0)