0.1.8 • Published 2 years ago

dianvo-native-bugly v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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