upgrade instabug
This commit is contained in:
parent
88cee34997
commit
0deca1f874
|
@ -26,6 +26,7 @@ import im.status.ethereum.module.StatusPackage;
|
||||||
import io.realm.react.RealmReactPackage;
|
import io.realm.react.RealmReactPackage;
|
||||||
import me.alwx.HttpServer.HttpServerReactPackage;
|
import me.alwx.HttpServer.HttpServerReactPackage;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -39,7 +40,7 @@ public class MainApplication extends Application implements ReactApplication {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected List<ReactPackage> getPackages() {
|
protected List<ReactPackage> getPackages() {
|
||||||
List<ReactPackage> packages = Arrays.asList(
|
List<ReactPackage> packages = new ArrayList<ReactPackage>(Arrays.asList(
|
||||||
new MainReactPackage(),
|
new MainReactPackage(),
|
||||||
new RNNetworkInfoPackage(),
|
new RNNetworkInfoPackage(),
|
||||||
new HttpServerReactPackage(),
|
new HttpServerReactPackage(),
|
||||||
|
@ -60,7 +61,7 @@ public class MainApplication extends Application implements ReactApplication {
|
||||||
new ImageResizerPackage(),
|
new ImageResizerPackage(),
|
||||||
new PickerPackage(),
|
new PickerPackage(),
|
||||||
new WebViewBridgePackage(BuildConfig.DEBUG)
|
new WebViewBridgePackage(BuildConfig.DEBUG)
|
||||||
);
|
));
|
||||||
|
|
||||||
if (!BuildConfig.DEBUG) {
|
if (!BuildConfig.DEBUG) {
|
||||||
packages.add(new RNInstabugReactnativePackage("b239f82a9cb00464e4c72cc703e6821e", MainApplication.this, "shake"));
|
packages.add(new RNInstabugReactnativePackage("b239f82a9cb00464e4c72cc703e6821e", MainApplication.this, "shake"));
|
||||||
|
|
|
@ -6,7 +6,7 @@ target 'StatusIm' do
|
||||||
# use_frameworks!
|
# use_frameworks!
|
||||||
|
|
||||||
# Pods for StatusIm
|
# Pods for StatusIm
|
||||||
pod 'Instabug', '~> 6.0.0'
|
pod 'Instabug', '~> 7.0'
|
||||||
|
|
||||||
target 'StatusImTests' do
|
target 'StatusImTests' do
|
||||||
inherit! :search_paths
|
inherit! :search_paths
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
PODS:
|
PODS:
|
||||||
- Instabug (6.0.4)
|
- Instabug (7.2.6)
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- Instabug (~> 6.0.0)
|
- Instabug (~> 7.0)
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
Instabug: 7431c30f6e8883b2e6a9ce4b922ed51cbb25ad19
|
Instabug: 49d4fbf1bf14e2f9074dfb7774ca5611bae993b4
|
||||||
|
|
||||||
PODFILE CHECKSUM: da0b8d375a7fe107abe5b59bce9340e2fd528084
|
PODFILE CHECKSUM: b75d6ec95102ddea68ad1e171f7f8f974533bac7
|
||||||
|
|
||||||
COCOAPODS: 1.1.1
|
COCOAPODS: 1.1.1
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
|
|
||||||
#import "RCTBundleURLProvider.h"
|
#import "RCTBundleURLProvider.h"
|
||||||
#import "RCTRootView.h"
|
#import "RCTRootView.h"
|
||||||
#import <Instabug/Instabug.h>
|
|
||||||
#import "SplashScreen.h"
|
#import "SplashScreen.h"
|
||||||
|
|
||||||
@implementation AppDelegate
|
@implementation AppDelegate
|
||||||
|
@ -34,9 +33,6 @@
|
||||||
rootViewController.view = rootView;
|
rootViewController.view = rootView;
|
||||||
self.window.rootViewController = rootViewController;
|
self.window.rootViewController = rootViewController;
|
||||||
[self.window makeKeyAndVisible];
|
[self.window makeKeyAndVisible];
|
||||||
#ifndef DEBUG
|
|
||||||
[Instabug startWithToken:@"5534212f4a44f477c9ab270ab5cd2062" invocationEvent:IBGInvocationEventShake];
|
|
||||||
#endif
|
|
||||||
[SplashScreen show];
|
[SplashScreen show];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,8 @@
|
||||||
[taoensso.timbre :as log]
|
[taoensso.timbre :as log]
|
||||||
[status-im.chat.styles.screen :as st]
|
[status-im.chat.styles.screen :as st]
|
||||||
[status-im.profile.qr-code.screen :refer [qr-code-view]]
|
[status-im.profile.qr-code.screen :refer [qr-code-view]]
|
||||||
[status-im.components.status :as status]))
|
[status-im.components.status :as status]
|
||||||
|
[status-im.utils.instabug :as instabug]))
|
||||||
|
|
||||||
(defn orientation->keyword [o]
|
(defn orientation->keyword [o]
|
||||||
(keyword (.toLowerCase o)))
|
(keyword (.toLowerCase o)))
|
||||||
|
@ -140,6 +141,7 @@
|
||||||
[component])]])]))))})))
|
[component])]])]))))})))
|
||||||
|
|
||||||
(defn init []
|
(defn init []
|
||||||
|
(instabug/init-instabug)
|
||||||
(status/call-module status/init-jail)
|
(status/call-module status/init-jail)
|
||||||
(dispatch-sync [:reset-app])
|
(dispatch-sync [:reset-app])
|
||||||
(dispatch [:listen-to-network-status!])
|
(dispatch [:listen-to-network-status!])
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
|
|
||||||
(def instabug-rn (js/require "instabug-reactnative"))
|
(def instabug-rn (js/require "instabug-reactnative"))
|
||||||
|
|
||||||
|
(defn init-instabug []
|
||||||
|
(when-not js/goog.DEBUG
|
||||||
|
(.startWithToken instabug-rn
|
||||||
|
"b239f82a9cb00464e4c72cc703e6821e"
|
||||||
|
(.. instabug-rn -invocationEvent -shake))))
|
||||||
|
|
||||||
(defn log [str]
|
(defn log [str]
|
||||||
(if js/goog.DEBUG
|
(if js/goog.DEBUG
|
||||||
(log/debug str)
|
(log/debug str)
|
||||||
|
|
Loading…
Reference in New Issue