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

Removed AppsFlyer framework #417

Merged
merged 2 commits into from
Nov 28, 2018
Merged
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
4 changes: 1 addition & 3 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ def all_pods
pod 'FirebaseRemoteConfig', '3.0.1'

pod 'Amplitude-iOS', '4.3.0'

pod 'AppsFlyerFramework', '4.8.8'


pod 'BEMCheckBox', '1.4.1'

# actual version - 6.x, we should test it before update
Expand Down
6 changes: 1 addition & 5 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ PODS:
- AlamofireNetworkActivityIndicator (2.2.1):
- Alamofire (~> 4.7)
- Amplitude-iOS (4.3.0)
- AppsFlyerFramework (4.8.8)
- Atributika (4.6.1)
- BEMCheckBox (1.4.1)
- Bolts (1.9.0):
Expand Down Expand Up @@ -160,7 +159,6 @@ DEPENDENCIES:
- Alamofire (= 4.7.3)
- AlamofireNetworkActivityIndicator (= 2.2.1)
- Amplitude-iOS (= 4.3.0)
- AppsFlyerFramework (= 4.8.8)
- Atributika (= 4.6.1)
- BEMCheckBox (= 1.4.1)
- Branch (= 0.25.5)
Expand Down Expand Up @@ -212,7 +210,6 @@ SPEC REPOS:
- Alamofire
- AlamofireNetworkActivityIndicator
- Amplitude-iOS
- AppsFlyerFramework
- Atributika
- BEMCheckBox
- Bolts
Expand Down Expand Up @@ -298,7 +295,6 @@ SPEC CHECKSUMS:
Alamofire: c7287b6e5d7da964a70935e5db17046b7fde6568
AlamofireNetworkActivityIndicator: aeac50e6ecb78ec71a5f1f29098bcf4ec2962910
Amplitude-iOS: 05f25e5bc08ecf3b42b0ae1d4f1fe6d3c6476e49
AppsFlyerFramework: 323b1467c23dc6d6c397ecb39b96b72b909ed436
Atributika: d6c90b52527e9dae478819fb21d872aa6208ee6e
BEMCheckBox: 5ba6e37ade3d3657b36caecc35c8b75c6c2b1a4e
Bolts: ac6567323eac61e203f6a9763667d0f711be34c8
Expand Down Expand Up @@ -355,6 +351,6 @@ SPEC CHECKSUMS:
VK-ios-sdk: 7fd48bc5aaa6b96c3197c1987eb6593f2ea67331
YandexMobileMetrica: f18374ee6977a4cd1d0a86298a0df4ad7baf4135

PODFILE CHECKSUM: 70a0ab58029d67cc7cb3d687580c4fbc6d01edfb
PODFILE CHECKSUM: 52cd710984518307922104224651ebbb14d720b1

COCOAPODS: 1.5.3
4 changes: 0 additions & 4 deletions Stepic/AnalyticsHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import FirebaseCore
import YandexMobileMetrica
import Crashlytics
import Amplitude_iOS
import AppsFlyerLib

class AnalyticsHelper {
static var sharedHelper = AnalyticsHelper()
Expand All @@ -27,8 +26,5 @@ class AnalyticsHelper {
}

Amplitude.instance().initializeApiKey(Tokens.shared.amplitudeToken)

AppsFlyerTracker.shared().appsFlyerDevKey = Tokens.shared.appsFlyerDevKey
AppsFlyerTracker.shared().appleAppID = "\(Tokens.shared.firebaseId)"
}
}
2 changes: 0 additions & 2 deletions Stepic/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import FBSDKCoreKit
import YandexMobileMetrica
import Presentr
import PromiseKit
import AppsFlyerLib

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
Expand Down Expand Up @@ -125,7 +124,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

func applicationDidBecomeActive(_ application: UIApplication) {
NotificationsBadgesManager.shared.set(number: application.applicationIconBadgeNumber)
AppsFlyerTracker.shared().trackAppLaunch()
}

// MARK: - Downloading Data in the Background
Expand Down
Binary file modified Stepic/Tokens.plist
Binary file not shown.
9 changes: 3 additions & 6 deletions Stepic/Tokens.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@ class Tokens {
var amplitudeToken: String = ""
var appMetricaToken: String = ""
var firebaseId: UInt = 0
var appsFlyerDevKey: String = ""

static let shared = Tokens()

private convenience init() {
self.init(plist: "Tokens")!
}

private init(amplitudeToken: String, appMetricaToken: String, firebaseId: UInt, appsFlyerDevKey: String) {
private init(amplitudeToken: String, appMetricaToken: String, firebaseId: UInt) {
self.amplitudeToken = amplitudeToken
self.appMetricaToken = appMetricaToken
self.firebaseId = firebaseId
self.appsFlyerDevKey = appsFlyerDevKey
}

private convenience init?(plist: String) {
Expand All @@ -38,11 +36,10 @@ class Tokens {
}
guard let amplitude = dic["Amplitude"] as? String,
let appmetrica = dic["AppMetrica"] as? String,
let firebase = dic["FirebaseAppID"] as? UInt,
let appsFlyer = dic["AppsFlyer"] as? String else {
let firebase = dic["FirebaseAppID"] as? UInt else {
return nil
}
self.init(amplitudeToken: amplitude, appMetricaToken: appmetrica, firebaseId: firebase, appsFlyerDevKey: appsFlyer)
self.init(amplitudeToken: amplitude, appMetricaToken: appmetrica, firebaseId: firebase)
}

}