Skip to content

Commit b2ba308

Browse files
authored
Merge pull request #3 from jkas-dbt/dev
Updating Gradle and deletion of unnecessary files
2 parents 08ce992 + ca3f067 commit b2ba308

File tree

31 files changed

+311
-651
lines changed

31 files changed

+311
-651
lines changed

app/build.gradle

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,19 @@ plugins {
33
}
44

55
android {
6-
compileSdk 34
7-
buildToolsVersion "34.0.4"
8-
9-
namespace 'jkas.androidpe'
6+
compileSdk rootProject.ext.compileSdk
7+
buildToolsVersion rootProject.ext.buildTools
108

9+
namespace rootProject.ext.packageName
1110
defaultConfig {
12-
applicationId "jkas.androidpe"
11+
applicationId rootProject.ext.packageName
12+
minSdkVersion rootProject.ext.minSdk
13+
targetSdkVersion rootProject.ext.targetSdk
14+
versionCode rootProject.ext.versionCode
15+
versionName rootProject.ext.versionName
1316
vectorDrawables.useSupportLibrary = true
1417
}
1518

16-
buildTypes {
17-
release {
18-
minifyEnabled true
19-
shrinkResources true
20-
zipAlignEnabled true
21-
}
22-
}
23-
2419
compileOptions {
2520
sourceCompatibility JavaVersion.VERSION_17
2621
targetCompatibility JavaVersion.VERSION_17
@@ -29,6 +24,10 @@ android {
2924
buildFeatures {
3025
viewBinding true
3126
}
27+
28+
lintOptions {
29+
checkReleaseBuilds false
30+
}
3231
}
3332

3433
dependencies {
@@ -59,4 +58,4 @@ dependencies {
5958
implementation libs.zip4j
6059
implementation libs.lottie
6160
implementation libs.androidsvg
62-
}
61+
}

app/src/main/java/jkas/androidpe/app/CrashHandler.java

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import java.text.SimpleDateFormat;
2929
import java.util.Date;
3030
import jkas.androidpe.resourcesUtils.utils.ResourcesValuesFixer;
31+
import jkas.codeUtil.Files;
3132

3233
public final class CrashHandler {
3334

@@ -97,12 +98,8 @@ private static void tryUncaughtException(
9798
sb.append("************* Crash End ****************\n");
9899

99100
String errorLog = sb.toString();
100-
101-
try {
102-
writeFile(crashFile, errorLog);
103-
} catch (IOException ignored) {
104-
}
105-
101+
Files.writeFile(crashFile.getAbsolutePath(), errorLog);
102+
106103
Intent intent = new Intent(app, CrashActivity.class);
107104
intent.addFlags(
108105
Intent.FLAG_ACTIVITY_NEW_TASK
@@ -120,17 +117,6 @@ private static void tryUncaughtException(
120117
}
121118
}
122119

123-
private static void writeFile(File file, String content) throws IOException {
124-
File parentFile = file.getParentFile();
125-
if (parentFile != null && !parentFile.exists()) {
126-
parentFile.mkdirs();
127-
}
128-
file.createNewFile();
129-
try (FileOutputStream fos = new FileOutputStream(file)) {
130-
fos.write(content.getBytes());
131-
}
132-
}
133-
134120
public static final class CrashActivity extends AppCompatActivity
135121
implements MenuItem.OnMenuItemClickListener {
136122
static final String EXTRA_CRASH_INFO = "crashInfo";

app/src/main/java/jkas/androidpe/preferences/AboutCategory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private void addData() {
5050
new Intent(
5151
Intent.ACTION_VIEW,
5252
Uri.parse(
53-
"https://github.com/jkas-dbt/AndroidPE/releases/tag/v1.3-alpha")));
53+
"https://github.com/jkas-dbt/AndroidPE/releases/tag/v1.3")));
5454
return true;
5555
});
5656
aboutCategory.addPreference(changelog);

app/src/main/res/layout/activity_about_app.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
android:textSize="8dp"
9090
android:textColor="?colorTertiary"
9191
android:typeface="monospace"
92-
android:text="v1.3-alpha (181102)"
92+
android:text="v1.3 (181102)"
9393
android:textStyle="bold" />
9494

9595
</LinearLayout>

0 commit comments

Comments
 (0)