Skip to content

Commit ab910a3

Browse files
committed
release V1.0.0
1 parent 8d8984b commit ab910a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+964
-376
lines changed

.idea/deploymentTargetSelector.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ android {
1717

1818
buildTypes {
1919
release {
20-
isMinifyEnabled = false
20+
isMinifyEnabled = true
21+
isShrinkResources = true
2122
proguardFiles(
2223
getDefaultProguardFile("proguard-android-optimize.txt"),
2324
"proguard-rules.pro"
2 KB
Binary file not shown.
1.94 KB
Binary file not shown.

app/release/output-metadata.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"version": 3,
3+
"artifactType": {
4+
"type": "APK",
5+
"kind": "Directory"
6+
},
7+
"applicationId": "com.deadend.killmyapps",
8+
"variantName": "release",
9+
"elements": [
10+
{
11+
"type": "SINGLE",
12+
"filters": [],
13+
"attributes": [],
14+
"versionCode": 100,
15+
"versionName": "1.0.0",
16+
"outputFile": "app-release.apk"
17+
}
18+
],
19+
"elementType": "File",
20+
"baselineProfiles": [
21+
{
22+
"minApi": 28,
23+
"maxApi": 30,
24+
"baselineProfiles": [
25+
"baselineProfiles/1/app-release.dm"
26+
]
27+
},
28+
{
29+
"minApi": 31,
30+
"maxApi": 2147483647,
31+
"baselineProfiles": [
32+
"baselineProfiles/0/app-release.dm"
33+
]
34+
}
35+
],
36+
"minSdkVersionForDexing": 24
37+
}

app/src/androidTest/java/com/deadend/killmyapps/ExampleInstrumentedTest.java

Lines changed: 0 additions & 26 deletions
This file was deleted.
36.9 KB
Loading

app/src/main/java/com/deadend/killmyapps/App.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ public class App extends Application {
1414
public static final String HIDE_KILL_MY_APPS = "hideKillMyApps";
1515
public static final String HIDE_DEFAULT_LAUNCHER = "hideDefaultLauncher";
1616
public static final String HIDE_SYSTEM_UI = "hideSystemUI";
17+
public static final String SHOW_PKGNAME = "showPkgName";
18+
public static final String CLICK_TO_APP_INFO = "clickToAppInfo";
19+
public static final String LONG_CLICK_TO_COPY = "longClickToCopy";
1720

1821
public static Database database;
1922
public static SharedPreferences settings;
@@ -27,13 +30,13 @@ public void onCreate() {
2730
context = getApplicationContext();
2831
}
2932

30-
public static void setAppThemeMode(){
33+
public static void setAppThemeMode() {
3134
int themeMode = App.settings.getInt(App.THEME_MODE, 0);
32-
if(themeMode == 0)
35+
if (themeMode == 0)
3336
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_FOLLOW_SYSTEM);
34-
else if(themeMode == 1)
37+
else if (themeMode == 1)
3538
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
36-
else if(themeMode == 2)
39+
else if (themeMode == 2)
3740
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
3841
}
3942
}

app/src/main/java/com/deadend/killmyapps/MainActivity.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
package com.deadend.killmyapps;
22

3+
import android.content.Intent;
4+
import android.net.Uri;
35
import android.os.Bundle;
46
import android.view.Menu;
57
import android.view.MenuItem;
6-
import android.widget.Toast;
78

89
import androidx.annotation.NonNull;
910
import androidx.appcompat.app.AppCompatActivity;
10-
import androidx.appcompat.app.AppCompatDelegate;
1111
import androidx.navigation.NavController;
1212
import androidx.navigation.Navigation;
1313
import androidx.navigation.ui.NavigationUI;
@@ -38,8 +38,11 @@ public boolean onCreateOptionsMenu(Menu menu) {
3838

3939
@Override
4040
public boolean onOptionsItemSelected(@NonNull MenuItem item) {
41-
if (item.getItemId() == R.id.coffee)
42-
Toast.makeText(this, "support", Toast.LENGTH_SHORT).show();
41+
if (item.getItemId() == R.id.coffee) {
42+
String url = "https://github.com/evil22live/Kill-My-Apps/";
43+
Intent urlIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
44+
startActivity(urlIntent);
45+
}
4346
return super.onOptionsItemSelected(item);
4447
}
4548

0 commit comments

Comments
 (0)