Skip to content

Commit

Permalink
add more logging, up the build version, add debug config for builds
Browse files Browse the repository at this point in the history
  • Loading branch information
aghontpi committed Jan 3, 2022
1 parent e1dccd2 commit ba15645
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
applicationId "bluepie.ad_silence"
minSdk 21
targetSdk 31
versionCode 8
versionCode 10
versionName "0.4.0"

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

proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}

debug {
minifyEnabled false
shrinkResources false
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class NotificationListener : NotificationListenerService() {
Log.v(TAG, "Not an ad")
isMuted.takeIf { b -> b }?.also {
isMuted = false
this@run.unmute(
this.unmute(
audioManager,
appNotificationHelper,
this@with.getApp()
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/bluepie/ad_silence/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Utils {
} else {
audioManager?.setStreamMute(AudioManager.STREAM_MUSIC, true)
}
Log.v(TAG,"device music steam muted")
addNotificationHelper?.updateNotification("AdSilence, ad-detected")
}

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

Expand Down

0 comments on commit ba15645

Please sign in to comment.