Skip to content

Commit 8168d21

Browse files
authored
Merge pull request #124 from nin0-dev/dev
2 parents 2765f6f + 1f4c1bf commit 8168d21

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

app/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
applicationId "com.nin0dev.vendroid"
1212
minSdk 25
1313
targetSdk 34
14-
versionCode 12
15-
versionName "1.9"
14+
versionCode 13
15+
versionName "1.10"
1616
}
1717

1818
buildTypes {
@@ -40,6 +40,5 @@ dependencies {
4040
implementation 'com.google.code.gson:gson:2.12.1'
4141
implementation 'com.android.volley:volley:1.2.1'
4242
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
43-
implementation 'com.google.firebase:firebase-common-ktx:21.0.0'
4443
}
4544

app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@
1212
android:roundIcon="@mipmap/ic_launcher_round"
1313
android:supportsRtl="true"
1414
android:theme="@style/AppTheme"
15-
android:usesCleartextTraffic="true"
1615
tools:targetApi="34">
1716
<activity
1817
android:name=".RecoveryActivity"
1918
android:exported="true"
2019
android:launchMode="singleTask"
2120
android:theme="@style/AppTheme" />
22-
<activity
23-
android:name=".WelcomeActivity"
24-
android:exported="false"
25-
android:theme="@style/AppTheme" />
2621
<activity
2722
android:name=".MainActivity"
2823
android:configChanges="orientation|keyboardHidden|screenSize|layoutDirection"

app/src/main/java/com/nin0dev/vendroid/webview/HttpClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ object HttpClient {
5050
}
5151

5252
@Throws(IOException::class)
53-
fun fetch(url: String): HttpURLConnection {
53+
fun fetch(url: String?): HttpURLConnection {
5454
val conn = URL(url).openConnection() as HttpURLConnection
5555
if (conn.getResponseCode() >= 300) {
5656
throw HttpException(conn)

app/src/main/java/com/nin0dev/vendroid/webview/VencordNative.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ class VencordNative(private val activity: MainActivity, private val wv: WebView)
2727
fun updateVencord() {
2828
val sPrefs = activity.getSharedPreferences("settings", Context.MODE_PRIVATE)
2929
val vendroidFile = File(activity.filesDir, "vencord.js")
30-
val conn = HttpClient.fetch(sPrefs.getString("vencordLocation", if(sPrefs.getBoolean("equicord", false)) Constants.EQUICORD_BUNDLE_URL else Constants.JS_BUNDLE_URL)!!)
30+
val conn = HttpClient.fetch(
31+
sPrefs.getString(
32+
"vencordLocation",
33+
if (
34+
sPrefs.getString("clientMod", "vencord") == "equicord"
35+
) Constants.EQUICORD_BUNDLE_URL else Constants.JS_BUNDLE_URL
36+
)
37+
)
3138
vendroidFile.writeText(HttpClient.readAsText(conn.inputStream))
3239
activity.showDiscordToast("Updated Vencord, restart to apply changes!", "SUCCESS")
3340
}

build.gradle

Lines changed: 2 additions & 2 deletions
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.application' version '8.8.1' apply false
4-
id 'com.android.library' version '8.8.1' apply false
3+
id 'com.android.application' version '8.12.2' apply false
4+
id 'com.android.library' version '8.12.2' apply false
55
id 'org.jetbrains.kotlin.android' version '1.9.25' apply false
66
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)