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
74f3b938
Commit
74f3b938
authored
Mar 03, 2017
by
Robert Hitt
Browse files
Should fix CI build, for realsies this time though
parent
9cf9354c
Pipeline
#1035
failed with stages
in 2 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
74f3b938
...
...
@@ -33,6 +33,10 @@ android {
release
{
minifyEnabled
false
proguardFiles
getDefaultProguardFile
(
'proguard-android.txt'
),
'proguard-rules.pro'
buildConfigField
'Boolean'
,
'enableCrashlytics'
,
'true'
}
debug
{
buildConfigField
'Boolean'
,
'enableCrashlytics'
,
'false'
}
}
compileOptions
{
...
...
app/src/main/java/srct/whatsopen/MyApplication.java
View file @
74f3b938
...
...
@@ -8,7 +8,6 @@ import android.content.res.Configuration;
import
android.preference.PreferenceManager
;
import
com.crashlytics.android.Crashlytics
;
import
com.crashlytics.android.core.CrashlyticsCore
;
import
com.squareup.leakcanary.LeakCanary
;
import
io.fabric.sdk.android.Fabric
;
...
...
@@ -21,13 +20,8 @@ public class MyApplication extends Application {
public
void
onCreate
()
{
super
.
onCreate
();
if
(!
BuildConfig
.
DEBUG
)
{
Fabric
.
with
(
this
,
new
Crashlytics
.
Builder
()
.
core
(
new
CrashlyticsCore
.
Builder
()
.
disabled
(
BuildConfig
.
DEBUG
)
.
build
())
.
build
());
}
if
(
BuildConfig
.
enableCrashlytics
)
Fabric
.
with
(
this
,
new
Crashlytics
());
// Set up LeakCanary for memory leak detection
if
(
LeakCanary
.
isInAnalyzerProcess
(
this
))
{
...
...
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