Skip to content

Commit ba15645

Browse files
committed
add more logging, up the build version, add debug config for builds
1 parent e1dccd2 commit ba15645

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

app/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
applicationId "bluepie.ad_silence"
1111
minSdk 21
1212
targetSdk 31
13-
versionCode 8
13+
versionCode 10
1414
versionName "0.4.0"
1515

1616
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -23,6 +23,11 @@ android {
2323

2424
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2525
}
26+
27+
debug {
28+
minifyEnabled false
29+
shrinkResources false
30+
}
2631
}
2732
compileOptions {
2833
sourceCompatibility JavaVersion.VERSION_1_8

app/src/main/java/bluepie/ad_silence/NotificationListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class NotificationListener : NotificationListenerService() {
5555
Log.v(TAG, "Not an ad")
5656
isMuted.takeIf { b -> b }?.also {
5757
isMuted = false
58-
this@run.unmute(
58+
this.unmute(
5959
audioManager,
6060
appNotificationHelper,
6161
this@with.getApp()

app/src/main/java/bluepie/ad_silence/Utils.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Utils {
5353
} else {
5454
audioManager?.setStreamMute(AudioManager.STREAM_MUSIC, true)
5555
}
56+
Log.v(TAG,"device music steam muted")
5657
addNotificationHelper?.updateNotification("AdSilence, ad-detected")
5758
}
5859

@@ -70,6 +71,7 @@ class Utils {
7071
} else {
7172
audioManager?.setStreamMute(AudioManager.STREAM_MUSIC, false)
7273
}
74+
Log.v(TAG, "device music stream unmuted")
7375
addNotificationHelper?.updateNotification("AdSilence, listening for ads")
7476
}
7577

0 commit comments

Comments
 (0)