Skip to content

feat: remove all remaining legacy analytics native code #8795

@NicolasMassart

Description

@NicolasMassart

What is this about?

Since migration to new MetaMetrics using segment is done, we can remove all Mixpanel analytics native code and dependencies.

Scenario

No response

Design

No response

Technical Details

Android

  • Remove mixpanel native dependencies in android/app/build.gradle
  • all native module code in Android related to RCTAnalytics in android/app/src/main/java/io/metamask/nativeModules
  • MM_MIXPANEL_TOKEN in .android.env and gradle files

iOS

  • Remove mixpanel native dependencies in ios/mixpanel-iphone and ios/Mixpanel.framework
  • all native module code in iOS related to RCTAnalytics in ios/MetaMask/NativeModules/RCTAnalytics
  • all mixpanel code in ios
  • all framework link in ios/MetaMask.xcodeproj
  • ios/mixpanel-iphone git submodule
  • MM_MIXPANEL_TOKEN in plist files

Common

  • all mixpanel properties (search for mixpanel in all the project)
  • remove remapping MM_MIXPANEL_TOKEN in scripts/build.sh

Bitrise

Threat Modeling Framework

No response

Acceptance Criteria

  • no Mixpanel code remaining

Stakeholder review needed before the work gets merged

  • Engineering (needed in most cases)
  • Design
  • Product
  • QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
  • Security
  • Legal
  • Marketing
  • Management (please specify)
  • Other (please specify)

References

No response

Metadata

Metadata

Labels

release-7.18.0Issue or pull request that will be included in release 7.18.0release-7.19.0Issue or pull request that will be included in release 7.19.0team-mobile-platformMobile Platform team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions