-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from OurEra/v4x
Release for v5.0.0
- Loading branch information
Showing
26 changed files
with
164 additions
and
61 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
56 changes: 56 additions & 0 deletions
56
QNDroidRTCDemo/app/src/main/java/com/qiniu/droid/rtc/demo/RTCApplication.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,56 @@ | ||
package com.qiniu.droid.rtc.demo; | ||
|
||
import android.app.Application; | ||
import android.content.Context; | ||
import android.util.Log; | ||
|
||
import com.qiniu.droid.rtc.QNFileLogHelper; | ||
import com.qiniu.droid.rtc.demo.utils.ToastUtils; | ||
import com.qiniu.droid.rtc.demo.utils.Utils; | ||
|
||
import java.io.File; | ||
|
||
import xcrash.TombstoneManager; | ||
import xcrash.XCrash; | ||
|
||
public class RTCApplication extends Application { | ||
private static final String TAG = "RTCApplication"; | ||
|
||
@Override | ||
protected void attachBaseContext(Context base) { | ||
super.attachBaseContext(base); | ||
|
||
Log.i(TAG, "external file path = " + getExternalFilesDir(null)); | ||
xcrash.XCrash.init(this, new XCrash.InitParameters() | ||
.setLogDir(getExternalFilesDir(null).getAbsolutePath()) | ||
.setJavaDumpNetworkInfo(false) | ||
.setNativeDumpNetwork(false) | ||
.setNativeDumpAllThreads(false) | ||
.setAppVersion(Utils.getVersion(this))); | ||
checkToUploadCrashFiles(); | ||
} | ||
|
||
private void checkToUploadCrashFiles() { | ||
File crashFolder = new File(getExternalFilesDir(null).getAbsolutePath()); | ||
File[] crashFiles = crashFolder.listFiles(); | ||
if (crashFiles == null) { | ||
return; | ||
} | ||
for (File crashFile : crashFiles) { | ||
if (crashFile.isFile()) { | ||
QNFileLogHelper.getInstance().reportLogFileByPath(crashFile.getPath(), new QNFileLogHelper.LogReportCallback() { | ||
@Override | ||
public void onReportSuccess(String name) { | ||
ToastUtils.showShortToast(RTCApplication.this, "崩溃日志已上传!"); | ||
TombstoneManager.deleteTombstone(crashFile.getPath()); | ||
} | ||
|
||
@Override | ||
public void onReportError(String name, String errorMsg) { | ||
ToastUtils.showShortToast(RTCApplication.this, "崩溃日志上传失败 : " + errorMsg); | ||
} | ||
}); | ||
} | ||
} | ||
} | ||
} |
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
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
Binary file modified
BIN
+2.99 MB
(560%)
QNDroidRTCDemo/app/src/main/jniLibs/arm64-v8a/libQPlayer.so
Binary file not shown.
Binary file modified
BIN
+447 KB
(120%)
QNDroidRTCDemo/app/src/main/jniLibs/arm64-v8a/libqcOpenSSL.so
Binary file not shown.
Binary file modified
BIN
+1.59 MB
(120%)
QNDroidRTCDemo/app/src/main/jniLibs/arm64-v8a/libqndroid_rtc.so
Binary file not shown.
Binary file modified
BIN
+3.02 MB
(830%)
QNDroidRTCDemo/app/src/main/jniLibs/armeabi-v7a/libQPlayer.so
Binary file not shown.
Binary file modified
BIN
+412 KB
(120%)
QNDroidRTCDemo/app/src/main/jniLibs/armeabi-v7a/libqcOpenSSL.so
Binary file not shown.
Binary file modified
BIN
+844 KB
(120%)
QNDroidRTCDemo/app/src/main/jniLibs/armeabi-v7a/libqndroid_rtc.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.