From 4d477acd496702ffda11396822e6b2b4fdd637e6 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Fri, 12 Jan 2024 18:23:14 +0500 Subject: [PATCH] Windows Switch -> Linux switch --- .idea/.name | 1 + .idea/compiler.xml | 2 +- .idea/deploymentTargetDropDown.xml | 10 ++ .idea/gradle.xml | 4 +- .idea/kotlinc.xml | 6 + .idea/migrations.xml | 10 ++ .idea/misc.xml | 3 +- .idea/vcs.xml | 6 + app/build.gradle | 8 +- app/src/main/AndroidManifest.xml | 12 +- .../entaromia/windowsswitch/MainActivity.kt | 36 ---- .../su/timoxa0/linuxswitch/MainActivity.kt | 96 ++++++++++ .../java/su/timoxa0/linuxswitch/QSTile.kt | 17 ++ .../res/drawable/ic_launcher_background.xml | 170 ------------------ .../res/drawable/ic_launcher_foreground.xml | 16 +- app/src/main/res/drawable/ic_qs_tile.xml | 14 ++ app/src/main/res/layout/activity_main.xml | 45 ++++- app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 663 -> 0 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 1893 -> 0 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 507 -> 0 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 1187 -> 0 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 931 -> 0 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 2820 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 1641 -> 0 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 4876 -> 0 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 2230 -> 0 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 7009 -> 0 bytes app/src/main/res/values-night/themes.xml | 14 +- app/src/main/res/values/colors.xml | 8 +- .../res/values/ic_launcher_background.xml | 4 - app/src/main/res/values/strings.xml | 6 +- app/src/main/res/values/themes.xml | 12 +- build.gradle | 4 +- gradle.properties | 4 +- gradle/wrapper/gradle-wrapper.properties | 2 +- settings.gradle | 2 +- 36 files changed, 256 insertions(+), 256 deletions(-) create mode 100644 .idea/.name create mode 100644 .idea/deploymentTargetDropDown.xml create mode 100644 .idea/kotlinc.xml create mode 100644 .idea/migrations.xml create mode 100644 .idea/vcs.xml delete mode 100644 app/src/main/java/me/entaromia/windowsswitch/MainActivity.kt create mode 100644 app/src/main/java/su/timoxa0/linuxswitch/MainActivity.kt create mode 100644 app/src/main/java/su/timoxa0/linuxswitch/QSTile.kt delete mode 100644 app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 app/src/main/res/drawable/ic_qs_tile.xml delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png delete mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png delete mode 100644 app/src/main/res/values/ic_launcher_background.xml diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..e323c59 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +LinuxSwitch \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index fb7f4a8..b589d56 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..0c0c338 --- /dev/null +++ b/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index a2d7c21..0897082 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -4,15 +4,15 @@ diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml new file mode 100644 index 0000000..e1eea1d --- /dev/null +++ b/.idea/kotlinc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/migrations.xml b/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index bdd9278..8978d23 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,7 +1,6 @@ - - + diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 73388b6..aee9dec 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,11 +4,11 @@ plugins { } android { - namespace 'me.entaromia.windowsswitch' + namespace 'su.timoxa0.linuxswitch' compileSdk 33 defaultConfig { - applicationId "me.entaromia.windowsswitch" + applicationId "su.timoxa0.linuxswitch" minSdk 24 targetSdk 33 versionCode 1 @@ -21,6 +21,10 @@ android { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.debug + } + debug { + versionNameSuffix 'debug' } } compileOptions { diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5173edd..c85798e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -9,7 +9,7 @@ android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" - android:theme="@style/Theme.WindowsSwitch" + android:theme="@style/Theme.LinuxSwitch" tools:targetApi="31"> + + + + + + \ No newline at end of file diff --git a/app/src/main/java/me/entaromia/windowsswitch/MainActivity.kt b/app/src/main/java/me/entaromia/windowsswitch/MainActivity.kt deleted file mode 100644 index eeef17f..0000000 --- a/app/src/main/java/me/entaromia/windowsswitch/MainActivity.kt +++ /dev/null @@ -1,36 +0,0 @@ -package me.entaromia.windowsswitch - -import androidx.appcompat.app.AppCompatActivity -import android.os.Bundle -import android.util.Log -import android.widget.Button -import com.topjohnwu.superuser.Shell - -class MainActivity : AppCompatActivity() { - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - setContentView(R.layout.activity_main) - val buttonWindows = findViewById