Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Analytics and Crashlytics #298

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions AmahiAnywhere/AmahiAnywhere.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
C8ED025920B3E30300015846 /* URL.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8ED025820B3E2F800015846 /* URL.swift */; };
E6867B80249FC9E4000B939C /* AppStoreReviewManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = E6867B7F249FC9E4000B939C /* AppStoreReviewManager.swift */; };
E6867B82249FE8F3000B939C /* UserDefaults+Key.swift .swift in Sources */ = {isa = PBXBuildFile; fileRef = E6867B81249FE8F3000B939C /* UserDefaults+Key.swift .swift */; };
E6D0562524A890F900B7A7DC /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = E6D0562424A890F900B7A7DC /* GoogleService-Info.plist */; };
FB71BE98201CB2FC0005492C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FB71BE97201CB2FC0005492C /* AppDelegate.swift */; };
FB71BE9A201CB2FC0005492C /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FB71BE99201CB2FC0005492C /* LoginViewController.swift */; };
FB71BE9D201CB2FC0005492C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FB71BE9B201CB2FC0005492C /* Main.storyboard */; };
Expand Down Expand Up @@ -263,6 +264,7 @@
C8ED025820B3E2F800015846 /* URL.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = URL.swift; sourceTree = "<group>"; };
E6867B7F249FC9E4000B939C /* AppStoreReviewManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppStoreReviewManager.swift; sourceTree = "<group>"; };
E6867B81249FE8F3000B939C /* UserDefaults+Key.swift .swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UserDefaults+Key.swift .swift"; sourceTree = "<group>"; };
E6D0562424A890F900B7A7DC /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
F5293AC0952F87B50DCD644D /* Pods_AmahiAnywhere.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_AmahiAnywhere.framework; sourceTree = BUILT_PRODUCTS_DIR; };
FB71BE94201CB2FC0005492C /* AmahiAnywhere.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AmahiAnywhere.app; sourceTree = BUILT_PRODUCTS_DIR; };
FB71BE97201CB2FC0005492C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -660,6 +662,7 @@
FB71BE96201CB2FC0005492C /* AmahiAnywhere */ = {
isa = PBXGroup;
children = (
E6D0562424A890F900B7A7DC /* GoogleService-Info.plist */,
9913634D22D5D2F100B48586 /* AmahiAnywhere.entitlements */,
0479B103210E0FB70052489F /* Managers */,
C8B70E1120FA937600873B3F /* StoryBoards */,
Expand Down Expand Up @@ -690,6 +693,7 @@
FB71BE92201CB2FC0005492C /* Resources */,
F61A594FE5268D2316515601 /* [CP] Embed Pods Frameworks */,
AB0902F10DF6D8E8ED1D608E /* [CP] Copy Pods Resources */,
E6D0562624A8910D00B7A7DC /* ShellScript */,
);
buildRules = (
);
Expand Down Expand Up @@ -754,6 +758,7 @@
3B24FE162297086A0044721D /* WalkthroughAmahiCell.xib in Resources */,
FB71BE9D201CB2FC0005492C /* Main.storyboard in Resources */,
C8490D1520C847F90052D636 /* VideoPlayer.storyboard in Resources */,
E6D0562524A890F900B7A7DC /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -795,6 +800,23 @@
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
E6D0562624A8910D00B7A7DC /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/FirebaseCrashlytics/run\"\n";
};
F61A594FE5268D2316515601 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down
3 changes: 3 additions & 0 deletions AmahiAnywhere/AmahiAnywhere/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import IQKeyboardManagerSwift
import EVReflection
import AVFoundation
import GoogleCast
import Firebase

let kPrefPreloadTime = "preload_time_sec"
let kPrefEnableAnalyticsLogging = "enable_analytics_logging"
Expand Down Expand Up @@ -64,6 +65,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

FirebaseApp.configure()

populateRegistrationDomain()

useCastContainerViewController = false
Expand Down
36 changes: 36 additions & 0 deletions AmahiAnywhere/AmahiAnywhere/GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CLIENT_ID</key>
<string>735481446010-va9kissnqfi5d227fcdhh9epdu827hhd.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.735481446010-va9kissnqfi5d227fcdhh9epdu827hhd</string>
<key>API_KEY</key>
<string>AIzaSyCtPHp_pu1rr3xx1dUHq9wazMny4gv-QDo</string>
<key>GCM_SENDER_ID</key>
<string>735481446010</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.amahi.AmahiAnywhere</string>
<key>PROJECT_ID</key>
<string>amahi-android</string>
<key>STORAGE_BUCKET</key>
<string>amahi-android.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this imply??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpg This GoogleService-Info.plist file contains configuration details, such as keys and identifiers, for the services that you have just enabled so we can't add or subtract anything from this file.

<key>GOOGLE_APP_ID</key>
<string>1:735481446010:ios:40e8491e87bc5b663785c3</string>
<key>DATABASE_URL</key>
<string>https://amahi-android.firebaseio.com</string>
</dict>
</plist>
3 changes: 2 additions & 1 deletion AmahiAnywhere/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ use_frameworks!
pod 'SwipeCellKit'
pod 'google-cast-sdk'
pod 'Floaty'

pod 'Firebase/Crashlytics'

end
65 changes: 64 additions & 1 deletion AmahiAnywhere/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,61 @@ PODS:
- Alamofire
- EVReflection/Core
- EVReflection/Core (5.10.1)
- Firebase/CoreOnly (6.27.0):
- FirebaseCore (= 6.8.0)
- Firebase/Crashlytics (6.27.0):
- Firebase/CoreOnly
- FirebaseCrashlytics (~> 4.2.0)
- FirebaseCore (6.8.0):
- FirebaseCoreDiagnostics (~> 1.3)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Logger (~> 6.5)
- FirebaseCoreDiagnostics (1.4.0):
- GoogleDataTransportCCTSupport (~> 3.1)
- GoogleUtilities/Environment (~> 6.5)
- GoogleUtilities/Logger (~> 6.5)
- nanopb (~> 1.30905.0)
- FirebaseCrashlytics (4.2.0):
- FirebaseCore (~> 6.8)
- FirebaseInstallations (~> 1.1)
- GoogleDataTransport (~> 6.1)
- GoogleDataTransportCCTSupport (~> 3.1)
- nanopb (~> 1.30905.0)
- PromisesObjC (~> 1.2)
- FirebaseInstallations (1.4.0):
- FirebaseCore (~> 6.8)
- GoogleUtilities/Environment (~> 6.6)
- GoogleUtilities/UserDefaults (~> 6.6)
- PromisesObjC (~> 1.2)
- Floaty (4.2.0)
- google-cast-sdk (4.4.7):
- google-cast-sdk/Core (= 4.4.7)
- Protobuf (~> 3.0)
- google-cast-sdk/Core (4.4.7):
- Protobuf (~> 3.0)
- GoogleDataTransport (6.2.1)
- GoogleDataTransportCCTSupport (3.2.0):
- GoogleDataTransport (~> 6.1)
- nanopb (~> 1.30905.0)
- GoogleUtilities/Environment (6.6.0):
- PromisesObjC (~> 1.2)
- GoogleUtilities/Logger (6.6.0):
- GoogleUtilities/Environment
- GoogleUtilities/UserDefaults (6.6.0):
- GoogleUtilities/Logger
- Imaginary (4.3.1):
- Cache (~> 5.3.0)
- IQKeyboardManagerSwift (6.5.5)
- Lightbox (2.3.0):
- Imaginary (~> 4.0)
- MBProgressHUD (1.2.0)
- MobileVLCKit (3.3.13)
- nanopb (1.30905.0):
- nanopb/decode (= 1.30905.0)
- nanopb/encode (= 1.30905.0)
- nanopb/decode (1.30905.0)
- nanopb/encode (1.30905.0)
- PromisesObjC (1.2.9)
- Protobuf (3.12.0)
- ReachabilitySwift (5.0.0)
- SDWebImage (5.8.1):
Expand All @@ -29,6 +71,7 @@ PODS:
DEPENDENCIES:
- Alamofire (~> 4.7)
- EVReflection/Alamofire
- Firebase/Crashlytics
- Floaty
- google-cast-sdk
- IQKeyboardManagerSwift
Expand All @@ -45,13 +88,23 @@ SPEC REPOS:
- Alamofire
- Cache
- EVReflection
- Firebase
- FirebaseCore
- FirebaseCoreDiagnostics
- FirebaseCrashlytics
- FirebaseInstallations
- Floaty
- google-cast-sdk
- GoogleDataTransport
- GoogleDataTransportCCTSupport
- GoogleUtilities
- Imaginary
- IQKeyboardManagerSwift
- Lightbox
- MBProgressHUD
- MobileVLCKit
- nanopb
- PromisesObjC
- Protobuf
- ReachabilitySwift
- SDWebImage
Expand All @@ -62,19 +115,29 @@ SPEC CHECKSUMS:
Alamofire: 85e8a02c69d6020a0d734f6054870d7ecb75cf18
Cache: 48762993ec44e1d93483c4d4a13edd18452326f4
EVReflection: 8124de482178d34ccd56473e16cd95990f9a1113
Firebase: fc4cbf6f1592636431821ef9a3c557e4dfd9f268
FirebaseCore: feda061cb1ee6d8ad4824f4a4a8ffbcfe284f595
FirebaseCoreDiagnostics: 4505e4d4009b1d93f605088ee7d7764d5f0d1c84
FirebaseCrashlytics: 7d0fa02ea8842cc4b2ab07b0735edafde1ad77d6
FirebaseInstallations: 293f567159b6d66d1c990f13bb868066096c94ec
Floaty: e2bd5a0f6f7f70899e26ff2da31081c8bee8d1b0
google-cast-sdk: 5fb55ce696a3d37f213b64b4f508577ccabd1a36
GoogleDataTransport: 9a8a16f79feffc7f42096743de2a7c4815e84020
GoogleDataTransportCCTSupport: 489c1265d2c85b68187a83a911913d190012158d
GoogleUtilities: 39530bc0ad980530298e9c4af8549e991fd033b1
Imaginary: 18c5bba364229eef383b925199db442e71d175e1
IQKeyboardManagerSwift: 0fb93310284665245591f50f7a5e38de615960b7
Lightbox: d317750e4132bfb871a5307cfe0a2c7d6a583c65
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
MobileVLCKit: 92e1ea43124259417f481c890821efb2399d25e3
nanopb: c43f40fadfe79e8b8db116583945847910cbabc9
PromisesObjC: b48e0338dbbac2207e611750777895f7a5811b75
Protobuf: 2793fcd0622a00b546c60e7cbbcc493e043e9bb9
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
SDWebImage: e3eae2eda88578db0685a0c88597fdadd9433f05
SkyFloatingLabelTextField: 5a338412114808e961fe2d14ea2c5452c8b6e4aa
SwipeCellKit: 3972254a826da74609926daf59b08d6c72e619ea

PODFILE CHECKSUM: 61f513bfe95231a9fec4a3a23bc3a645bf8f94a6
PODFILE CHECKSUM: 4148df49dbb6180bcbf6091da02d0eba3d5ae841

COCOAPODS: 1.9.1