diff --git a/app/build.gradle b/app/build.gradle index 11b9ca3..cbfe894 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId "com.nin0dev.vendroid" minSdk 25 targetSdk 34 - versionCode 11 - versionName "1.8" + versionCode 12 + versionName "1.9" } buildTypes { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6d9338c..41c6661 100755 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -111,6 +111,22 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/ic_launcher_ts12-playstore.png b/app/src/main/ic_launcher_ts12-playstore.png new file mode 100644 index 0000000..c31ceca Binary files /dev/null and b/app/src/main/ic_launcher_ts12-playstore.png differ diff --git a/app/src/main/java/com/nin0dev/vendroid/RecoveryActivity.kt b/app/src/main/java/com/nin0dev/vendroid/RecoveryActivity.kt index 58946f4..eb39019 100755 --- a/app/src/main/java/com/nin0dev/vendroid/RecoveryActivity.kt +++ b/app/src/main/java/com/nin0dev/vendroid/RecoveryActivity.kt @@ -5,16 +5,8 @@ import android.content.Intent import android.graphics.Color import android.os.Bundle import android.view.WindowManager -import android.webkit.CookieManager -import android.webkit.CookieSyncManager -import android.webkit.WebView -import android.widget.Button -import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity -import androidx.core.view.ViewCompat -import androidx.core.view.WindowInsetsCompat import com.google.android.material.card.MaterialCardView -import com.google.android.material.snackbar.Snackbar class RecoveryActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { @@ -39,6 +31,14 @@ class RecoveryActivity : AppCompatActivity() { finish() startActivity(Intent(this, MainActivity::class.java)) } + findViewById(R.id.force_update).setOnClickListener { + val sPrefs = getSharedPreferences("settings", Context.MODE_PRIVATE) + val e = sPrefs.edit() + e.putInt("lastMajorUpdateThatUserHasUpdatedVencord", 0) + e.apply() + finish() + startActivity(Intent(this, MainActivity::class.java)) + } } override fun onNewIntent(intent: Intent) { diff --git a/app/src/main/java/com/nin0dev/vendroid/webview/VencordNative.kt b/app/src/main/java/com/nin0dev/vendroid/webview/VencordNative.kt index e2c4d33..95d0e8c 100755 --- a/app/src/main/java/com/nin0dev/vendroid/webview/VencordNative.kt +++ b/app/src/main/java/com/nin0dev/vendroid/webview/VencordNative.kt @@ -76,7 +76,7 @@ class VencordNative(private val activity: MainActivity, private val wv: WebView) @JavascriptInterface fun changeAppIcon(id: String) { - val icons = arrayOf("Main", "Jolly", "Discord", "Retro") + val icons = arrayOf("Main", "Jolly", "Discord", "Retro", "TS12") for (icon in icons) { activity.packageManager.setComponentEnabledSetting( ComponentName(activity.applicationContext, diff --git a/app/src/main/res/layout/activity_recovery.xml b/app/src/main/res/layout/activity_recovery.xml index 782243a..8cae142 100755 --- a/app/src/main/res/layout/activity_recovery.xml +++ b/app/src/main/res/layout/activity_recovery.xml @@ -1,7 +1,6 @@ + + + + + + + + + + diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_ts12.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_ts12.xml new file mode 100644 index 0000000..addeee6 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_ts12.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_ts12_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_ts12_round.xml new file mode 100644 index 0000000..addeee6 --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_ts12_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_ts12.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12.webp new file mode 100644 index 0000000..a3d83b5 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12.webp differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_background.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_background.webp new file mode 100644 index 0000000..fed40fb Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_background.webp differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_foreground.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_foreground.webp new file mode 100644 index 0000000..5398a77 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_foreground.webp differ diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_round.webp b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_round.webp new file mode 100644 index 0000000..4e33dbb Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/ic_launcher_ts12_round.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_ts12.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12.webp new file mode 100644 index 0000000..26a4f90 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_background.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_background.webp new file mode 100644 index 0000000..bb69749 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_background.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_foreground.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_foreground.webp new file mode 100644 index 0000000..e7d09e5 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_foreground.webp differ diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_round.webp b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_round.webp new file mode 100644 index 0000000..cb4748a Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/ic_launcher_ts12_round.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12.webp new file mode 100644 index 0000000..feee344 Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_background.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_background.webp new file mode 100644 index 0000000..909fb6c Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_background.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_foreground.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_foreground.webp new file mode 100644 index 0000000..19421dd Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_foreground.webp differ diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_round.webp b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_round.webp new file mode 100644 index 0000000..54fb4cd Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/ic_launcher_ts12_round.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12.webp new file mode 100644 index 0000000..1a9ffd7 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_background.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_background.webp new file mode 100644 index 0000000..629912f Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_background.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_foreground.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_foreground.webp new file mode 100644 index 0000000..c1712e9 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_foreground.webp differ diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_round.webp b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_round.webp new file mode 100644 index 0000000..1845a86 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/ic_launcher_ts12_round.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12.webp new file mode 100644 index 0000000..e02f90b Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_background.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_background.webp new file mode 100644 index 0000000..d46987a Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_background.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_foreground.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_foreground.webp new file mode 100644 index 0000000..8e9de40 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_foreground.webp differ diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_round.webp b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_round.webp new file mode 100644 index 0000000..338f93a Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_ts12_round.webp differ diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 733630d..1c4f775 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -38,4 +38,6 @@ Change your VendroidEnhanced app icon! Occasionally, seasonal icons may appear. QuickCSS + Force update Vencord + Start VendroidEnhanced, but force a Vencord update. Useful if you are crashing or similar and cannot access the Updater tab. \ No newline at end of file