-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: added native crash handler #2450
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
Open
RohitKushvaha01
wants to merge
8
commits into
Acode-Foundation:main
Choose a base branch
from
RohitKushvaha01:feature/crash-handler
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,605
−2,030
Open
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9599de8
feat: added native crash handler
RohitKushvaha01 d25db1a
feat: fix cordova http
RohitKushvaha01 f8d82ae
Update src/plugins/cordova-plugin-crashhandler/src/android/CrashActiv…
RohitKushvaha01 824af6f
fix: quality issues
RohitKushvaha01 a612e9c
fix: conflicts
RohitKushvaha01 c815121
Merge branch 'main' into feature/crash-handler
bajrangCoder dc8d2e1
feat(crash-handler): sync crash UI colors with app theme
bajrangCoder deb6a11
catch Throwable instead of Exception to prevent silent failures
bajrangCoder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "name": "cordova-plugin-crashhandler", | ||
| "version": "1.0.0", | ||
| "description": "Dedicated Cordova plugin for crash handling in Acode, supporting native and JS crashes even when the app is completely unrecoverable.", | ||
| "cordova": { | ||
| "id": "cordova-plugin-crashhandler", | ||
| "platforms": [ | ||
| "android" | ||
| ] | ||
| }, | ||
| "keywords": [ | ||
| "ecosystem:cordova", | ||
| "cordova-android", | ||
| "crash", | ||
| "handler" | ||
| ], | ||
| "author": "Rohit Kushvaha", | ||
| "license": "MIT" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" | ||
| xmlns:android="http://schemas.android.com/apk/res/android" | ||
| id="cordova-plugin-crashhandler" | ||
| version="1.0.0"> | ||
| <name>CrashHandler</name> | ||
| <description>Dedicated crash handling plugin for Android</description> | ||
| <license>MIT</license> | ||
|
|
||
| <platform name="android"> | ||
| <config-file target="res/xml/config.xml" parent="/*"> | ||
| <feature name="CrashHandler"> | ||
| <param name="android-package" value="com.foxdebug.crashhandler.CrashHandler"/> | ||
| <param name="onload" value="true" /> | ||
| </feature> | ||
| </config-file> | ||
|
|
||
| <config-file parent="./application" target="AndroidManifest.xml"> | ||
| <activity | ||
| android:name="com.foxdebug.crashhandler.CrashActivity" | ||
| android:process=":crash" | ||
| android:theme="@style/Theme.AppCompat.DayNight.NoActionBar" | ||
| android:exported="false" | ||
| android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" | ||
| android:launchMode="singleInstance"> | ||
| </activity> | ||
| </config-file> | ||
|
|
||
| <source-file src="src/android/CrashHandler.java" target-dir="src/com/foxdebug/crashhandler"/> | ||
| <source-file src="src/android/CrashActivity.java" target-dir="src/com/foxdebug/crashhandler"/> | ||
| </platform> | ||
| </plugin> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.