kontent-ai / java-packages

Delivery Java SDK for Kontent.ai including examples for Spring, Gradle, Kotlin and Java Android app
https://kontent.ai/learn/tutorials/develop-apps/overview/?tech=java
MIT License
14 stars 28 forks source link

Tracking header does not contain proper package info #115

Closed Simply007 closed 3 years ago

Simply007 commented 3 years ago

Brief bug description

Related to #52

SDK is loading old data for the tracking header.

Value should be jCenter;com.github.kentico:kontent-delivery;4.1.0, or any other version in the last part.

Repro steps

Send the request and intercept the request headers, the X-KC-SDKID's value contain localBuild;com.github.kentico:delivery;0.0.0.

Run test testSdkIdHeader to easy debugging.

Expected behavior

What the correct behavior is?

Additional context

Proposal: Create a task that would create a resource file with proper values according to the https://stackoverflow.com/questions/33020069/how-to-get-version-attribute-from-a-gradle-build-to-be-included-in-runtime-swing