Skip to content

Commit 6f11240

Browse files
author
Thomas Taschauer
committed
improve analytics, raise version
1 parent 46609ed commit 6f11240

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

OpenDocumentReader.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
E22EB718226B633500053B86 /* Document.swift in Sources */ = {isa = PBXBuildFile; fileRef = E22EB717226B633500053B86 /* Document.swift */; };
1313
E22EB71A226B65E300053B86 /* DocumentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E22EB719226B65E300053B86 /* DocumentViewController.swift */; };
1414
E22EB71C226B66B300053B86 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E22EB71B226B66B300053B86 /* Main.storyboard */; };
15+
E23795302274844400BA7238 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E237952F2274844400BA7238 /* AdSupport.framework */; };
1516
E26C392C2250D926009C484A /* libglog.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E26C39172250D91C009C484A /* libglog.a */; };
1617
E26C392D2250D926009C484A /* libminiz.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E26C391B2250D91C009C484A /* libminiz.a */; };
1718
E26C392E2250D926009C484A /* libodrlib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E26C391D2250D91C009C484A /* libodrlib.a */; };
@@ -226,6 +227,7 @@
226227
E22EB717226B633500053B86 /* Document.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Document.swift; sourceTree = "<group>"; };
227228
E22EB719226B65E300053B86 /* DocumentViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DocumentViewController.swift; sourceTree = "<group>"; };
228229
E22EB71B226B66B300053B86 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
230+
E237952F2274844400BA7238 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; };
229231
E26C38EA2250D91C009C484A /* odr.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = odr.xcodeproj; path = build/odr.xcodeproj; sourceTree = "<group>"; };
230232
E26C39382250DC6E009C484A /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; };
231233
E29E4076225A4672002C06E6 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
@@ -247,6 +249,7 @@
247249
isa = PBXFrameworksBuildPhase;
248250
buildActionMask = 2147483647;
249251
files = (
252+
E23795302274844400BA7238 /* AdSupport.framework in Frameworks */,
250253
E2D920F0226B1C7D0042A774 /* libcryptopp-object.a in Frameworks */,
251254
E2A3EE742259FA3100511BD2 /* libtinyxml2.a in Frameworks */,
252255
E26C39392250DC6E009C484A /* WebKit.framework in Frameworks */,
@@ -301,6 +304,7 @@
301304
E2BB4B64220EF4F20056176B /* Frameworks */ = {
302305
isa = PBXGroup;
303306
children = (
307+
E237952F2274844400BA7238 /* AdSupport.framework */,
304308
E26C39382250DC6E009C484A /* WebKit.framework */,
305309
E26C38EA2250D91C009C484A /* odr.xcodeproj */,
306310
EF00F649A86477A6C27F07C0 /* Pods_OpenDocumentReader.framework */,

OpenDocumentReader/DocumentViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,8 @@ class DocumentViewController: UIViewController, DocumentDelegate {
196196

197197
func documentLoadingError(_ doc: Document) {
198198
self.webview.loadHTMLString("<html><h1>Error</h1>Failed to load given document. Please try another one while we are working hard to support as many documents as possible. Feel free to contact us via tomtasche@gmail.com for further questions.</html>", baseURL: nil)
199+
200+
Analytics.logEvent("load_error", parameters: nil)
199201
}
200202

201203
func documentLoadingStarted(_ doc: Document) {
@@ -205,6 +207,8 @@ class DocumentViewController: UIViewController, DocumentDelegate {
205207

206208
func documentLoadingCompleted(_ doc: Document) {
207209
progressBar.isHidden = true
210+
211+
Analytics.logEvent("load_success", parameters: nil)
208212
}
209213

210214
func documentPagesChanged(_ doc: Document) {

OpenDocumentReader/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
<key>CFBundlePackageType</key>
3535
<string>APPL</string>
3636
<key>CFBundleShortVersionString</key>
37-
<string>1.2</string>
37+
<string>1.3</string>
3838
<key>CFBundleVersion</key>
39-
<string>5</string>
39+
<string>6</string>
4040
<key>LSRequiresIPhoneOS</key>
4141
<true/>
4242
<key>UILaunchStoryboardName</key>

0 commit comments

Comments
 (0)