Skip to content

Commit 00f37f5

Browse files
committed
Prepare 1.5 release
1 parent 2ae03d8 commit 00f37f5

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Change Log
22

3+
## Version 1.5 *(2016-09-28)*
4+
5+
* New excluded leaks
6+
* Added `LeakCanary.isInAnalyzerProcess()` to the no-op jar
7+
* Fixed several file access issues:
8+
* No more cleanup on startup, we rotate the heap dump files on every new heap dump.
9+
* LeakCanary now falls back to the app directory until it can write to the external storage.
10+
* Leak notifications now each use a distinct notification instead of erasing each other.
11+
* If LeakCanary can't perform a heap dump for any reason (e.g. analysis in progress, debugger attached ), it retries later with an exponential backoff.
12+
* Added confirmation dialog when user deletes all leaks.
13+
* Replace the two leakcanary configuration methods with a builder that provides more flexibility, see `LeakCanary.refWatcher()`.
14+
* For more details, see the [full diff](https://github.com/square/leakcanary/compare/v1.4...v1.5).
15+
16+
### Public API changes
17+
18+
* New `HeapAnalyzer.findTrackedReferences()` method for headless analysis when you have no context on what leaked.
19+
* Added `LeakCanary.isInAnalyzerProcess()` to the no-op jar
20+
* Added `LeakCanary.refWatcher()` which returns an `AndroidRefWatcherBuilder` that extends `RefWatcherBuilder` and lets you fully customize the `RefWatcher` instance.
21+
* Removed `LeakCanary.install(Application, Class)` and `LeakCanary.androidWatcher(Context, HeapDump.Listener, ExcludedRefs)`.
22+
* Removed `R.integer.leak_canary_max_stored_leaks` and `R.integer.leak_canary_watch_delay_millis`, those can now be set via `LeakCanary.refWatcher()`.
23+
* Updated the `LeakDirectoryProvider` API to centralize all file related responsibilities.
24+
* `RefWatcher` is now constructed with a `WatchExecutor` which executes a `Retryable`, instead of an `Executor` that executes a `Runnable`.
25+
* `HeapDumper.NO_DUMP` was renamed `HeapDumper.RETRY_LATER`
26+
327
## Version 1.4 *(2016-09-11)*
428

529
* Fix false negative where GC root is of type android.os.Binder [#482](https://github.com/square/leakcanary/issues/482)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ In your `build.gradle`:
1212

1313
```gradle
1414
dependencies {
15-
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4'
16-
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4'
17-
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4'
15+
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5'
16+
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
17+
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
1818
}
1919
```
2020

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ext {
2525
javaVersion = JavaVersion.VERSION_1_7
2626

2727
GROUP = 'com.squareup.leakcanary'
28-
VERSION_NAME = "1.5-SNAPSHOT"
28+
VERSION_NAME = "1.5"
2929
POM_PACKAGING = "pom"
3030
POM_DESCRIPTION= "Leak Canary"
3131

0 commit comments

Comments
 (0)