-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bc89e03
commit 539824b
Showing
6 changed files
with
108 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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 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
17 changes: 17 additions & 0 deletions
17
crash_breakpad_build/src/main/java/com/devyk/crash_module/inter/ICrash.java
This file contains 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,17 @@ | ||
package com.devyk.crash_module.inter; | ||
|
||
import android.content.Context; | ||
|
||
/** | ||
* <pre> | ||
* author : devyk on 2019-09-18 01:29 | ||
* blog : https://juejin.im/user/578259398ac2470061f3a3fb/posts | ||
* github : https://github.com/yangkun19921001 | ||
* mailbox : [email protected] | ||
* desc : This is ICrash | ||
* </pre> | ||
*/ | ||
public interface ICrash { | ||
|
||
void init(Context context,String logPath); | ||
} |
19 changes: 19 additions & 0 deletions
19
crash_breakpad_build/src/main/java/com/devyk/crash_module/inter/JavaCrashImp.java
This file contains 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 @@ | ||
package com.devyk.crash_module.inter; | ||
|
||
import android.content.Context; | ||
|
||
/** | ||
* <pre> | ||
* author : devyk on 2019-09-18 01:31 | ||
* blog : https://juejin.im/user/578259398ac2470061f3a3fb/posts | ||
* github : https://github.com/yangkun19921001 | ||
* mailbox : [email protected] | ||
* desc : This is JavaCrashImp | ||
* </pre> | ||
*/ | ||
public class JavaCrashImp implements ICrash { | ||
@Override | ||
public void init(Context context, String logPath) { | ||
|
||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
crash_breakpad_build/src/main/java/com/devyk/crash_module/inter/NativeCrashImp.java
This file contains 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,28 @@ | ||
package com.devyk.crash_module.inter; | ||
|
||
import android.content.Context; | ||
|
||
import com.devyk.crash_module.CrashUtils; | ||
|
||
/** | ||
* <pre> | ||
* author : devyk on 2019-09-18 01:30 | ||
* blog : https://juejin.im/user/578259398ac2470061f3a3fb/posts | ||
* github : https://github.com/yangkun19921001 | ||
* mailbox : [email protected] | ||
* desc : This is NativeCrashImp | ||
* </pre> | ||
*/ | ||
public class NativeCrashImp implements ICrash { | ||
|
||
static { | ||
System.loadLibrary("breakpad-core"); | ||
} | ||
|
||
private static native void initBreakpadNative(String path); | ||
|
||
@Override | ||
public void init(Context context, String logPath) { | ||
initBreakpadNative(logPath); | ||
} | ||
} |