Skip to content

Commit

Permalink
v2.17.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Apr 28, 2024
1 parent 88ac881 commit 28d67c6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 14 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id("com.android.application") version "8.3.1" apply false
id("com.android.application") version "8.3.2" apply false
id("com.github.ben-manes.versions") version "0.51.0"
id("com.google.devtools.ksp") version "1.9.23-1.0.19" apply false
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
id("com.google.devtools.ksp") version "2.0.0-RC1-1.0.20" apply false
id("org.jetbrains.kotlin.android") version "2.0.0-RC1" apply false
}

buildscript {
Expand Down
18 changes: 9 additions & 9 deletions mobile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ android {
applicationId = "be.mygod.vpnhotspot"
minSdk = 28
targetSdk = 34
versionCode = 1022
versionName = "2.17.7"
versionCode = 1023
versionName = "2.17.8"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
ksp {
arg("room.expandProjection", "true")
Expand Down Expand Up @@ -95,20 +95,20 @@ dependencies {
ksp("androidx.room:room-compiler:$roomVersion")
implementation(kotlin("stdlib-jdk8"))
implementation("androidx.browser:browser:1.8.0")
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.fragment:fragment-ktx:1.6.2")
implementation("androidx.core:core-ktx:1.13.0")
implementation("androidx.fragment:fragment-ktx:1.7.0-rc02")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion")
implementation("androidx.preference:preference:1.2.1")
implementation("androidx.room:room-ktx:$roomVersion")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
implementation("be.mygod.librootkotlinx:librootkotlinx:1.1.1")
implementation("com.android.billingclient:billing-ktx:6.2.0")
implementation("com.google.android.gms:play-services-base:18.3.0") // fix for GoogleApiActivity crash @ 18.1.0+
implementation("com.android.billingclient:billing-ktx:6.2.1")
implementation("com.google.android.gms:play-services-base:18.4.0") // fix for GoogleApiActivity crash @ 18.1.0+
implementation("com.google.android.gms:play-services-oss-licenses:17.0.1")
implementation("com.google.android.material:material:1.12.0-beta01")
implementation("com.google.firebase:firebase-analytics:21.6.1")
implementation("com.google.firebase:firebase-crashlytics:18.6.3")
implementation("com.google.android.material:material:1.12.0-rc01")
implementation("com.google.firebase:firebase-analytics:21.6.2")
implementation("com.google.firebase:firebase-crashlytics:18.6.4")
implementation("com.google.zxing:core:3.5.3")
implementation("com.jakewharton.timber:timber:5.0.1")
implementation("com.linkedin.dexmaker:dexmaker:2.28.3")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
/**
* startService Step 2 (if a group isn't already available)
*/
@SuppressLint("MissingPermission") // missing permission will simply leading to returning ERROR
private suspend fun doStart() {
val listener = object : WifiP2pManager.ActionListener {
override fun onFailure(reason: Int) {
Expand All @@ -464,7 +465,6 @@ class RepeaterService : Service(), CoroutineScope, WifiP2pManager.ChannelListene
if (Build.VERSION.SDK_INT >= 33) setVendorElements()
val networkName = networkName?.toString()
val passphrase = passphrase
@SuppressLint("MissingPermission") // missing permission will simply leading to returning ERROR
if (!safeMode || networkName == null || passphrase.isNullOrEmpty()) {
persistNextGroup = true
p2pManager.createGroup(channel, listener)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package be.mygod.vpnhotspot.net.dns

import android.annotation.SuppressLint
import android.net.VpnService
import io.ktor.network.selector.SelectInterest
import io.ktor.network.selector.Selectable
Expand All @@ -9,7 +10,11 @@ import java.net.ProtocolFamily
import java.nio.channels.spi.SelectorProvider

class VpnProtectedSelectorManager(private val manager: SelectorManager) : SelectorProvider(), SelectorManager {
private val protector = VpnService()
companion object {
@SuppressLint("StaticFieldLeak")
private val protector = VpnService()
}

private fun checkProtect(success: Boolean) {
if (!success) Timber.w(Exception("protect failed"))
}
Expand Down

0 comments on commit 28d67c6

Please sign in to comment.