Bugtags Android SDK


Source link: https://github.com/bugtags/Bugtags-Android

Bugtags Android SDK

###??????? README_CN ###QQ tribe for help: 210286347

[Bugtags] for Android, reports bugs and their diagnosis information in one step, captures crashes automatically. Improve your apps anywhere, anytime.

Create a free account and invite your team to improve your apps.

Download demo app here: DEMO.apk

If you are using Eclipse for Android development, visit [SDK for Eclipse] to download SDK.

Bugtags also support iOS !

We are going to support English language in September.

Features

  1. Take snapshot of bug, add tags to describe the bug.
  2. Automatically collect device and app context data following reporting bugs.
  3. Automatically capture crashes.
  4. Bug lifecycle management.

Usage

Install using gradle

Step 1:

  • Setup buildscript dependencies in Top-level build.gradle file:
buildscript {

  repositories {

jcenter()

mavenCentral()
  
}

  dependencies {

classpath 'com.android.tools.build:gradle:1.2.3'

 classpath 'com.bugtags.library:bugtags-gradle:latest.integration'
  
}
 
}
 allprojects {

  repositories {

jcenter()

mavenCentral()
  
}
 
}
  • Add plugin and dependency in your module's build.gradle file?
 android {

compileSdkVersion ...

 defaultConfig {

 ndk {

  // setup so arch

  abiFilters 'armeabi'// 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64', 'mips', 'mips64'

 
}

}

  
}

//applu Bugtags plugin
  apply plugin: 'com.bugtags.library.plugin'

//Bugtags config
  bugtags {

//upload mapping file

appKey "APP_KEY"

  appSecret "APP_SECRET"

mappingUploadEnabled true

 trackingNetworkEnabled true
  
}

dependencies {

...

compile 'com.bugtags.library:bugtags-lib:latest.integration'
  
}

Step 2:

  • Add three callbacks in your base Activity class:

 package your.package.name;
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.MotionEvent;
  import com.bugtags.library.Bugtags;

public class BaseActivity extends Activity{

@Override

protected void onResume() {

 super.onResume();

  Bugtags.onResume(this);

}

 @Override

protected void onPause() {

 super.onPause();

  Bugtags.onPause(this);

}

 @Override

public boolean dispatchTouchEvent(MotionEvent event) {

 Bugtags.onDispatchTouchEvent(this, event);

  return super.dispatchTouchEvent(event);

}

  
}

  ```  ## Step 3: * Create subclass of Application?initialize Bugtags in onCreate() method:  ```java public class MyApplication extends Application {

@Override
  public void onCreate() {

super.onCreate();

//initialize here

Bugtags.start("YOUR APPKEY", this, Bugtags.BTGInvocationEventBubble);

  
}
 
}
 
  • Modify AndroidManifest.xml?use MyApplication:
<application
  android:name=".MyApplication"
  android:label="@string/app_name"
  android:theme="@style/AppTheme" >
  .... </application>

Step 4?ProGuard


 # ProGuard configurations for Bugtags

 -keepattributes LineNumberTable,SourceFile

  -keep class com.bugtags.library.** {
*;
}

 -dontwarn com.bugtags.library.**

 -keep class io.bugtags.** {
*;
}

 -dontwarn io.bugtags.**

 -dontwarn org.apache.http.**

 -dontwarn android.net.http.AndroidHttpClient

# End Bugtags 

For more information about Android Studio and gradle, please visit: [Android Developer Site].

There you go!

Explore

  1. Invoke event:
  • BTGInvocationEventBubble: Show floating circle in app.
  • BTGInvocationEventShake: Show floating circle by shake.
  • BTGInvocationEventNone: Show no floating circle, capture crash bug only(if allow), this is recommended to be used in release build.
  1. Send caught exception:
  • Bugtags.sendException(Throwable ex);
  1. Send feedback:
  • Bugtags.sendFeedback(String msg);

Canary Channel

We are offering a bleeding edge builds on canary chanel, you can enjoy the new features in the first place!

Canry: https://en.wikipedia.org/wiki/Canary

  • Add repository in your project's build.gradle
buildscript {

  repositories {

mavenCentral()

jcenter()

maven{

 url "https://dl.bintray.com/bugtags/maven"//added

}

  
}

  dependencies {

classpath 'com.android.tools.build:gradle:1.3.0'

classpath 'com.bugtags.library-canary:bugtags-gradle:latest.integration'//modify
  
}
 
}
 allprojects {

  repositories {

jcenter()

mavenCentral()

maven{

 url "https://dl.bintray.com/bugtags/maven"//added

}

  
}
 
}
  • Change your dependency in your module's build.gradle
apply plugin: 'com.bugtags.library.plugin'  dependencies {

 compile 'com.bugtags.library-canary:bugtags-lib:latest.integration'//modify 
}

Change log

see in releases

License

This demo is BSD-licensed.

Resources

MvpCleanArchitecture is a sample project using Clean architecture and MVP.

Adroit is a smart way to develop android applications. Enhance your application development skills by providing safe checks and speed up development process.

IconicDroid is a custom Android Drawable which allows to draw icons from several iconic font.

Sometimes we want/need to know what's going on behind the scenes but our app is not always connected to our computer to let us check the logs. Galgo will let you display your log messages as an overlay on top of your UI.

Extremely useful for testers who want to have more insight into what's going on behind the scenes in our apps when it misbehaves.

You can also define some basic settings such as background color, text color, text size and number of lines to display on screen so it better fits your needs.

android-weak-handler is a memory safer implementation of android.os.Handler.

Original implementation of Handler always keeps hard reference to handler in queue of execution. Any object in Message or Runnable posted to android.os.Handler will be hard referenced for some time. If you create anonymous Runnable and call to postDelayed with large timeout, that Runnable will be held in memory until timeout passes. Even if your Runnable seems small, it indirectly references owner class, which is usually something as big as Activity or Fragment.

A custom View class implementing a rating bar with 10 stars. The user can touch or swipe to select a rating between 1 and 10. The StarBar supports three rating ranges (red, yellow and green) that are indicated by different colored stars.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes