diff --git a/Cartfile b/Cartfile index ffaa9c09ce..8c5d63782f 100644 --- a/Cartfile +++ b/Cartfile @@ -4,4 +4,4 @@ github "i-schuetz/SwiftCharts" == 0.6.1 github "mddub/dexcom-share-client-swift" == 0.4.1 github "mddub/G4ShareSpy" == 0.3.3 github "ps2/rileylink_ios" == 2.0.0 -github "amplitude/Amplitude-iOS" ~> 3.8.5 +github "LoopKit/Amplitude-iOS" "decreepify" diff --git a/Cartfile.resolved b/Cartfile.resolved index d2ac7370e5..e1eeddc564 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,6 +1,6 @@ +github "LoopKit/Amplitude-iOS" "2137d5fd44bf630ed33e1e72d7af6d8f8612f270" github "LoopKit/CGMBLEKit" "v2.0" github "LoopKit/LoopKit" "v1.5.5" -github "amplitude/Amplitude-iOS" "v3.14.1" github "i-schuetz/SwiftCharts" "6b55a26a7b0b95e49202ddc1db5404702fce114f" github "mddub/G4ShareSpy" "v0.3.3" github "mddub/dexcom-share-client-swift" "v0.4.1" diff --git a/Carthage/Build/.Amplitude-iOS.version b/Carthage/Build/.Amplitude-iOS.version index 8ebbee94f7..6c790cc4b2 100644 --- a/Carthage/Build/.Amplitude-iOS.version +++ b/Carthage/Build/.Amplitude-iOS.version @@ -8,11 +8,11 @@ "tvOS" : [ ], - "commitish" : "v3.14.1", + "commitish" : "2137d5fd44bf630ed33e1e72d7af6d8f8612f270", "iOS" : [ { "name" : "Amplitude", - "hash" : "6d22c00833bfcaa5d34ba1331c1144a93e8999bad97ade70be089aba729a9fbe" + "hash" : "5f7cea951cf973d78073e75b87cd222891b181a3879b081a42f057d983b7c389" } ] } \ No newline at end of file diff --git a/Carthage/Build/iOS/Amplitude.framework/Amplitude b/Carthage/Build/iOS/Amplitude.framework/Amplitude index c78691bf75..a761b896f9 100755 Binary files a/Carthage/Build/iOS/Amplitude.framework/Amplitude and b/Carthage/Build/iOS/Amplitude.framework/Amplitude differ diff --git a/Carthage/Build/iOS/Amplitude.framework/Headers/AMPDeviceInfo.h b/Carthage/Build/iOS/Amplitude.framework/Headers/AMPDeviceInfo.h index 1e18cd5f93..945c2e5e7e 100644 --- a/Carthage/Build/iOS/Amplitude.framework/Headers/AMPDeviceInfo.h +++ b/Carthage/Build/iOS/Amplitude.framework/Headers/AMPDeviceInfo.h @@ -3,7 +3,7 @@ @interface AMPDeviceInfo : NSObject --(id) init; +-(id) init: (BOOL) disableIdfaTracking; @property (readonly) NSString *appVersion; @property (readonly) NSString *osName; @property (readonly) NSString *osVersion; diff --git a/Carthage/Build/iOS/Amplitude.framework/Headers/Amplitude.h b/Carthage/Build/iOS/Amplitude.framework/Headers/Amplitude.h index 729509d045..8dc562b218 100644 --- a/Carthage/Build/iOS/Amplitude.framework/Headers/Amplitude.h +++ b/Carthage/Build/iOS/Amplitude.framework/Headers/Amplitude.h @@ -445,6 +445,15 @@ */ - (void)setUserId:(NSString*) userId; +/** + Sets the userId and starts a new session. The previous session for the previous user will be terminated and a new session will begin for the new user id. + + @param userId If your app has its own login system that you want to track users with, you can set the userId. + + @see [Setting Custom UserIds](https://github.com/amplitude/Amplitude-iOS#setting-custom-user-ids) + */ +- (void)setUserId:(NSString*) userId startNewSession:(BOOL) startNewSession; + /** Sets the deviceId. @@ -509,6 +518,13 @@ */ - (void)useAdvertisingIdForDeviceId; +/** + Disables tracking of advertisingIdentifier by the SDK + + **NOTE:** Must be called before initializeApiKey: is called to function. + */ +- (void)disableIdfaTracking; + /**----------------------------------------------------------------------------- * @name Other Methods * ----------------------------------------------------------------------------- diff --git a/Carthage/Build/iOS/Amplitude.framework/Info.plist b/Carthage/Build/iOS/Amplitude.framework/Info.plist index 23b1605dc0..a963fa3eb3 100644 Binary files a/Carthage/Build/iOS/Amplitude.framework/Info.plist and b/Carthage/Build/iOS/Amplitude.framework/Info.plist differ