update
This commit is contained in:
parent
5139d0f5de
commit
50862b1438
|
@ -2,19 +2,12 @@ def taskRequests = getGradle().getStartParameter().getTaskRequests().toString().
|
|||
def isPlay = !taskRequests.contains("foss")
|
||||
|
||||
apply plugin: "com.android.application"
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
apply plugin: 'com.google.firebase.crashlytics'
|
||||
apply plugin: 'kotlin-android'
|
||||
<<<<<<< HEAD
|
||||
|
||||
if (isPlay) {
|
||||
apply plugin: "io.fabric"
|
||||
apply plugin: "com.google.firebase.firebase-perf"
|
||||
apply plugin: 'com.google.firebase.crashlytics'
|
||||
apply plugin: 'com.bugsnag.android.gradle'
|
||||
}
|
||||
=======
|
||||
apply plugin: 'com.bugsnag.android.gradle'
|
||||
>>>>>>> e5aaa667e7921a827df304b9d64320e14c7a55d3
|
||||
|
||||
import com.android.build.OutputFile
|
||||
|
||||
|
@ -180,11 +173,13 @@ android {
|
|||
minifyEnabled enableProguardInReleaseBuilds
|
||||
setProguardFiles([getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'])
|
||||
signingConfig signingConfigs.release
|
||||
if (isPlay) {
|
||||
firebaseCrashlytics {
|
||||
nativeSymbolUploadEnabled true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// packagingOptions {
|
||||
// pickFirst '**/armeabi-v7a/libc++_shared.so'
|
||||
|
@ -243,11 +238,6 @@ dependencies {
|
|||
//noinspection GradleDynamicVersion
|
||||
implementation "com.facebook.react:react-native:+" // From node_modules
|
||||
playImplementation "com.google.firebase:firebase-messaging:18.0.0"
|
||||
playImplementation "com.google.firebase:firebase-core:16.0.9"
|
||||
playImplementation "com.google.firebase:firebase-perf:17.0.2"
|
||||
playImplementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
|
||||
transitive = true
|
||||
}
|
||||
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
||||
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
|
||||
exclude group:'com.facebook.fbjni'
|
||||
|
@ -279,11 +269,7 @@ task copyDownloadableDepsToLibs(type: Copy) {
|
|||
into 'libs'
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
||||
if (isPlay) {
|
||||
apply plugin: 'com.google.gms.google-services'
|
||||
}
|
||||
=======
|
||||
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
||||
>>>>>>> e5aaa667e7921a827df304b9d64320e14c7a55d3
|
||||
|
|
|
@ -50,9 +50,6 @@ public class MainApplication extends Application implements ReactApplication, IN
|
|||
@SuppressWarnings("UnnecessaryLocalVariable")
|
||||
List<ReactPackage> packages = new PackageList(this).getPackages();
|
||||
if (BuildConfig.PLAY_BUILD) {
|
||||
packages.add(new RNFirebaseCrashlyticsPackage());
|
||||
packages.add(new RNFirebaseAnalyticsPackage());
|
||||
packages.add(new RNFirebasePerformancePackage());
|
||||
packages.add(new RNNotificationsPackage(MainApplication.this));
|
||||
}
|
||||
packages.add(new KeyboardInputPackage(MainApplication.this));
|
||||
|
|
|
@ -24,7 +24,6 @@ buildscript {
|
|||
dependencies {
|
||||
if (isPlay) {
|
||||
classpath 'com.google.gms:google-services:4.2.0'
|
||||
classpath 'com.google.firebase:perf-plugin:1.2.1'
|
||||
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.0.0'
|
||||
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:4.+'
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
|
@ -1,7 +1,7 @@
|
|||
import { Client } from 'bugsnag-react-native';
|
||||
import analytics from '@react-native-firebase/analytics';
|
||||
import crashlytics from '@react-native-firebase/crashlytics';
|
||||
import { isGooglePlayBuild } from '../constants/environment';
|
||||
import { isGooglePlayBuild } from '../../constants/environment';
|
||||
import config from '../../../config';
|
||||
import events from './events';
|
||||
|
||||
|
@ -21,15 +21,17 @@ export const logServerVersion = (serverVersion) => {
|
|||
};
|
||||
|
||||
export const logEvent = (eventName, payload) => {
|
||||
if (isGooglePlayBuild) {
|
||||
analytics().logEvent(eventName, payload);
|
||||
leaveBreadcrumb(eventName, payload);
|
||||
}
|
||||
};
|
||||
|
||||
export const setCurrentScreen = (currentScreen) => {
|
||||
if (isGooglePlayBuild) {
|
||||
analytics().setCurrentScreen(currentScreen);
|
||||
}
|
||||
leaveBreadcrumb(currentScreen, { type: 'navigation' });
|
||||
}
|
||||
};
|
||||
|
||||
export default (e) => {
|
||||
|
@ -41,7 +43,9 @@ export default (e) => {
|
|||
}
|
||||
};
|
||||
});
|
||||
if (isGooglePlayBuild) {
|
||||
crashlytics().recordError(e);
|
||||
}
|
||||
} else {
|
||||
console.log(e);
|
||||
}
|
||||
|
|
|
@ -121,17 +121,16 @@ class SettingsView extends React.Component {
|
|||
AsyncStorage.setItem(CRASH_REPORT_KEY, JSON.stringify(value));
|
||||
const { toggleCrashReport } = this.props;
|
||||
toggleCrashReport(value);
|
||||
loggerConfig.autoNotify = value;
|
||||
if (isGooglePlayBuild) {
|
||||
loggerConfig.autoNotify = value;
|
||||
analytics().setAnalyticsCollectionEnabled(value);
|
||||
}
|
||||
|
||||
if (value) {
|
||||
loggerConfig.clearBeforeSendCallbacks();
|
||||
} else {
|
||||
loggerConfig.registerBeforeSendCallback(() => false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
toggleLivechat = async() => {
|
||||
try {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"anonymousUserId":"de10e8cb-9bcb-436e-94ac-f3a9a9a945b2"}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue