Skip to content

Commit db0629d

Browse files
committed
gradle update and added context
1 parent 671f211 commit db0629d

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ plugins {
44
}
55

66
android {
7-
compileSdk 34
7+
compileSdk 33
88

99
defaultConfig {
1010
namespace = "org.operatorfoundation.moonbounceAndroidKotlin"
1111
applicationId "org.operatorfoundation.moonbounceAndroidKotlin"
12-
minSdk 29
12+
minSdk 26
1313
targetSdk 33
1414
versionCode 1
1515
versionName "1.0"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins{
3-
id 'com.android.library' version '8.1.2' apply false
3+
id 'com.android.library' version '8.2.1' apply false
44
id 'org.jetbrains.kotlin.android' version '1.9.0' apply false
55
}
66

moonbounceVPNService/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
android {
7-
compileSdk 34
7+
compileSdk 33
88
namespace = "org.operatorfoundation.moonbouncevpnservice"
99

1010
defaultConfig {
@@ -33,8 +33,8 @@ android {
3333

3434
dependencies {
3535
implementation 'androidx.core:core-ktx:1.10.1'
36-
implementation 'com.github.OperatorFoundation:TransmissionAndroid:1.3.2'
37-
implementation 'com.github.OperatorFoundation:ShapeshifterAndroidKotlin:4.1.4'
36+
implementation 'com.github.OperatorFoundation:transmissionandroid:1.3.3'
37+
implementation 'com.github.OperatorFoundation:ShapeshifterAndroidKotlin:5.0.4'
3838

3939
testImplementation 'junit:junit:4.13.2'
4040
androidTestImplementation 'androidx.test.ext:junit:1.1.5'

moonbounceVPNService/src/main/java/org/operatorfoundation/moonbouncevpnservice/MBAKVpnService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ class MBAKVpnService : VpnService()
139139
{
140140
val serverAddress = "$transportServerIP:$transportServerPort"
141141
val config = ShadowConfig(transportServerPublicKey!!, "Darkstar", serverAddress)
142-
this.shadowConnection = ShadowConnection(config, Logger.getLogger("MoonbounceShadowLogger"), this.transmissionConnection!!)
142+
val context = applicationContext
143+
this.shadowConnection = ShadowConnection(config, context, Logger.getLogger("MoonbounceShadowLogger"), this.transmissionConnection!!)
143144
}
144145

145146
// println("🌙 MBAKVpnService: starting ServerToVPN loop")

0 commit comments

Comments
 (0)