Skip to content

Commit e7c92b1

Browse files
committed
Flashing pass BuildConfig.DEBUG to librairies
1 parent f7c8ea3 commit e7c92b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/src/main/java/com/samsung/microbit/service/DfuService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ protected boolean isDebug() {
4141
// Here return true if you want the service to print more logs in LogCat.
4242
// Library's BuildConfig in current version of Android Studio is always set to DEBUG=false, so
4343
// make sure you return true or your.app.BuildConfig.DEBUG here.
44-
return true;
45-
//return BuildConfig.DEBUG;
44+
return com.samsung.microbit.BuildConfig.DEBUG;
4645
}
4746

4847
@Override

app/src/main/java/com/samsung/microbit/service/PartialFlashingService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ public class PartialFlashingService extends PartialFlashingBaseService {
1212
protected Class<? extends Activity> getNotificationTarget() {
1313
return NotificationActivity.class;
1414
}
15+
16+
@Override
17+
protected boolean isDebug() {
18+
return com.samsung.microbit.BuildConfig.DEBUG;
19+
}
1520
}

0 commit comments

Comments
 (0)