Skip to content

Commit

Permalink
Merge pull request #497 from mixpanel/fix-app-version-prop
Browse files Browse the repository at this point in the history
fix incorrect app version property
  • Loading branch information
zihejia authored Jan 10, 2022
2 parents 93c4857 + 32e312d commit af0a075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AutomaticProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class AutomaticProperties {
p["$screen_height"] = Int(screenSize.height)
#endif

let infoDict = Bundle(for: AutomaticProperties.self).infoDictionary
let infoDict = Bundle.main.infoDictionary
if let infoDict = infoDict {
p["$app_build_number"] = infoDict["CFBundleVersion"]
p["$app_version_string"] = infoDict["CFBundleShortVersionString"]
Expand All @@ -64,7 +64,7 @@ class AutomaticProperties {

static var peopleProperties: InternalProperties = {
var p = InternalProperties()
let infoDict = Bundle(for: AutomaticProperties.self).infoDictionary
let infoDict = Bundle.main.infoDictionary
if let infoDict = infoDict {
p["$ios_app_version"] = infoDict["CFBundleVersion"]
p["$ios_app_release"] = infoDict["CFBundleShortVersionString"]
Expand Down

0 comments on commit af0a075

Please sign in to comment.