Skip to content

Commit

Permalink
接入Bugly追踪崩溃
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiming authored and Qiming committed Jun 16, 2022
1 parent a822c7b commit 8089716
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
![demo4](https://github.com/woxingxiao/BubbleSeekBar/blob/master/screenshot/demo4.gif)

## Download
** forked verison (upgraded to use AndroidX?) and deliver via Jitpack.io **
** forked version (upgraded to use AndroidX) and deliver via Jitpack.io **
```groovy
implementation 'com.github.luqiming666:BubbleSeekBar:3.50'
implementation 'com.github.luqiming666:BubbleSeekBar:3.51'
```

The **LATEST_VERSION**: [![Download](https://api.bintray.com/packages/woxingxiao/maven/bubbleseekbar/images/download.svg)](https://bintray.com/woxingxiao/maven/bubbleseekbar/_latestVersion)
Expand Down
5 changes: 5 additions & 0 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
![demo3](https://github.com/woxingxiao/BubbleSeekBar/blob/master/screenshot/demo3.gif)
![demo4](https://github.com/woxingxiao/BubbleSeekBar/blob/master/screenshot/demo4.gif)
## Download
** forked version (upgraded to use AndroidX) and deliver via Jitpack.io **
```groovy
implementation 'com.github.luqiming666:BubbleSeekBar:3.51'
```

The **LATEST_VERSION**[![Download](https://api.bintray.com/packages/woxingxiao/maven/bubbleseekbar/images/download.svg)](https://bintray.com/woxingxiao/maven/bubbleseekbar/_latestVersion)
```groovy
dependencies {
Expand Down
12 changes: 7 additions & 5 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ android {
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'

testImplementation 'junit:junit:4.12'
implementation 'com.tencent.bugly:crashreport:4.0.4'

testImplementation 'junit:junit:4.13.2'
implementation project(':bubbleseekbar')
}
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
<manifest package="com.xw.samlpe.bubbleseekbar"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import android.view.MenuItem;
import android.view.View;

import com.tencent.bugly.crashreport.CrashReport;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
Expand All @@ -20,6 +22,10 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

// Bugly configurations
CrashReport.initCrashReport(this, "451ccbc490", false); // bound with QQ
CrashReport.setIsDevelopmentDevice(this, BuildConfig.DEBUG);

Toolbar toolbar = findViewById(R.id.toolbar);
setSupportActionBar(toolbar);

Expand Down Expand Up @@ -101,6 +107,9 @@ public boolean onOptionsItemSelected(MenuItem item) {
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
} else if (id == R.id.action_close) {
finish();
return true;
}

return super.onOptionsItemSelected(item);
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/menu/menu_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never"/>
<item
android:id="@+id/action_close"
android:orderInCategory="101"
android:title="@string/action_close"
app:showAsAction="never"/>
</menu>
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<resources>
<string name="app_name">BubbleSeekBar</string>
<string name="action_settings">Settings</string>
<string name="action_close">Close</string>
<string name="set_random_progress">set random progress</string>
</resources>
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.0'
classpath 'com.novoda:bintray-release:0.9'
classpath 'com.android.tools.build:gradle:7.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down

0 comments on commit 8089716

Please sign in to comment.