Skip to content

Commit 42ef8aa

Browse files
committed
Test
2 parents 69aa170 + af8a2d0 commit 42ef8aa

27 files changed

+1163
-1632
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/.gradle
2-
/.resources
32
/.idea
43
/*/build
54
/build
5+
/settings.json
6+
/app/app_config.json
7+
/app/libraries.json
8+
/app/repositories.json

app/build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 30
4+
compileSdkVersion 31
55
defaultConfig {
66
applicationId "io.github.ratul.topactivity"
77
minSdkVersion 21
@@ -27,5 +27,9 @@ android {
2727
}
2828

2929
dependencies {
30-
implementation 'com.android.support:support-v4:26.0.1'
30+
implementation 'androidx.appcompat:appcompat:1.4.1'
31+
implementation 'com.google.android.material:material:1.6.0'
32+
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
33+
implementation 'androidx.preference:preference:1.2.0'
34+
implementation 'androidx.core:core:1.7.0'
3135
}

app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
-keep public class android.view.** {
1+
-keep public class io.github.ratul.topactivity.view.** {
22
public private protected *;
33
}

app/src/main/java/io/github/ratul/topactivity/App.java

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,35 @@
2929
import android.os.Environment;
3030

3131
public class App extends Application {
32-
private static App sApp;
33-
private Thread.UncaughtExceptionHandler defaultHandler = Thread.getDefaultUncaughtExceptionHandler();
34-
35-
@Override
36-
protected void attachBaseContext(Context base) {
37-
super.attachBaseContext(base);
38-
new CrashHandler(this, defaultHandler).init(this.getFilesDir());
39-
}
40-
41-
@Override
42-
public void onCreate() {
43-
super.onCreate();
44-
sApp = this;
45-
}
46-
47-
public static String getCrashLogDir() {
48-
return getCrashLogFolder().getAbsolutePath();
49-
}
50-
51-
public static File getCrashLogFolder() {
52-
return sApp.getFilesDir();
53-
}
54-
55-
public static App getApp() {
56-
return sApp;
57-
}
58-
59-
public static void showToast(String str, int length) {
60-
Toast.makeText(getApp(), str, length).show();
61-
}
32+
33+
private static App sApp;
34+
35+
@Override
36+
protected void attachBaseContext(Context base) {
37+
super.attachBaseContext(base);
38+
sApp = this;
39+
CrashHandler.getInstance(getApp()).init();
40+
}
41+
42+
@Override
43+
public void onCreate() {
44+
super.onCreate();
45+
}
46+
47+
public static String getCrashLogDir() {
48+
return getCrashLogFolder().getAbsolutePath();
49+
}
50+
51+
public static File getCrashLogFolder() {
52+
return sApp.getExternalFilesDir(null);
53+
}
54+
55+
public static App getApp() {
56+
return sApp;
57+
}
58+
59+
public static void showToast(String str, int length) {
60+
Toast.makeText(getApp(), str, length).show();
61+
}
6262

6363
}

app/src/main/java/io/github/ratul/topactivity/dialog/DialogTheme.java

Lines changed: 0 additions & 163 deletions
This file was deleted.

0 commit comments

Comments
 (0)