dianvo-native-bugly
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

dianvo-native-bugly

基于Bugly封装的组件,现有的功能只有异常上报

note : 版本更新功能不建议使用, 推荐一站式更新解决方案

Installation

npm install dianvo-native-bugly
yarn add dianvo-native-bugly

Usage(Error report)

import {DianvoNativeBuglyType} from 'dianvo-native-bugly';
DianvoNativeBuglyType.initBuglyWithStrategy(isAndroid ? 'androidBuglyAppId' : 'IosBuglyAppId', debug);

Usage(Update, deprecated)

import {DianvoNativeBuglyType} from "dianvo-native-bugly";

DianvoNativeBuglyType.getUpgradeInfo()
.then((upgradeInfo) => {
    console.log(JSON.stringify(upgradeInfo));
    navigation.push('UpgradePage', {
        newFeature:upgradeInfo.newFeature,
        versionName:upgradeInfo.versionName,
        apkUrl:upgradeInfo.apkUrl,
        title:upgradeInfo.title,
        fileSize:upgradeInfo.fileSize
    } as UpgradeInfo);
});

Note

if you use android 9.0 and above ,please set following statement in your < application > tag

android:usesCleartextTraffic="true"

or use custom network security config

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i dianvo-native-bugly

Weekly Downloads

0

Version

0.1.8

License

MIT

Unpacked Size

269 kB

Total Files

113

Last publish

Collaborators

  • deepcodestudio