Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
fb9babe4
Commit
fb9babe4
authored
Jan 06, 2017
by
Robert Hitt
Browse files
Added leak checking stuff
parent
0c9f9814
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
fb9babe4
...
...
@@ -40,4 +40,7 @@ dependencies {
testCompile
'junit:junit:4.12'
compile
'com.jakewharton:butterknife:8.4.0'
apt
'com.jakewharton:butterknife-compiler:8.4.0'
debugCompile
'com.squareup.leakcanary:leakcanary-android:1.5'
releaseCompile
'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testCompile
'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
}
app/src/main/java/srct/whatsopen/MyApplication.java
View file @
fb9babe4
...
...
@@ -2,6 +2,8 @@ package srct.whatsopen;
import
android.app.Application
;
import
com.squareup.leakcanary.LeakCanary
;
import
io.realm.Realm
;
import
io.realm.RealmConfiguration
;
...
...
@@ -11,6 +13,12 @@ public class MyApplication extends Application {
public
void
onCreate
()
{
super
.
onCreate
();
// Set up LeakCanary for memory leak detection
if
(
LeakCanary
.
isInAnalyzerProcess
(
this
))
{
return
;
}
LeakCanary
.
install
(
this
);
// Default Realm config. Might want to change this later
Realm
.
init
(
this
);
RealmConfiguration
realmConfig
=
new
RealmConfiguration
.
Builder
().
build
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment