Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-bjy-bugly

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-bjy-bugly

react-native-bugly

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-bugly

Getting started

$ yarn add git+https://github.com/react-native-bjy-bugly.git

Mostly automatic installation

$ react-native link react-native-bjy-bugly

配置

iOS

使用 Bugly 的 Info.plist 配置初始化信息 Bugly 支持读取 Info.plist 文件读取 SDK 初始化参数,可配置的参数如下:

  • Appid
    • Key: BuglyAppIDString
    • Value: 字符串类型
  • 渠道标识
    • Key: BuglyAppChannelString
    • Value: 字符串类型
  • 版本信息
    • Key: BuglyAppVersionString
    • Value: 字符串类型
  • 开启 Debug 信息显示
    • Key: BuglyDebugEnable
    • Value: BOOL 类型

Manual installation

iOS

node node_modules/react-native-bugly/scripts/postlink

Android
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNBuglyPackage; to the imports at the top of the file
  • Add new RNBuglyPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-bugly'
    project(':react-native-bugly').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-bugly/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-bugly')
    

Usage

Android

AppDelegate.m

#import "RNBugly.h"
-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  //Add Bugly
  [RNBugly startWithAppId];
}

src/main/java/your_project/MainApplication

import com.tencent.bugly.crashreport.CrashReport;

@Override
public void onCreate() {
  super.onCreate();
  //bugly
  CrashReport.initCrashReport(getApplicationContext());

  ...
}
import RNBugly from "react-native-bugly";

RNBugly.updateAppVersion(version);
RNBugly.setUserIdentifier(userId);

Keywords

FAQs

Package last updated on 18 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc