Skip to content

Commit

Permalink
reverted library module back to compileSdk33
Browse files Browse the repository at this point in the history
  • Loading branch information
bragelbytes committed Nov 27, 2023
1 parent 4ff2168 commit e622eb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions moonbounceVPNService/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ plugins {
}

android {
compileSdk 34
compileSdk 33
namespace = "org.operatorfoundation.moonbouncevpnservice"


defaultConfig {
minSdk 26
targetSdk 34

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED
import android.graphics.Color
import android.net.IpPrefix
import android.net.VpnService
Expand Down Expand Up @@ -452,14 +451,7 @@ class MBAKVpnService : VpnService()
.setContentIntent(pendingIntent)
.build()

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
{
startForeground(foregroundID, notification, FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED)
}
else
{
startForeground(foregroundID, notification)
}
startForeground(foregroundID, notification)
}

fun broadcastStatus(action: String, statusDescription: String, status: Boolean)
Expand Down

0 comments on commit e622eb1

Please sign in to comment.