Skip to content

Commit

Permalink
Merge pull request #52 from pepyakin/sp/version-in-trace
Browse files Browse the repository at this point in the history
Add version name to leak info. Fixes #49
  • Loading branch information
pyricau committed May 12, 2015
2 parents b763f83 + 7005aa9 commit 10931cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions library/leakcanary-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ android {
defaultConfig {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
buildConfigField "String", "LIBRARY_VERSION", "\"${rootProject.ext.VERSION_NAME}\""
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ public static String leakInfo(Context context, HeapDump heapDump, AnalysisResult
+ Build.VERSION.RELEASE
+ " API: "
+ Build.VERSION.SDK_INT
+ " LeakCanary: "
+ BuildConfig.LIBRARY_VERSION
+ "\n"
+ "* Durations: watch="
+ heapDump.watchDurationMs
Expand Down

0 comments on commit 10931cc

Please sign in to comment.