mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-08 11:34:07 +08:00
Changed!: Move Termux specific classes to com.termux.shared.termux package
This will allow segregation of Termux utils/classes from general ones and also allow easier management of GPLv3 License for Termux classes
This commit is contained in:
@@ -8,7 +8,7 @@ import com.termux.shared.file.FileUtils;
|
||||
import com.termux.shared.logger.Logger;
|
||||
import com.termux.shared.markdown.MarkdownUtils;
|
||||
import com.termux.shared.models.errors.Error;
|
||||
import com.termux.shared.termux.AndroidUtils;
|
||||
import com.termux.shared.android.AndroidUtils;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
|
@@ -1,31 +0,0 @@
|
||||
package com.termux.shared.crash;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.termux.shared.termux.TermuxConstants;
|
||||
import com.termux.shared.termux.TermuxUtils;
|
||||
|
||||
public class TermuxCrashUtils implements CrashHandler.CrashHandlerClient {
|
||||
|
||||
/**
|
||||
* Set default uncaught crash handler of current thread to {@link CrashHandler} for Termux app
|
||||
* and its plugin to log crashes at {@link TermuxConstants#TERMUX_CRASH_LOG_FILE_PATH}.
|
||||
*/
|
||||
public static void setCrashHandler(@NonNull final Context context) {
|
||||
CrashHandler.setCrashHandler(context, new TermuxCrashUtils());
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public String getCrashLogFilePath(Context context) {
|
||||
return TermuxConstants.TERMUX_CRASH_LOG_FILE_PATH;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getAppInfoMarkdownString(Context context) {
|
||||
return TermuxUtils.getAppInfoMarkdownString(context, true);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user