Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IMSDK_Demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王文龙
IMSDK_Demo
Commits
7f1b5c8d
Commit
7f1b5c8d
authored
Dec 28, 2020
by
王文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add]添加bugly
parent
556ccc3b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
build.gradle
app/build.gradle
+7
-1
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+2
-4
MyApp.java
app/src/main/java/com/offcn/imclient/MyApp.java
+4
-1
No files found.
app/build.gradle
View file @
7f1b5c8d
...
...
@@ -94,9 +94,14 @@ dependencies {
implementation
'com.android.support:multidex:1.0.3'
implementation
(
"com.offcn.live:titleview:1.1.0-s1"
)
implementation
(
"com.offcn.live:imsdk-kit:1.0.0.3
3
"
)
implementation
(
"com.offcn.live:imsdk-kit:1.0.0.3
9
"
)
// DB
implementation
'org.greenrobot:greendao:3.2.2'
implementation
'com.android.volley:volley:1.1.1'
implementation
'com.tencent.bugly:crashreport:latest.release'
//其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9
implementation
'com.tencent.bugly:nativecrashreport:latest.release'
//其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0
}
\ No newline at end of file
app/src/main/AndroidManifest.xml
View file @
7f1b5c8d
...
...
@@ -74,13 +74,11 @@
<!-- 中公IM平台appkey-->
<meta-data
android:name=
"com.offcn.live.im.appkey"
android:value=
"offcn_live"
/>
<!-- android:value="461cea0d0f9e6969b8a40eef697b0457" />-->
android:value=
"d5b410cddbcb4f3a972cfdc697daff43"
/>
<!-- android:value="offcn_live" />-->
<meta-data
android:name=
"com.offcn.live.im.appsecret"
android:value=
"offcn_im"
/>
<!-- android:value="80b0d072d5a4" />-->
android:value=
"b23f77e463ac4e9388b3c0b4ee9b8ed0"
/>
<!-- android:value="offcn_im" />-->
<!--华为推送。根目录下添加 agconnect-services.json,由华为开放平台自行获取-->
...
...
app/src/main/java/com/offcn/imclient/MyApp.java
View file @
7f1b5c8d
...
...
@@ -14,6 +14,7 @@ import com.offcn.live.im.OIMSDK;
import
com.offcn.live.im.bean.OIMMsg
;
import
com.offcn.live.im.bean.OIMUserInfo
;
import
com.offcn.live.im.util.ZGLLogUtils
;
import
com.tencent.bugly.crashreport.CrashReport
;
import
java.util.logging.LogManager
;
...
...
@@ -23,7 +24,7 @@ import androidx.multidex.MultiDexApplication;
public
class
MyApp
extends
MultiDexApplication
{
private
static
final
String
TAG
=
MyApp
.
class
.
getSimpleName
();
private
boolean
mEnvIsTest
=
tru
e
;
private
boolean
mEnvIsTest
=
fals
e
;
@Override
protected
void
attachBaseContext
(
Context
base
)
{
...
...
@@ -38,6 +39,8 @@ public class MyApp extends MultiDexApplication {
Constants
.
ENV_IS_TEST
=
mEnvIsTest
;
// 初始化 OIMSDK
initOIMSDK
();
// bugly
CrashReport
.
initCrashReport
(
getApplicationContext
(),
"8cda8831f2"
,
true
);
}
private
void
initOIMSDK
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment