Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VSS Symbol Processing processor #11

Merged
merged 61 commits into from
Oct 17, 2023

Conversation

Chrylo
Copy link
Contributor

@Chrylo Chrylo commented Sep 22, 2023

Closes #4

An input specification file (for now only .yaml is supported) can now be injected via an annotation. Like this:
@VssDefinition("vss_rel_4.0.yaml")

For example from here: https://github.com/COVESA/vehicle_signal_specification/releases/tag/v4.0

The new KSP module will now generate fitting Kotlin data classes which can be used in combination with the SDK. This will simplify the back and forth parsing of the manual approach (vssPath + value) tremendously. See the API doc for the new methods inside the DataBrokerConnection for detailed information.

TODO: Unit tests will follow. After discussions with the reviewers we wanted to start the review already because it's a big feature.

Potential features for the future:

  • Support multiple input files like json
  • Improve performance of the KSP and parsing between server responses + models
  • Improve readability inside the test app for really big parent specifications

@Chrylo Chrylo marked this pull request as draft September 22, 2023 13:48
Signed-Off-By: Mark Hüsers <mark.huesers@etas.com>
Instead of using the generic interface VSSSpeciaction, all classes
are now references to the concrete class type.
Duplicated names like "Middle" with different vssPaths should be added
as nested classes.
Some description have a "," so the parsing would be incorrect.
Consists of common models used inside the SDK + Processor
- Some cleanup + renaming
No logical changes were made besides adapting the code to the new
interface.
@Chrylo
Copy link
Contributor Author

Chrylo commented Sep 25, 2023

Had to force push the author so it matches my eclipse account e-mail.

gradle.properties Show resolved Hide resolved
app/build.gradle.kts Outdated Show resolved Hide resolved
kuksa-sdk/build.gradle.kts Show resolved Hide resolved
kuksa-sdk/build.gradle.kts Outdated Show resolved Hide resolved
.gitignore Show resolved Hide resolved
@SebastianSchildt
Copy link
Contributor

CI fails due to missing license headers in 2 files:

NO SPDX /home/runner/work/kuksa-android-sdk/kuksa-android-sdk/app/src/main/kotlin/org/eclipse/kuksa/testapp/databroker/viewmodel/VssSpecificationsViewModel.kt

NO SPDX /home/runner/work/kuksa-android-sdk/kuksa-android-sdk/vss-core/src/main/java/org/eclipse/kuksa/vsscore/extension/StringExtension.kt

Copy link
Contributor

@wba2hi wba2hi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional Test looked good (fetch, subscribe, minify, consumer-proguard-rules).

I still expect some follow-up findings or changes during the integration into the Demo app, but I can't anticipate them yet.

LGTM

@lukasmittag
Copy link
Contributor

NO SPDX /home/runner/work/kuksa-android-sdk/kuksa-android-sdk/vss-core/src/main/java/org/eclipse/kuksa/vsscore/extension/StringExtension.kt

please check

lukasmittag
lukasmittag previously approved these changes Oct 11, 2023
Copy link
Contributor

@lukasmittag lukasmittag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. What I did:

  • build project ran App with two different yaml files
  • build project with one yaml file that has some errors like not a real datatype and its not working -> good

@lukasmittag lukasmittag reopened this Oct 11, 2023
@lukasmittag
Copy link
Contributor

check conflciting files please :)

# Conflicts:
#	app/build.gradle.kts
#	app/src/main/java/org/eclipse/kuksa/testapp/databroker/JavaDataBrokerEngine.java
#	app/src/main/kotlin/org/eclipse/kuksa/testapp/KuksaDataBrokerActivity.kt
#	app/src/main/kotlin/org/eclipse/kuksa/testapp/databroker/DataBrokerEngine.kt
#	app/src/main/kotlin/org/eclipse/kuksa/testapp/databroker/KotlinDataBrokerEngine.kt
#	app/src/main/kotlin/org/eclipse/kuksa/testapp/databroker/view/DataBrokerView.kt
#	app/src/main/kotlin/org/eclipse/kuksa/testapp/databroker/viewmodel/ConnectionViewModel.kt
#	app/src/main/kotlin/org/eclipse/kuksa/testapp/extension/UriExtension.kt
#	gradle/libs.versions.toml
#	kuksa-sdk/build.gradle.kts
#	kuksa-sdk/consumer-rules.pro
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/DataBrokerConnectionTest.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/DataBrokerConnectorSecureTest.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/DataBrokerConnectorTest.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/databroker/DataBrokerConfig.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/databroker/DataBrokerConnectorProvider.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/kotest/KotestProjectConfig.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/kotest/Tag.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/pattern/listener/MultiListenerTest.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/test/databroker/DataBrokerConfig.kt
#	kuksa-sdk/src/test/kotlin/org/eclipse/kuksa/test/databroker/DataBrokerConnectorProvider.kt
#	kuksa-sdk/src/test/kotlin/test/databroker/DataBrokerConfig.kt
#	kuksa-sdk/src/test/kotlin/test/databroker/DataBrokerConnectorProvider.kt
#	kuksa-sdk/src/test/kotlin/test/kotest/KotestProjectConfig.kt
#	kuksa-sdk/src/test/kotlin/test/kotest/Tag.kt
#	settings.gradle.kts
#	test/src/main/java/org/eclipse/kuksa/test/kotest/KotestProjectConfig.kt
#	test/src/main/java/org/eclipse/kuksa/test/kotest/Tag.kt
@Chrylo
Copy link
Contributor Author

Chrylo commented Oct 16, 2023

@lukasmittag @wba2hi Merged main into feature branch and fixed all conflicts. Pls have a quick look :)

@wba2hi
Copy link
Contributor

wba2hi commented Oct 17, 2023

LGTM

Copy link
Contributor

@lukasmittag lukasmittag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lukasmittag lukasmittag merged commit 21460f1 into eclipse-kuksa:main Oct 17, 2023
3 checks passed
@wba2hi wba2hi deleted the feature-4 branch March 7, 2024 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate Kotlin types from VSS definition file
4 participants