Skip to content

Livesport metrics config updated#43

Draft
PoornimaApptentive wants to merge 527 commits intomainfrom
livesport-metrics-config-updated
Draft

Livesport metrics config updated#43
PoornimaApptentive wants to merge 527 commits intomainfrom
livesport-metrics-config-updated

Conversation

@PoornimaApptentive
Copy link
Copy Markdown
Collaborator

This is the latest code changes that we will be sharing with the customer addressing two android bugs.

PoornimaApptentive and others added 30 commits August 11, 2023 16:11
[PBI-5122]
* encryption support for logged in conversation
* rename roster with SHA256 and some clean up

[PBI-5555]
* PBI-5055 JWT sub extract
[PBI-5055]
The ticket says we only need the sub claim from the JWT and the server will handle the rest of it.

* lint

* rename file

* Add clarity to JwtUtils
* delete old conversation & message files
* Save conversation into a new file before deleting the old one
[PBI-5572]
[PBI-5605] Add manifest structure change tests
* login & logout support
Update distribution name and version from configuration
* state machine support

[PBI-5628]
Part 1
[PBI-4007]
[PBI-4008]
[PBI-5582]
* update conversation id and token for message manager and conversation service

[PBI-4007]
[PBI-4008]
[PBI-5582]
@@ -178,7 +180,12 @@ internal class ConversationManager(
val existingConversation = loadExistingConversation()
if (existingConversation != null) {
Log.i(CONVERSATION, "Loaded an existing conversation")
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Android fetches configuration after manifest expiry and the value serialized will be used. However, I cannot serialize metrics value as part of the configuration as it would break the entire serialization. Hence, using the shared pref to use it in between the launches.

val configuration = conversation.configuration

if (isInThePast(configuration.expiry) || isDebuggable) {
if (isInThePast(configuration.expiry) || isDebuggable || !DependencyProvider.of<AndroidSharedPrefDataStore>().containsKey(SDK_CORE_INFO, METRICS_ENABLED)) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I had to add this check to ensure the Configuration is fetched if the metrics value is not found the shared pref which means the app is launched for the first time after enabling the metrics value.

repositories {
google()
mavenCentral()
maven {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Not relevant with the fix. But I need it if we are going to share the jfrog repo.

frankus
frankus previously approved these changes Apr 21, 2025
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.

4 participants