Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 46f990e

Browse files
committed
replace Fabric and Crashlytics dependency with Firebase/Crashlytics
1 parent d323b28 commit 46f990e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

publish/scripts/installer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,8 +377,7 @@ function writePodFile(result) {
377377
` + (isSelected(result.performance_monitoring) ? `` : `#`) + `pod 'Firebase/Performance'
378378
379379
# Crashlytics
380-
` + (isSelected(result.crashlytics) ? `` : `#`) + `pod 'Fabric'
381-
` + (isSelected(result.crashlytics) ? `` : `#`) + `pod 'Crashlytics'
380+
` + (isSelected(result.crashlytics) ? `` : `#`) + `pod 'Firebase/Crashlytics'
382381
` + (!isSelected(result.crashlytics) ? `` : `
383382
# Crashlytics works best without bitcode
384383
post_install do |installer|
@@ -527,7 +526,7 @@ module.exports = function($logger, $projectData, hookArgs) {
527526
528527
// Xcode 10 requires 'inputPaths' set, see https://firebase.google.com/docs/crashlytics/get-started
529528
var options = {
530-
shellPath: '/bin/sh', shellScript: '\"\${PODS_ROOT}/Fabric/run\"',
529+
shellPath: '/bin/sh', shellScript: '\"\${PODS_ROOT}/FirebaseCrashlytics/run\"',
531530
inputPaths: ['"\$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)\"']
532531
};
533532

src/platforms/ios_lib/TNSCrashlyticsLogger/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ target 'TNSCrashlyticsLogger' do
66
use_frameworks!
77

88
# Pods for TNSCrashlyticsLogger
9-
pod 'Crashlytics'
9+
pod 'Firebase/Crashlytics'
1010

1111
end
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#import "TNSCrashlyticsLoggerWrapper.h"
2-
#import <Crashlytics/Crashlytics.h>
2+
@import FirebaseCrashlytics;
33

44
@implementation TNSCrashlyticsLoggerWrapper
55

66
+ (void)log:(NSString *)string {
7-
CLSLog(@"%@", string);
7+
[[FIRCrashlytics crashlytics] logWithFormat:@"%@", string];
88
}
99

1010
@end

0 commit comments

Comments
 (0)