File tree Expand file tree Collapse file tree 7 files changed +7
-8
lines changed
app/src/main/java/tech/httptoolkit/android Expand file tree Collapse file tree 7 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,6 @@ import kotlin.coroutines.suspendCoroutine
2525
2626class HttpToolkitApplication : Application () {
2727
28- private val TAG = HttpToolkitApplication ::class .simpleName
29-
3028 private var analytics: GoogleAnalytics ? = null
3129 private var ga: Tracker ? = null
3230
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ private const val DEACTIVATE_INTENT = "tech.httptoolkit.android.DEACTIVATE"
4343
4444class MainActivity : AppCompatActivity (), CoroutineScope by MainScope() {
4545
46- private val TAG = MainActivity ::class .simpleName
4746 private lateinit var app: HttpToolkitApplication
4847
4948 private var localBroadcastManager: LocalBroadcastManager ? = null
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import java.security.cert.CertificateFactory
2626import java.security.cert.X509Certificate
2727import java.util.concurrent.TimeUnit
2828
29- private val TAG = " ProxySetup"
29+ private const val TAG = " ProxySetup"
3030
3131// Takes an android.httptoolkit.tech/connect URI, extracts & parses the connection config
3232// within, into a format ready for testing and then usage.
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ class ProxyVpnRunnable(
2424 redirectPorts : IntArray
2525) : Runnable {
2626
27- private val TAG = ProxyVpnRunnable ::class .simpleName
28-
2927 @Volatile private var running = false
3028
3129 // Packets from device apps downstream, heading upstream via this VPN
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ fun isVpnActive(): Boolean {
3939
4040class ProxyVpnService : VpnService (), IProtectSocket {
4141
42- private val TAG = ProxyVpnService ::class .simpleName
4342 private var app: HttpToolkitApplication ? = null
4443
4544 private var localBroadcastManager: LocalBroadcastManager ? = null
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ const val SCANNED_URL_EXTRA = "tech.httptoolkit.android.SCANNED_URL"
1717
1818class ScanActivity : AppCompatActivity (), ZXingScannerView.ResultHandler {
1919
20- private val TAG = ScanActivity ::class .simpleName
2120 private var app: HttpToolkitApplication ? = null
2221
2322 private var scannerView: ZXingScannerView ? = null
Original file line number Diff line number Diff line change 1+ package tech.httptoolkit.android
2+
3+ val Any .TAG : String
4+ get() {
5+ return javaClass.name
6+ }
You can’t perform that action at this time.
0 commit comments