Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #16

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/build-release-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Latest build(release)

on:
workflow_dispatch:
branches:
- master

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/.gradle
/.idea
/*/build
/output
/build
/settings.json
/app/app_config.json
/app/libraries.json
/app/repositories.json
/app/repositories.json
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
An useful tool for Android Developers & Reversers, which shows the package name and class name of current activity which you are in
<br/><br/>

[![App](https://img.shields.io/badge/Current%20Activity-1.5.5-blue?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxLjUpIj48cG9seWxpbmUgcG9pbnRzPSI1LjI0NSAxMy4yODEgOC4yMzggOS4zOTEgMTEuNjUyIDEyLjA3MyAxNC41ODEgOC4yOTMiLz48Y2lyY2xlIGN4PSIxNy45OTUiIGN5PSIyLjciIHI9IjEuOTIyIi8+PHBhdGggZD0iTTEyLjkyNDQ4NTIsMS42MjAxMzczMSBMNS42NTY3NTA2LDEuNjIwMTM3MzEgQzIuNjQ1MzA4OTQsMS42MjAxMzczMSAwLjc3ODAzMjA0MSwzLjc1Mjg2MDQzIDAuNzc4MDMyMDQxLDYuNzY0MzAyMDkgTDAuNzc4MDMyMDQxLDE0Ljg0NjY4MiBDMC43NzgwMzIwNDEsMTcuODU4MTIzNyAyLjYwODY5NTY3LDE5Ljk4MTY5MzUgNS42NTY3NTA2LDE5Ljk4MTY5MzUgTDE0LjI2MDg2OTYsMTkuOTgxNjkzNSBDMTcuMjcyMzExMywxOS45ODE2OTM1IDE5LjEzOTU4ODIsMTcuODU4MTIzNyAxOS4xMzk1ODgyLDE0Ljg0NjY4MiBMMTkuMTM5NTg4Miw3LjgwNzc4MDM2Ii8+PC9nPjwvc3ZnPg==)](https://github.com/RatulHasan8/Current-Activity/releases/tag/app-n-source)
[![App](https://img.shields.io/badge/Current%20Activity-1.5.8-blue?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMiAxLjUpIj48cG9seWxpbmUgcG9pbnRzPSI1LjI0NSAxMy4yODEgOC4yMzggOS4zOTEgMTEuNjUyIDEyLjA3MyAxNC41ODEgOC4yOTMiLz48Y2lyY2xlIGN4PSIxNy45OTUiIGN5PSIyLjciIHI9IjEuOTIyIi8+PHBhdGggZD0iTTEyLjkyNDQ4NTIsMS42MjAxMzczMSBMNS42NTY3NTA2LDEuNjIwMTM3MzEgQzIuNjQ1MzA4OTQsMS42MjAxMzczMSAwLjc3ODAzMjA0MSwzLjc1Mjg2MDQzIDAuNzc4MDMyMDQxLDYuNzY0MzAyMDkgTDAuNzc4MDMyMDQxLDE0Ljg0NjY4MiBDMC43NzgwMzIwNDEsMTcuODU4MTIzNyAyLjYwODY5NTY3LDE5Ljk4MTY5MzUgNS42NTY3NTA2LDE5Ljk4MTY5MzUgTDE0LjI2MDg2OTYsMTkuOTgxNjkzNSBDMTcuMjcyMzExMywxOS45ODE2OTM1IDE5LjEzOTU4ODIsMTcuODU4MTIzNyAxOS4xMzk1ODgyLDE0Ljg0NjY4MiBMMTkuMTM5NTg4Miw3LjgwNzc4MDM2Ii8+PC9nPjwvc3ZnPg==)](https://github.com/RatulHasan8/Current-Activity/releases/tag/app-n-source)
[![SDK](https://img.shields.io/badge/Android-5.0%20and%20up-brightgreen?logo=android&logoColor=white)](https://github.com/RatulHasan8/Current-Activity/releases/tag/app-n-source)
[![License](https://img.shields.io/badge/License-GPL-red?logo=gnu&logoColor=white)](https://github.com/RatulHasan8/Current-Activity/blob/main/LICENSE)
[![Maintenance](https://img.shields.io/badge/Maintained-Yes-green?logo=data:image/svg+xml;base64,PHN2ZyBpZD0iQ2FwYV8xIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIuMjYgNTEyLjI2IiBoZWlnaHQ9IjUxMiIgdmlld0JveD0iMCAwIDUxMi4yNiA1MTIuMjYiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0ZGRkZGRiI+PHBhdGggZD0ibTM3MC4xMTkgMjgwLjYzNS0zNC4xMzkgMzQuMTM5LTM0LjE3NS0zNC4xNzUgODEuOTk2LTgxLjk5NmM5LjAxNCAyLjUzOCAxOC4yMTYgMy43NzkgMjcuM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MjMuNTMyLTkuNzQ3bC01My42OTItNTMuNjkyIDQ3LjA2NC00Ny4wNjQgNTMuNjkyIDUzLjY5MmMxMi45NzUgMTIuOTc1IDEyLjk3NSAzNC4wODggMCA0Ny4wNjR6Ii8+PHBhdGggZD0ibTEwNi42MjkgMzU2LjQ0NGMtMTMuMjAzIDAtMjUuNjE2IDUuMTQyLTM0Ljk1MSAxNC40NzgtOS4zMzYgOS4zMzYtMTQuNDc4IDIxLjc0OC0xNC40NzggMzQuOTUxczUuMTQyIDI1LjYxNSAxNC40NzcgMzQuOTUxYzkuMzM2IDkuMzM2IDIxLjc0OSAxNC40NzggMzQuOTUyIDE0LjQ3OHMyNS42MTUtNS4xNDIgMzQuOTUyLTE0LjQ3OGMxOS4yNzEtMTkuMjcyIDE5LjI3MS01MC42MzEgMC02OS45MDItOS4zMzYtOS4zMzYtMjEuNzQ5LTE0LjQ3OC0zNC45NTItMTQuNDc4em0xMy43MzkgNjMuMTY3Yy0zLjY3IDMuNjY5LTguNTQ5IDUuNjktMTMuNzM4IDUuNjktNS4xOSAwLTEwLjA2OC0yLjAyMS0xMy43MzgtNS42OS0zLjY2OS0zLjY3LTUuNjktOC41NDktNS42OS0xMy43MzhzMi4wMjEtMTAuMDY4IDUuNjkxLTEzLjczOGMzLjY2OS0zLjY3IDguNTQ4LTUuNjkgMTMuNzM4LTUuNjkgNS4xODkgMCAxMC4wNjggMi4wMjEgMTMuNzM4IDUuNjkgNy41NzMgNy41NzUgNy41NzMgMTkuOTAxLS4wMDEgMjcuNDc2eiIvPjwvZz48L3N2Zz4=)](https://github.com/RatulHasan8/Current-Activity/graphs/commit-activity)
Expand Down
8 changes: 2 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 31
compileSdkVersion 30
defaultConfig {
applicationId "io.github.ratul.topactivity"
minSdkVersion 21
Expand All @@ -27,9 +27,5 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.6.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.0'
implementation 'androidx.preference:preference:1.2.0'
implementation 'androidx.core:core:1.7.0'
implementation 'com.android.support:support-v4:26.0.1'
}
5 changes: 4 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-keep public class io.github.ratul.topactivity.view.** {
-android
-microedition
-dontpreverify
-keep public class android.view.** {
public private protected *;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,36 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package io.github.ratul.topactivity.view;
package android.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Typeface;
import android.util.AttributeSet;
import com.google.android.material.textview.MaterialTextView;
import android.widget.TextView;

public class RegularTextView extends MaterialTextView {
public void setRegularFont(Context context) {
Typeface face = Typeface.createFromAsset(context.getAssets(), "fonts/google_sans_regular.ttf");
super.setTypeface(face, 1);
}
public class BoldTextView extends TextView {
public void setBoldFont(Context context) {
Typeface face = Typeface.createFromAsset(context.getAssets(), "fonts/google_sans_bold.ttf");
super.setTypeface(face);
}

public RegularTextView(Context context) {
super(context);
setRegularFont(context);
}
public BoldTextView(Context context) {
super(context);
setBoldFont(context);
}

public RegularTextView(Context context, AttributeSet attrs) {
super(context, attrs);
setRegularFont(context);
}
public BoldTextView(Context context, AttributeSet attrs) {
super(context, attrs);
setBoldFont(context);
}

public RegularTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
setRegularFont(context);
}
public BoldTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
setBoldFont(context);
}

protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
}
protected void onDraw (Canvas canvas) {
super.onDraw(canvas);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package io.github.ratul.topactivity.view;
package android.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Typeface;
import android.util.AttributeSet;
import com.google.android.material.textview.MaterialTextView;
import android.widget.TextView;
import android.widget.Toast;

public class NormalTextView extends MaterialTextView {
public class NormalTextView extends TextView {
public void setRegularFont(Context context) {
Typeface face = Typeface.createFromAsset(context.getAssets(), "fonts/google_sans_regular.ttf");
super.setTypeface(face);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,37 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package io.github.ratul.topactivity.view;
package android.view;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Typeface;
import android.util.AttributeSet;
import com.google.android.material.textview.MaterialTextView;
import android.widget.TextView;
import android.widget.Toast;

public class BoldTextView extends MaterialTextView {
public void setBoldFont(Context context) {
Typeface face = Typeface.createFromAsset(context.getAssets(), "fonts/google_sans_bold.ttf");
super.setTypeface(face);
}
public class RegularTextView extends TextView {
public void setRegularFont(Context context) {
Typeface face = Typeface.createFromAsset(context.getAssets(), "fonts/google_sans_regular.ttf");
super.setTypeface(face, 1);
}

public BoldTextView(Context context) {
super(context);
setBoldFont(context);
}
public RegularTextView(Context context) {
super(context);
setRegularFont(context);
}

public BoldTextView(Context context, AttributeSet attrs) {
super(context, attrs);
setBoldFont(context);
}
public RegularTextView(Context context, AttributeSet attrs) {
super(context, attrs);
setRegularFont(context);
}

public BoldTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
setBoldFont(context);
}
public RegularTextView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
setRegularFont(context);
}

protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
}
protected void onDraw (Canvas canvas) {
super.onDraw(canvas);
}
}
60 changes: 30 additions & 30 deletions app/src/main/java/io/github/ratul/topactivity/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,35 @@
import android.os.Environment;

public class App extends Application {

private static App sApp;

@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
sApp = this;
CrashHandler.getInstance(getApp()).init();
}

@Override
public void onCreate() {
super.onCreate();
}

public static String getCrashLogDir() {
return getCrashLogFolder().getAbsolutePath();
}

public static File getCrashLogFolder() {
return sApp.getExternalFilesDir(null);
}

public static App getApp() {
return sApp;
}

public static void showToast(String str, int length) {
Toast.makeText(getApp(), str, length).show();
}
private static App sApp;
private Thread.UncaughtExceptionHandler defaultHandler = Thread.getDefaultUncaughtExceptionHandler();
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
new CrashHandler(this, defaultHandler).init(this.getFilesDir());
}

@Override
public void onCreate() {
super.onCreate();
sApp = this;
}
public static String getCrashLogDir() {
return getCrashLogFolder().getAbsolutePath();
}
public static File getCrashLogFolder() {
return sApp.getFilesDir();
}

public static App getApp() {
return sApp;
}
public static void showToast(String str, int length) {
Toast.makeText(getApp(), str, length).show();
}

}
Loading