Skip to content

Commit ef93111

Browse files
author
Thomas Taschauer
committed
update dependencies
1 parent cf6b06e commit ef93111

428 files changed

Lines changed: 206 additions & 61106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ playground.xcworkspace
4646
# you should judge for yourself, the pros and cons are mentioned at:
4747
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
4848
#
49-
# Pods/
49+
Pods/
5050

5151
# Carthage
5252
#

OpenDocument.core

OpenDocumentReader.xcodeproj/project.pbxproj

Lines changed: 92 additions & 61 deletions
Large diffs are not rendered by default.

OpenDocumentReader/AppDelegate.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4646

4747
func application(_ app: UIApplication, open inputURL: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
4848
guard let documentBrowserViewController = window?.rootViewController as? DocumentBrowserViewController else {
49-
Crashlytics.sharedInstance().throwException()
49+
fatalError("documentBrowserViewController is null")
5050

5151
return false
5252
}
5353

5454
documentBrowserViewController.revealDocument(at: inputURL, importIfNeeded: true) { (revealedDocumentURL, error) in
5555

5656
guard error == nil else {
57-
Crashlytics.sharedInstance().recordError(error!)
58-
Crashlytics.sharedInstance().throwException()
57+
Crashlytics.crashlytics().record(error: error!)
58+
fatalError("error is not null")
5959

6060
return
6161
}
6262

6363
guard let url = revealedDocumentURL else {
64-
Crashlytics.sharedInstance().throwException()
64+
fatalError("revealedDocumentURL is null")
6565

6666
return
6767
}

OpenDocumentReader/CoreWrapper.mm

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,17 @@ - (bool)backTranslate:(NSString *)diff into:(NSString *)outputPath {
8383
try {
8484
_errorCode = 0;
8585

86-
bool translated = translator.backTranslate([diff cStringUsingEncoding:NSUTF8StringEncoding], [outputPath cStringUsingEncoding:NSUTF8StringEncoding]);
87-
if (!translated) {
86+
bool success = translator.edit([diff cStringUsingEncoding:NSUTF8StringEncoding]);
87+
if (!success) {
8888
_errorCode = @(-4);
8989
return false;
9090
}
91+
92+
success = translator.save([outputPath cStringUsingEncoding:NSUTF8StringEncoding]);
93+
if (!success) {
94+
_errorCode = @(-5);
95+
return false;
96+
}
9197
} catch (...) {
9298
_errorCode = @(-3);
9399
return false;

OpenDocumentReader/Document.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ class Document: UIDocument {
124124

125125
webview?.evaluateJavaScript("generateDiff()", completionHandler: { (value: Any!, error: Error!) -> Void in
126126
if error != nil {
127-
Crashlytics.sharedInstance().recordError(error)
128-
Crashlytics.sharedInstance().throwException()
127+
Crashlytics.crashlytics().record(error: error)
128+
fatalError("generateDiff failed")
129129

130130
return
131131
}

OpenDocumentReader/DocumentBrowserViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class DocumentBrowserViewController: UIDocumentBrowserViewController, UIDocument
6363
func documentBrowser(_ controller: UIDocumentBrowserViewController,
6464
didPickDocumentURLs documentURLs: [URL]) {
6565
guard let url = documentURLs.first else {
66-
Crashlytics.sharedInstance().throwException()
66+
fatalError("documentURL is null")
6767

6868
return
6969
}
@@ -103,7 +103,7 @@ class DocumentBrowserViewController: UIDocumentBrowserViewController, UIDocument
103103
transitionController.loadingProgress = nil
104104

105105
guard success else {
106-
Crashlytics.sharedInstance().throwException()
106+
fatalError("opening document failed")
107107

108108
return
109109
}

OpenDocumentReader/DocumentViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class DocumentViewController: UIViewController, DocumentDelegate {
109109

110110
@IBAction func returnToDocuments(_ sender: Any) {
111111
guard let doc = document else {
112-
Crashlytics.sharedInstance().throwException()
112+
fatalError("document is null")
113113

114114
return
115115
}
@@ -139,7 +139,7 @@ class DocumentViewController: UIViewController, DocumentDelegate {
139139

140140
func closeCurrentDocument() {
141141
guard let doc = document else {
142-
Crashlytics.sharedInstance().throwException()
142+
fatalError("document is null")
143143

144144
return
145145
}
@@ -186,7 +186,7 @@ class DocumentViewController: UIViewController, DocumentDelegate {
186186
Analytics.logEvent("menu_edit_discard", parameters: nil)
187187

188188
guard let doc = document else {
189-
Crashlytics.sharedInstance().throwException()
189+
fatalError("document is null")
190190

191191
return
192192
}
@@ -198,7 +198,7 @@ class DocumentViewController: UIViewController, DocumentDelegate {
198198
Analytics.logEvent("menu_edit_save", parameters: nil)
199199

200200
guard let doc = document else {
201-
Crashlytics.sharedInstance().throwException()
201+
fatalError("document is null")
202202

203203
return
204204
}

Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ target 'OpenDocumentReader' do
77
pod 'ScrollableSegmentedControl'
88
pod 'Firebase/Core'
99
pod 'Firebase/Storage'
10-
pod 'Fabric'
11-
pod 'Crashlytics'
10+
pod 'Firebase/Crashlytics'
11+
pod 'Firebase/Analytics'
1212
end

Podfile.lock

Lines changed: 90 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,126 +1,141 @@
11
PODS:
2-
- Crashlytics (3.14.0):
3-
- Fabric (~> 1.10.2)
4-
- Fabric (1.10.2)
5-
- Firebase/Core (6.9.0):
2+
- Firebase/Analytics (6.22.0):
3+
- Firebase/Core
4+
- Firebase/Core (6.22.0):
65
- Firebase/CoreOnly
7-
- FirebaseAnalytics (= 6.1.2)
8-
- Firebase/CoreOnly (6.9.0):
9-
- FirebaseCore (= 6.3.0)
10-
- Firebase/Storage (6.9.0):
6+
- FirebaseAnalytics (= 6.4.1)
7+
- Firebase/CoreOnly (6.22.0):
8+
- FirebaseCore (= 6.6.6)
9+
- Firebase/Crashlytics (6.22.0):
1110
- Firebase/CoreOnly
12-
- FirebaseStorage (~> 3.4.1)
13-
- FirebaseAnalytics (6.1.2):
14-
- FirebaseCore (~> 6.3)
15-
- FirebaseInstanceID (~> 4.2)
16-
- GoogleAppMeasurement (= 6.1.2)
11+
- FirebaseCrashlytics (~> 4.0.0-beta.7)
12+
- Firebase/Storage (6.22.0):
13+
- Firebase/CoreOnly
14+
- FirebaseStorage (~> 3.6.0)
15+
- FirebaseAnalytics (6.4.1):
16+
- FirebaseCore (~> 6.6)
17+
- FirebaseInstallations (~> 1.1)
18+
- GoogleAppMeasurement (= 6.4.1)
1719
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
1820
- GoogleUtilities/MethodSwizzler (~> 6.0)
1921
- GoogleUtilities/Network (~> 6.0)
2022
- "GoogleUtilities/NSData+zlib (~> 6.0)"
21-
- nanopb (~> 0.3)
22-
- FirebaseAuthInterop (1.0.0)
23-
- FirebaseCore (6.3.0):
24-
- FirebaseCoreDiagnostics (~> 1.0)
25-
- FirebaseCoreDiagnosticsInterop (~> 1.0)
26-
- GoogleUtilities/Environment (~> 6.2)
27-
- GoogleUtilities/Logger (~> 6.2)
28-
- FirebaseCoreDiagnostics (1.1.0):
29-
- FirebaseCoreDiagnosticsInterop (~> 1.0)
30-
- GoogleDataTransportCCTSupport (~> 1.0)
31-
- GoogleUtilities/Environment (~> 6.2)
32-
- GoogleUtilities/Logger (~> 6.2)
33-
- FirebaseCoreDiagnosticsInterop (1.0.0)
34-
- FirebaseInstanceID (4.2.5):
35-
- FirebaseCore (~> 6.0)
36-
- GoogleUtilities/Environment (~> 6.0)
37-
- GoogleUtilities/UserDefaults (~> 6.0)
38-
- FirebaseStorage (3.4.1):
39-
- FirebaseAuthInterop (~> 1.0)
40-
- FirebaseCore (~> 6.0)
23+
- nanopb (= 0.3.9011)
24+
- FirebaseAnalyticsInterop (1.5.0)
25+
- FirebaseAuthInterop (1.1.0)
26+
- FirebaseCore (6.6.6):
27+
- FirebaseCoreDiagnostics (~> 1.2)
28+
- FirebaseCoreDiagnosticsInterop (~> 1.2)
29+
- GoogleUtilities/Environment (~> 6.5)
30+
- GoogleUtilities/Logger (~> 6.5)
31+
- FirebaseCoreDiagnostics (1.2.3):
32+
- FirebaseCoreDiagnosticsInterop (~> 1.2)
33+
- GoogleDataTransportCCTSupport (~> 2.0)
34+
- GoogleUtilities/Environment (~> 6.5)
35+
- GoogleUtilities/Logger (~> 6.5)
36+
- nanopb (~> 0.3.901)
37+
- FirebaseCoreDiagnosticsInterop (1.2.0)
38+
- FirebaseCrashlytics (4.0.0-beta.7):
39+
- FirebaseAnalyticsInterop (~> 1.2)
40+
- FirebaseCore (~> 6.6)
41+
- FirebaseInstallations (~> 1.1)
42+
- GoogleDataTransport (>= 5.1.1, ~> 5.1)
43+
- GoogleDataTransportCCTSupport (>= 2.0.2, ~> 2.0)
44+
- nanopb (~> 0.3.901)
45+
- PromisesObjC (~> 1.2)
46+
- FirebaseInstallations (1.1.1):
47+
- FirebaseCore (~> 6.6)
48+
- GoogleUtilities/UserDefaults (~> 6.5)
49+
- PromisesObjC (~> 1.2)
50+
- FirebaseStorage (3.6.0):
51+
- FirebaseAuthInterop (~> 1.1)
52+
- FirebaseCore (~> 6.6)
4153
- GTMSessionFetcher/Core (~> 1.1)
42-
- GoogleAppMeasurement (6.1.2):
54+
- GoogleAppMeasurement (6.4.1):
4355
- GoogleUtilities/AppDelegateSwizzler (~> 6.0)
4456
- GoogleUtilities/MethodSwizzler (~> 6.0)
4557
- GoogleUtilities/Network (~> 6.0)
4658
- "GoogleUtilities/NSData+zlib (~> 6.0)"
47-
- nanopb (~> 0.3)
48-
- GoogleDataTransport (2.0.0)
49-
- GoogleDataTransportCCTSupport (1.1.0):
50-
- GoogleDataTransport (~> 2.0)
51-
- nanopb
52-
- GoogleUtilities/AppDelegateSwizzler (6.3.1):
59+
- nanopb (= 0.3.9011)
60+
- GoogleDataTransport (5.1.1)
61+
- GoogleDataTransportCCTSupport (2.0.2):
62+
- GoogleDataTransport (~> 5.1)
63+
- nanopb (~> 0.3.901)
64+
- GoogleUtilities/AppDelegateSwizzler (6.5.2):
5365
- GoogleUtilities/Environment
5466
- GoogleUtilities/Logger
5567
- GoogleUtilities/Network
56-
- GoogleUtilities/Environment (6.3.1)
57-
- GoogleUtilities/Logger (6.3.1):
68+
- GoogleUtilities/Environment (6.5.2)
69+
- GoogleUtilities/Logger (6.5.2):
5870
- GoogleUtilities/Environment
59-
- GoogleUtilities/MethodSwizzler (6.3.1):
71+
- GoogleUtilities/MethodSwizzler (6.5.2):
6072
- GoogleUtilities/Logger
61-
- GoogleUtilities/Network (6.3.1):
73+
- GoogleUtilities/Network (6.5.2):
6274
- GoogleUtilities/Logger
6375
- "GoogleUtilities/NSData+zlib"
6476
- GoogleUtilities/Reachability
65-
- "GoogleUtilities/NSData+zlib (6.3.1)"
66-
- GoogleUtilities/Reachability (6.3.1):
77+
- "GoogleUtilities/NSData+zlib (6.5.2)"
78+
- GoogleUtilities/Reachability (6.5.2):
6779
- GoogleUtilities/Logger
68-
- GoogleUtilities/UserDefaults (6.3.1):
80+
- GoogleUtilities/UserDefaults (6.5.2):
6981
- GoogleUtilities/Logger
70-
- GTMSessionFetcher/Core (1.2.2)
71-
- nanopb (0.3.901):
72-
- nanopb/decode (= 0.3.901)
73-
- nanopb/encode (= 0.3.901)
74-
- nanopb/decode (0.3.901)
75-
- nanopb/encode (0.3.901)
82+
- GTMSessionFetcher/Core (1.3.1)
83+
- nanopb (0.3.9011):
84+
- nanopb/decode (= 0.3.9011)
85+
- nanopb/encode (= 0.3.9011)
86+
- nanopb/decode (0.3.9011)
87+
- nanopb/encode (0.3.9011)
88+
- PromisesObjC (1.2.8)
7689
- ScrollableSegmentedControl (1.5.0)
7790

7891
DEPENDENCIES:
79-
- Crashlytics
80-
- Fabric
92+
- Firebase/Analytics
8193
- Firebase/Core
94+
- Firebase/Crashlytics
8295
- Firebase/Storage
8396
- ScrollableSegmentedControl
8497

8598
SPEC REPOS:
8699
trunk:
87-
- Crashlytics
88-
- Fabric
89100
- Firebase
90101
- FirebaseAnalytics
102+
- FirebaseAnalyticsInterop
91103
- FirebaseAuthInterop
92104
- FirebaseCore
93105
- FirebaseCoreDiagnostics
94106
- FirebaseCoreDiagnosticsInterop
95-
- FirebaseInstanceID
107+
- FirebaseCrashlytics
108+
- FirebaseInstallations
96109
- FirebaseStorage
97110
- GoogleAppMeasurement
98111
- GoogleDataTransport
99112
- GoogleDataTransportCCTSupport
100113
- GoogleUtilities
101114
- GTMSessionFetcher
102115
- nanopb
116+
- PromisesObjC
103117
- ScrollableSegmentedControl
104118

105119
SPEC CHECKSUMS:
106-
Crashlytics: 540b7e5f5da5a042647227a5e3ac51d85eed06df
107-
Fabric: 706c8b8098fff96c33c0db69cbf81f9c551d0d74
108-
Firebase: 2d750c54cda57d5a6ae31212cfe5cc813c6be7e4
109-
FirebaseAnalytics: 5d9ccbf46ed25d3ec9304d263f85bddf1e93e2d2
110-
FirebaseAuthInterop: 0ffa57668be100582bb7643d4fcb7615496c41fc
111-
FirebaseCore: 8b2765c445d40db7137989b7146a3aa3f91b5529
112-
FirebaseCoreDiagnostics: be4f7a09d02ab305f18de59a470412caddb64c2a
113-
FirebaseCoreDiagnosticsInterop: 6829da2b8d1fc795ff1bd99df751d3788035d2cb
114-
FirebaseInstanceID: 550df9be1f99f751d8fcde3ac342a1e21a0e6c42
115-
FirebaseStorage: b7c6d00997bc21d4465453bdcc5cc65513110fed
116-
GoogleAppMeasurement: 0ae90be1cc4dad40f4a27fc767ef59fa032ec87b
117-
GoogleDataTransport: c8617c00e4f3eb9418e42ac0e8ac5241a9d555dd
118-
GoogleDataTransportCCTSupport: 9f352523e8785a71f6754f51eeff09f49ec19268
119-
GoogleUtilities: f895fde57977df4e0233edda0dbeac490e3703b6
120-
GTMSessionFetcher: 61bb0f61a4cb560030f1222021178008a5727a23
121-
nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48
120+
Firebase: 32f9520684e87c7af3f0704f7f88042626d6b536
121+
FirebaseAnalytics: 83f822fd0d33a46f49f89b8c3ab16ab4d89df08a
122+
FirebaseAnalyticsInterop: 3f86269c38ae41f47afeb43ebf32a001f58fcdae
123+
FirebaseAuthInterop: a0f37ae05833af156e72028f648d313f7e7592e9
124+
FirebaseCore: 9aca0f1fffb405176ba15311a5621fcde4106fcf
125+
FirebaseCoreDiagnostics: 13a6564cd6d5375066bbc8940cc1753af24497f3
126+
FirebaseCoreDiagnosticsInterop: 296e2c5f5314500a850ad0b83e9e7c10b011a850
127+
FirebaseCrashlytics: ad2e8527a7efd9a7e708d5abe57318ced2e1dbd1
128+
FirebaseInstallations: acb3216eb9784d3b1d2d2d635ff74fa892cc0c44
129+
FirebaseStorage: b43ee271294227e1a3225544b073f3b49b427f46
130+
GoogleAppMeasurement: e49be3954045b17d046f271b9cc1ec052bad9702
131+
GoogleDataTransport: 6ffa4dd0b6d547f8d27b91bd92fa9e197a3f5f1f
132+
GoogleDataTransportCCTSupport: 12f02e5c8f09c055615de90bcd5ba2c375546051
133+
GoogleUtilities: ad0f3b691c67909d03a3327cc205222ab8f42e0e
134+
GTMSessionFetcher: cea130bbfe5a7edc8d06d3f0d17288c32ffe9925
135+
nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd
136+
PromisesObjC: c119f3cd559f50b7ae681fa59dc1acd19173b7e6
122137
ScrollableSegmentedControl: 2e64bbe8968a7fcd8aae5014434481464fcdfe60
123138

124-
PODFILE CHECKSUM: 56c1b56208f1c9800f198a7615d0b3919b381711
139+
PODFILE CHECKSUM: 7a4ed31baede41e03a49f8b5f40c0b4f91e30a39
125140

126141
COCOAPODS: 1.8.3

0 commit comments

Comments
 (0)