-
Notifications
You must be signed in to change notification settings - Fork 4
feat: client identification headers #103
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,10 @@ android { | |
| namespace = "io.getunleash.android" | ||
| compileSdk = 34 | ||
|
|
||
| buildFeatures { | ||
| buildConfig = true | ||
| } | ||
|
|
||
| defaultConfig { | ||
| minSdk = 21 | ||
|
|
||
|
|
@@ -30,6 +34,8 @@ android { | |
| } | ||
| testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
| consumerProguardFiles("proguard-rules.pro") | ||
|
|
||
| buildConfigField("String", "VERSION", "\"${project.version}\"") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add custom VERSION field to the BuildConfig |
||
| } | ||
|
|
||
| buildTypes { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,8 +44,11 @@ data class UnleashConfig( | |
| "Authorization" to auth, | ||
| "Content-Type" to "application/json", | ||
| "UNLEASH-APPNAME" to appName, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will be deprecated after expand/contract period |
||
| "X-UNLEASH-APPNAME" to appName, | ||
| "User-Agent" to appName, | ||
| "UNLEASH-INSTANCEID" to instanceId, | ||
| "X-UNLEASH-CONNECTION-ID" to instanceId, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I hope we can deprecate UNLEASH-INSTANCEID header, as this connection id seems to be fulfilling the same purpose. We should open that conversation, but definitely outside of this PR scope |
||
| "X-UNLEASH-SDK" to "unleash-client-android:" + BuildConfig.VERSION, | ||
| )) | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enable build config that auto generated BuildConfig file