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")
|
def isPlay = !taskRequests.contains("foss")
|
||||||
|
|
||||||
apply plugin: "com.android.application"
|
apply plugin: "com.android.application"
|
||||||
apply plugin: 'com.google.gms.google-services'
|
|
||||||
apply plugin: 'com.google.firebase.crashlytics'
|
|
||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
if (isPlay) {
|
if (isPlay) {
|
||||||
apply plugin: "io.fabric"
|
apply plugin: 'com.google.firebase.crashlytics'
|
||||||
apply plugin: "com.google.firebase.firebase-perf"
|
|
||||||
apply plugin: 'com.bugsnag.android.gradle'
|
apply plugin: 'com.bugsnag.android.gradle'
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
apply plugin: 'com.bugsnag.android.gradle'
|
|
||||||
>>>>>>> e5aaa667e7921a827df304b9d64320e14c7a55d3
|
|
||||||
|
|
||||||
import com.android.build.OutputFile
|
import com.android.build.OutputFile
|
||||||
|
|
||||||
|
@ -180,11 +173,13 @@ android {
|
||||||
minifyEnabled enableProguardInReleaseBuilds
|
minifyEnabled enableProguardInReleaseBuilds
|
||||||
setProguardFiles([getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'])
|
setProguardFiles([getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'])
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
|
if (isPlay) {
|
||||||
firebaseCrashlytics {
|
firebaseCrashlytics {
|
||||||
nativeSymbolUploadEnabled true
|
nativeSymbolUploadEnabled true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// packagingOptions {
|
// packagingOptions {
|
||||||
// pickFirst '**/armeabi-v7a/libc++_shared.so'
|
// pickFirst '**/armeabi-v7a/libc++_shared.so'
|
||||||
|
@ -243,11 +238,6 @@ dependencies {
|
||||||
//noinspection GradleDynamicVersion
|
//noinspection GradleDynamicVersion
|
||||||
implementation "com.facebook.react:react-native:+" // From node_modules
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
||||||
playImplementation "com.google.firebase:firebase-messaging:18.0.0"
|
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"
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
||||||
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
|
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
|
||||||
exclude group:'com.facebook.fbjni'
|
exclude group:'com.facebook.fbjni'
|
||||||
|
@ -279,11 +269,7 @@ task copyDownloadableDepsToLibs(type: Copy) {
|
||||||
into 'libs'
|
into 'libs'
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
|
||||||
if (isPlay) {
|
if (isPlay) {
|
||||||
apply plugin: 'com.google.gms.google-services'
|
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")
|
@SuppressWarnings("UnnecessaryLocalVariable")
|
||||||
List<ReactPackage> packages = new PackageList(this).getPackages();
|
List<ReactPackage> packages = new PackageList(this).getPackages();
|
||||||
if (BuildConfig.PLAY_BUILD) {
|
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 RNNotificationsPackage(MainApplication.this));
|
||||||
}
|
}
|
||||||
packages.add(new KeyboardInputPackage(MainApplication.this));
|
packages.add(new KeyboardInputPackage(MainApplication.this));
|
||||||
|
|
|
@ -24,7 +24,6 @@ buildscript {
|
||||||
dependencies {
|
dependencies {
|
||||||
if (isPlay) {
|
if (isPlay) {
|
||||||
classpath 'com.google.gms:google-services:4.2.0'
|
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.google.firebase:firebase-crashlytics-gradle:2.0.0'
|
||||||
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:4.+'
|
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:4.+'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
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
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
|
@ -1,7 +1,7 @@
|
||||||
import { Client } from 'bugsnag-react-native';
|
import { Client } from 'bugsnag-react-native';
|
||||||
import analytics from '@react-native-firebase/analytics';
|
import analytics from '@react-native-firebase/analytics';
|
||||||
import crashlytics from '@react-native-firebase/crashlytics';
|
import crashlytics from '@react-native-firebase/crashlytics';
|
||||||
import { isGooglePlayBuild } from '../constants/environment';
|
import { isGooglePlayBuild } from '../../constants/environment';
|
||||||
import config from '../../../config';
|
import config from '../../../config';
|
||||||
import events from './events';
|
import events from './events';
|
||||||
|
|
||||||
|
@ -21,15 +21,17 @@ export const logServerVersion = (serverVersion) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
export const logEvent = (eventName, payload) => {
|
export const logEvent = (eventName, payload) => {
|
||||||
|
if (isGooglePlayBuild) {
|
||||||
analytics().logEvent(eventName, payload);
|
analytics().logEvent(eventName, payload);
|
||||||
leaveBreadcrumb(eventName, payload);
|
leaveBreadcrumb(eventName, payload);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const setCurrentScreen = (currentScreen) => {
|
export const setCurrentScreen = (currentScreen) => {
|
||||||
if (isGooglePlayBuild) {
|
if (isGooglePlayBuild) {
|
||||||
analytics().setCurrentScreen(currentScreen);
|
analytics().setCurrentScreen(currentScreen);
|
||||||
}
|
|
||||||
leaveBreadcrumb(currentScreen, { type: 'navigation' });
|
leaveBreadcrumb(currentScreen, { type: 'navigation' });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default (e) => {
|
export default (e) => {
|
||||||
|
@ -41,7 +43,9 @@ export default (e) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
if (isGooglePlayBuild) {
|
||||||
crashlytics().recordError(e);
|
crashlytics().recordError(e);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,17 +121,16 @@ class SettingsView extends React.Component {
|
||||||
AsyncStorage.setItem(CRASH_REPORT_KEY, JSON.stringify(value));
|
AsyncStorage.setItem(CRASH_REPORT_KEY, JSON.stringify(value));
|
||||||
const { toggleCrashReport } = this.props;
|
const { toggleCrashReport } = this.props;
|
||||||
toggleCrashReport(value);
|
toggleCrashReport(value);
|
||||||
loggerConfig.autoNotify = value;
|
|
||||||
if (isGooglePlayBuild) {
|
if (isGooglePlayBuild) {
|
||||||
|
loggerConfig.autoNotify = value;
|
||||||
analytics().setAnalyticsCollectionEnabled(value);
|
analytics().setAnalyticsCollectionEnabled(value);
|
||||||
}
|
|
||||||
|
|
||||||
if (value) {
|
if (value) {
|
||||||
loggerConfig.clearBeforeSendCallbacks();
|
loggerConfig.clearBeforeSendCallbacks();
|
||||||
} else {
|
} else {
|
||||||
loggerConfig.registerBeforeSendCallback(() => false);
|
loggerConfig.registerBeforeSendCallback(() => false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
toggleLivechat = async() => {
|
toggleLivechat = async() => {
|
||||||
try {
|
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