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

refactor: Migrate Internal Constants class to kotlin #510

Merged
merged 10 commits into from
Oct 3, 2024

Conversation

Mansi-mParticle
Copy link
Contributor

@Mansi-mParticle Mansi-mParticle commented Sep 26, 2024

Instructions

  1. PR target branch should be against development
  2. PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
  3. PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary

  • Migrate internal package’s Constants,BatchId classes to Kotlin.

Testing Plan

  • Was this tested locally? If not, explain why.
  • Tested with sample application and ran the unit test cases

Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)

@Mansi-mParticle Mansi-mParticle changed the base branch from main to development September 26, 2024 17:32

class BatchId {
var mpid: Long
get() = field
Copy link
Collaborator

Choose a reason for hiding this comment

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

These get() methods should be able to be removed as well since they just return the value which the automatic getter will already do.

@einsteinx2
Copy link
Collaborator

Everything else looks good to go

Comment on lines 7 to 9
var sessionId: String?
var dataplanId: String?
var dataplanVersion: Int?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
var sessionId: String?
var dataplanId: String?
var dataplanVersion: Int?
val sessionId: String?
val dataplanId: String?
val dataplanVersion: Int?

All of these should be val unless we need to set them after object instantiation, val should work fine with optionals as long as they're all set in all constructors (even if set to null).

@Mansi-mParticle Mansi-mParticle merged commit 2fd32f6 into development Oct 3, 2024
24 checks passed
@Mansi-mParticle Mansi-mParticle deleted the refactor/SQDSDKS-6709-Constants-classes branch October 3, 2024 03:16
mparticle-automation added a commit that referenced this pull request Oct 15, 2024
## [5.58.3](v5.58.2...v5.58.3) (2024-10-15)

### Updates & Maintenance

* Migrate Internal Constants class to kotlin  ([#510](#510)) ([2fd32f6](2fd32f6))
* Migrate MPLifecycleCallbackDelegate and MPLocationListener class to Kotlin ([#506](#506)) ([687e623](687e623))
* Remove unused session history upload code ([#507](#507)) ([a86cd3b](a86cd3b))
* Update submodules ([c0ffeb6](c0ffeb6))
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 5.58.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

mparticle-automation added a commit that referenced this pull request Oct 24, 2024
## [5.58.3](v5.58.2...v5.58.3) (2024-10-24)

### Updates & Maintenance

* Migrate Internal Constants class to kotlin  ([#510](#510)) ([2fd32f6](2fd32f6))
* Migrate MPLifecycleCallbackDelegate and MPLocationListener class to Kotlin ([#506](#506)) ([687e623](687e623))
* Remove unused session history upload code ([#507](#507)) ([a86cd3b](a86cd3b))
* Update submodules ([81e50ca](81e50ca))
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 5.58.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants