Skip to content

Commit 4231b1b

Browse files
authored
Merge pull request #5 from starwit/feature/ab#1642-count-detection
Feature/ab#1642 count detection
2 parents e3b52e0 + d70db15 commit 4231b1b

30 files changed

Lines changed: 2077 additions & 166 deletions

.github/dependabot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
target-branch: main
11+
schedule:
12+
interval: "weekly"
13+
groups:
14+
pip-deps:
15+
patterns:
16+
- "*"
17+
# Enable version updates for Docker
18+
- package-ecosystem: "docker"
19+
# Look for a `Dockerfile` in the `root` directory
20+
directory: "/"
21+
target-branch: main
22+
# Check for updates once a week
23+
schedule:
24+
interval: "weekly"
25+

.github/workflows/pr-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: PR Build
2+
3+
# PR build
4+
5+
on:
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
11+
# just runs Maven, NPM and Docker build
12+
jobs:
13+
build:
14+
name: "Install software"
15+
runs-on: [self-hosted, linux, X64]
16+
17+
steps:
18+
- name: Set up JDK 21
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: 'temurin'
22+
java-version: 21
23+
24+
- name: Set up Maven
25+
uses: stCarolas/setup-maven@v5
26+
with:
27+
maven-version: 3.9.2
28+
29+
- name: checkout
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: '0'
33+
34+
- run: mvn --version
35+
36+
- name: java mvn build
37+
run: |
38+
cd java/visionapi
39+
mvn clean install

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.vscode
1+
.vscode
2+
.venv

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ java:
1717
(cd java/visionapi && mvn versions:set -DgenerateBackupPoms=false -DnewVersion=$(VERSION))
1818

1919
readme:
20-
sed -E 's|tag = "[0-9\.]+"|tag = "$(VERSION)"|' -i Readme.md
21-
sed -E 's|<version>[0-9\.]+</version>|<version>$(VERSION)</version>|' -i Readme.md
20+
sed -E 's|tag = "[0-9\.]+"|tag = "$(VERSION)"|' -i README.md
21+
sed -E 's|<version>[0-9\.]+</version>|<version>$(VERSION)</version>|' -i README.md

Readme.md renamed to README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ This repo contains the main data model for the Starwit Awareness Engine (SAE). S
66

77
### Python / Poetry
88
- Add the following to your `pyproject.toml` dependencies section\
9-
`visionapi = { git = "https://github.com/starwit/vision-api.git", subdirectory = "python/visionapi", tag = "3.2.0" }`
9+
`visionapi = { git = "https://github.com/starwit/vision-api.git", subdirectory = "python/visionapi", tag = "3.2.1" }`
1010

1111
### Java / Maven
1212
- Add dependency to your project:
1313
```xml
1414
<dependency>
1515
<groupId>de.starwit</groupId>
1616
<artifactId>vision-api</artifactId>
17-
<version>3.2.0</version>
17+
<version>3.2.1</version>
1818
</dependency>
1919
```
2020
- Add maven repository to your `~/.m2/settings.xml` (adapt example / your config as necessary):
@@ -58,6 +58,15 @@ This repo contains the main data model for the Starwit Awareness Engine (SAE). S
5858

5959
```
6060

61+
## Tools & Setup
62+
63+
* Install protoc via pipx:
64+
```
65+
sudo apt install pipx
66+
pipx install protoc-wrapper==31.1.0
67+
```
68+
* ! if youchange protoc version, you need to change protobuf version in `java\visionapi\pom.xml` and `python\visionapi\pyproject.toml`
69+
6170
## How-To Update
6271
1. Make desired changes in `./visionapi`
6372
2. Increase version in `./VERSION`
@@ -72,11 +81,10 @@ This repo contains the main data model for the Starwit Awareness Engine (SAE). S
7281
git push <version_tag>
7382
```
7483

75-
## Tools & Setup
76-
ProtoBuf compiler can be downloaded here:
77-
https://github.com/protocolbuffers/protobuf/releases
78-
7984
## Changelog
85+
### 3.2.1
86+
- Add `DetectionCountMessage` to summarize detection data
87+
8088
### 3.2.0
8189
- Add `source_id` to messages (to distinguish which source the messages are generated from)
8290
- Add `IncidentMessage.source_id`

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.0
1+
3.2.1

java/visionapi/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>vision-api</artifactId>
77

88
<packaging>jar</packaging>
9-
<version>3.2.0</version>
9+
<version>3.2.1</version>
1010
<name>visionapi</name>
1111
<url>https://github.com/starwit/vision-api</url>
1212

@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>com.google.protobuf</groupId>
3232
<artifactId>protobuf-java</artifactId>
33-
<version>4.27.3</version>
33+
<version>4.31.1</version>
3434
</dependency>
3535
</dependencies>
3636
</project>

0 commit comments

Comments
 (0)