@adshift/react-native-plugin 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AdShiftReactNativePlugin.podspec +20 -4
- package/CHANGELOG.md +30 -17
- package/README.md +55 -47
- package/android/build.gradle +2 -3
- package/android/consumer-rules.pro +2 -21
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/com/adshift/reactnativeplugin/ActivityIntents.kt +307 -0
- package/android/src/main/java/com/adshift/reactnativeplugin/AdShiftReactNativePluginModule.kt +83 -157
- package/android/src/test/java/com/adshift/reactnativeplugin/ConsentSnapshotTest.kt +0 -20
- package/android/src/test/java/com/adshift/reactnativeplugin/DeepLinkDeliveryTest.kt +0 -4
- package/android/src/test/java/com/adshift/reactnativeplugin/InitializeOrderingTest.kt +37 -5
- package/android/src/test/java/com/adshift/reactnativeplugin/IntentLinkDedupTest.kt +0 -5
- package/android/src/test/java/com/adshift/reactnativeplugin/LaunchIntentForwardingTest.kt +7 -26
- package/android/src/test/java/com/adshift/reactnativeplugin/LaunchLinkRecordTest.kt +420 -0
- package/android/src/test/java/com/adshift/reactnativeplugin/ModuleTestSupport.kt +93 -34
- package/android/src/test/java/com/adshift/reactnativeplugin/StartVerdictTest.kt +0 -4
- package/ios/AdShiftReactNativePlugin.h +0 -12
- package/ios/AdShiftReactNativePlugin.mm +2 -14
- package/ios/AdShiftReactNativePluginHelper.swift +14 -73
- package/ios/Core/BridgeRules.swift +24 -29
- package/lib/commonjs/Adshift.js +78 -285
- package/lib/commonjs/Adshift.js.map +1 -1
- package/lib/commonjs/NativeAdShiftReactNativePlugin.js +2 -11
- package/lib/commonjs/NativeAdShiftReactNativePlugin.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/jest/index.js +4 -18
- package/lib/commonjs/jest/index.js.map +1 -1
- package/lib/commonjs/nativeSdkVersions.js +4 -6
- package/lib/commonjs/nativeSdkVersions.js.map +1 -1
- package/lib/commonjs/types/AdshiftAdRevenue.js +0 -24
- package/lib/commonjs/types/AdshiftAdRevenue.js.map +1 -1
- package/lib/commonjs/types/AdshiftConfig.js +3 -24
- package/lib/commonjs/types/AdshiftConfig.js.map +1 -1
- package/lib/commonjs/types/AdshiftConsent.js +9 -45
- package/lib/commonjs/types/AdshiftConsent.js.map +1 -1
- package/lib/commonjs/types/AdshiftConsentSnapshot.js +5 -24
- package/lib/commonjs/types/AdshiftConsentSnapshot.js.map +1 -1
- package/lib/commonjs/types/AdshiftDeepLink.js +3 -30
- package/lib/commonjs/types/AdshiftDeepLink.js.map +1 -1
- package/lib/commonjs/types/AdshiftError.js +7 -27
- package/lib/commonjs/types/AdshiftError.js.map +1 -1
- package/lib/commonjs/types/AdshiftEventParam.js +4 -38
- package/lib/commonjs/types/AdshiftEventParam.js.map +1 -1
- package/lib/commonjs/types/AdshiftEventType.js +1 -39
- package/lib/commonjs/types/AdshiftEventType.js.map +1 -1
- package/lib/commonjs/types/AdshiftThirdPartySharing.js +7 -38
- package/lib/commonjs/types/AdshiftThirdPartySharing.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/Adshift.js +78 -285
- package/lib/module/Adshift.js.map +1 -1
- package/lib/module/NativeAdShiftReactNativePlugin.js +2 -12
- package/lib/module/NativeAdShiftReactNativePlugin.js.map +1 -1
- package/lib/module/index.js +1 -46
- package/lib/module/index.js.map +1 -1
- package/lib/module/jest/index.js +4 -18
- package/lib/module/jest/index.js.map +1 -1
- package/lib/module/nativeSdkVersions.js +4 -6
- package/lib/module/nativeSdkVersions.js.map +1 -1
- package/lib/module/types/AdshiftAdRevenue.js +0 -24
- package/lib/module/types/AdshiftAdRevenue.js.map +1 -1
- package/lib/module/types/AdshiftConfig.js +3 -24
- package/lib/module/types/AdshiftConfig.js.map +1 -1
- package/lib/module/types/AdshiftConsent.js +9 -45
- package/lib/module/types/AdshiftConsent.js.map +1 -1
- package/lib/module/types/AdshiftConsentSnapshot.js +5 -24
- package/lib/module/types/AdshiftConsentSnapshot.js.map +1 -1
- package/lib/module/types/AdshiftDeepLink.js +3 -31
- package/lib/module/types/AdshiftDeepLink.js.map +1 -1
- package/lib/module/types/AdshiftError.js +7 -28
- package/lib/module/types/AdshiftError.js.map +1 -1
- package/lib/module/types/AdshiftEventParam.js +4 -38
- package/lib/module/types/AdshiftEventParam.js.map +1 -1
- package/lib/module/types/AdshiftEventType.js +1 -39
- package/lib/module/types/AdshiftEventType.js.map +1 -1
- package/lib/module/types/AdshiftThirdPartySharing.js +7 -38
- package/lib/module/types/AdshiftThirdPartySharing.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/commonjs/src/Adshift.d.ts +61 -185
- package/lib/typescript/commonjs/src/Adshift.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts +10 -36
- package/lib/typescript/commonjs/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +0 -32
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/jest/index.d.ts +6 -20
- package/lib/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts +4 -6
- package/lib/typescript/commonjs/src/nativeSdkVersions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts +0 -24
- package/lib/typescript/commonjs/src/types/AdshiftAdRevenue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts +10 -37
- package/lib/typescript/commonjs/src/types/AdshiftConfig.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts +9 -49
- package/lib/typescript/commonjs/src/types/AdshiftConsent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts +10 -28
- package/lib/typescript/commonjs/src/types/AdshiftConsentSnapshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts +6 -34
- package/lib/typescript/commonjs/src/types/AdshiftDeepLink.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftError.d.ts +7 -26
- package/lib/typescript/commonjs/src/types/AdshiftError.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts +3 -19
- package/lib/typescript/commonjs/src/types/AdshiftEventParam.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftEventType.d.ts +1 -23
- package/lib/typescript/commonjs/src/types/AdshiftEventType.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts +7 -38
- package/lib/typescript/commonjs/src/types/AdshiftThirdPartySharing.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/version.d.ts +1 -1
- package/lib/typescript/module/src/Adshift.d.ts +61 -185
- package/lib/typescript/module/src/Adshift.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts +10 -36
- package/lib/typescript/module/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +0 -32
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/jest/index.d.ts +6 -20
- package/lib/typescript/module/src/jest/index.d.ts.map +1 -1
- package/lib/typescript/module/src/nativeSdkVersions.d.ts +4 -6
- package/lib/typescript/module/src/nativeSdkVersions.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts +0 -24
- package/lib/typescript/module/src/types/AdshiftAdRevenue.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftConfig.d.ts +10 -37
- package/lib/typescript/module/src/types/AdshiftConfig.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftConsent.d.ts +9 -49
- package/lib/typescript/module/src/types/AdshiftConsent.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts +10 -28
- package/lib/typescript/module/src/types/AdshiftConsentSnapshot.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts +6 -34
- package/lib/typescript/module/src/types/AdshiftDeepLink.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftError.d.ts +7 -26
- package/lib/typescript/module/src/types/AdshiftError.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftEventParam.d.ts +3 -19
- package/lib/typescript/module/src/types/AdshiftEventParam.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftEventType.d.ts +1 -23
- package/lib/typescript/module/src/types/AdshiftEventType.d.ts.map +1 -1
- package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts +7 -38
- package/lib/typescript/module/src/types/AdshiftThirdPartySharing.d.ts.map +1 -1
- package/lib/typescript/module/src/version.d.ts +1 -1
- package/package.json +11 -1
- package/src/Adshift.ts +82 -286
- package/src/NativeAdShiftReactNativePlugin.ts +10 -48
- package/src/index.tsx +1 -44
- package/src/jest/index.ts +6 -20
- package/src/nativeSdkVersions.ts +4 -6
- package/src/types/AdshiftAdRevenue.ts +0 -24
- package/src/types/AdshiftConfig.ts +11 -54
- package/src/types/AdshiftConsent.ts +9 -49
- package/src/types/AdshiftConsentSnapshot.ts +11 -38
- package/src/types/AdshiftDeepLink.ts +6 -34
- package/src/types/AdshiftError.ts +7 -26
- package/src/types/AdshiftEventParam.ts +4 -38
- package/src/types/AdshiftEventType.ts +1 -39
- package/src/types/AdshiftThirdPartySharing.ts +7 -38
- package/src/version.ts +1 -1
- package/vendor/ios/AdshiftSDK.files.json +30 -0
- package/vendor/ios/AdshiftSDK.xcframework/Info.plist +44 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/AdshiftSDK +0 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Headers/AdshiftSDK-Swift.h +315 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Info.plist +0 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.abi.json +18729 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +414 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios.swiftinterface +414 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/Modules/module.modulemap +4 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64/AdshiftSDK.framework/PrivacyInfo.xcprivacy +132 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/AdshiftSDK +0 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Headers/AdshiftSDK-Swift.h +626 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Info.plist +0 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +18729 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +414 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +414 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +18729 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +414 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/AdshiftSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +414 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/Modules/module.modulemap +4 -0
- package/vendor/ios/AdshiftSDK.xcframework/ios-arm64_x86_64-simulator/AdshiftSDK.framework/PrivacyInfo.xcprivacy +132 -0
- package/android/src/main/java/com/adshift/reactnativeplugin/RestoredIntents.kt +0 -64
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
// swift-interface-format-version: 1.0
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-ios15.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name AdshiftSDK
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
|
|
5
|
+
import AdServices
|
|
6
|
+
import AdSupport
|
|
7
|
+
import AppTrackingTransparency
|
|
8
|
+
import CoreTelephony
|
|
9
|
+
import CryptoKit
|
|
10
|
+
import Foundation
|
|
11
|
+
import Network
|
|
12
|
+
import ObjectiveC
|
|
13
|
+
import Security
|
|
14
|
+
import StoreKit
|
|
15
|
+
import Swift
|
|
16
|
+
import UIKit
|
|
17
|
+
import _Concurrency
|
|
18
|
+
import _StringProcessing
|
|
19
|
+
import _SwiftConcurrencyShims
|
|
20
|
+
public struct ASAdRevenueData : Swift.Sendable {
|
|
21
|
+
public let monetizationNetwork: Swift.String
|
|
22
|
+
public let mediationNetwork: AdshiftSDK.ASMediationNetwork
|
|
23
|
+
public let currencyIso4217Code: Swift.String
|
|
24
|
+
public let revenue: Swift.Double
|
|
25
|
+
public init(monetizationNetwork: Swift.String, mediationNetwork: AdshiftSDK.ASMediationNetwork, currencyIso4217Code: Swift.String, revenue: Swift.Double)
|
|
26
|
+
}
|
|
27
|
+
public enum ASInAppEventParameterName {
|
|
28
|
+
public static let level: Swift.String
|
|
29
|
+
public static let score: Swift.String
|
|
30
|
+
public static let success: Swift.String
|
|
31
|
+
public static let price: Swift.String
|
|
32
|
+
public static let contentType: Swift.String
|
|
33
|
+
public static let contentId: Swift.String
|
|
34
|
+
public static let contentList: Swift.String
|
|
35
|
+
public static let currency: Swift.String
|
|
36
|
+
public static let quantity: Swift.String
|
|
37
|
+
public static let registrationMethod: Swift.String
|
|
38
|
+
public static let paymentInfoAvailable: Swift.String
|
|
39
|
+
public static let maxRatingValue: Swift.String
|
|
40
|
+
public static let ratingValue: Swift.String
|
|
41
|
+
public static let searchString: Swift.String
|
|
42
|
+
public static let dateA: Swift.String
|
|
43
|
+
public static let dateB: Swift.String
|
|
44
|
+
public static let destinationA: Swift.String
|
|
45
|
+
public static let destinationB: Swift.String
|
|
46
|
+
public static let description: Swift.String
|
|
47
|
+
public static let `class`: Swift.String
|
|
48
|
+
public static let eventStart: Swift.String
|
|
49
|
+
public static let eventEnd: Swift.String
|
|
50
|
+
public static let latitude: Swift.String
|
|
51
|
+
public static let longitude: Swift.String
|
|
52
|
+
public static let customerUserId: Swift.String
|
|
53
|
+
public static let validated: Swift.String
|
|
54
|
+
public static let revenue: Swift.String
|
|
55
|
+
public static let projectedRevenue: Swift.String
|
|
56
|
+
public static let receiptId: Swift.String
|
|
57
|
+
public static let tutorialId: Swift.String
|
|
58
|
+
public static let achievementId: Swift.String
|
|
59
|
+
public static let virtualCurrencyName: Swift.String
|
|
60
|
+
public static let deepLink: Swift.String
|
|
61
|
+
public static let oldVersion: Swift.String
|
|
62
|
+
public static let newVersion: Swift.String
|
|
63
|
+
public static let reviewText: Swift.String
|
|
64
|
+
public static let couponCode: Swift.String
|
|
65
|
+
public static let param1: Swift.String
|
|
66
|
+
public static let param2: Swift.String
|
|
67
|
+
public static let param3: Swift.String
|
|
68
|
+
public static let param4: Swift.String
|
|
69
|
+
public static let param5: Swift.String
|
|
70
|
+
public static let param6: Swift.String
|
|
71
|
+
public static let param7: Swift.String
|
|
72
|
+
public static let param8: Swift.String
|
|
73
|
+
public static let param9: Swift.String
|
|
74
|
+
public static let param10: Swift.String
|
|
75
|
+
public static let orderId: Swift.String
|
|
76
|
+
public static let departingDepartureDate: Swift.String
|
|
77
|
+
public static let returningDepartureDate: Swift.String
|
|
78
|
+
public static let destinationList: Swift.String
|
|
79
|
+
public static let city: Swift.String
|
|
80
|
+
public static let region: Swift.String
|
|
81
|
+
public static let country: Swift.String
|
|
82
|
+
public static let departingArrivalDate: Swift.String
|
|
83
|
+
public static let returningArrivalDate: Swift.String
|
|
84
|
+
public static let suggestedDestinations: Swift.String
|
|
85
|
+
public static let travelStart: Swift.String
|
|
86
|
+
public static let travelEnd: Swift.String
|
|
87
|
+
public static let numAdults: Swift.String
|
|
88
|
+
public static let numChildren: Swift.String
|
|
89
|
+
public static let numInfants: Swift.String
|
|
90
|
+
public static let suggestedHotels: Swift.String
|
|
91
|
+
public static let userScore: Swift.String
|
|
92
|
+
public static let hotelScore: Swift.String
|
|
93
|
+
public static let purchaseCurrency: Swift.String
|
|
94
|
+
public static let preferredStarRatings: Swift.String
|
|
95
|
+
public static let preferredPriceRange: Swift.String
|
|
96
|
+
public static let preferredNeighborhoods: Swift.String
|
|
97
|
+
public static let preferredNumStops: Swift.String
|
|
98
|
+
public static let touchObj: Swift.String
|
|
99
|
+
public static let afChannel: Swift.String
|
|
100
|
+
public static let content: Swift.String
|
|
101
|
+
public static let adRevenueAdType: Swift.String
|
|
102
|
+
public static let adRevenueNetworkName: Swift.String
|
|
103
|
+
public static let adRevenuePlacementId: Swift.String
|
|
104
|
+
public static let adRevenueAdSize: Swift.String
|
|
105
|
+
public static let adRevenueMediatedNetworkName: Swift.String
|
|
106
|
+
public static let adRevenueSource: Swift.String
|
|
107
|
+
public static let adRevenuePrecision: Swift.String
|
|
108
|
+
public static let adRevenueAdUnitId: Swift.String
|
|
109
|
+
}
|
|
110
|
+
public enum ASInAppEventType {
|
|
111
|
+
case levelAchieved
|
|
112
|
+
case addPaymentInfo
|
|
113
|
+
case addToCart
|
|
114
|
+
case addToWishList
|
|
115
|
+
case completeRegistration
|
|
116
|
+
case tutorialCompletion
|
|
117
|
+
case initiatedCheckout
|
|
118
|
+
case purchase
|
|
119
|
+
case rate
|
|
120
|
+
case search
|
|
121
|
+
case spentCredit
|
|
122
|
+
case achievementUnlocked
|
|
123
|
+
case contentView
|
|
124
|
+
case travelBooking
|
|
125
|
+
case share
|
|
126
|
+
case invite
|
|
127
|
+
case login
|
|
128
|
+
case reEngage
|
|
129
|
+
case update
|
|
130
|
+
case openedFromPushNotification
|
|
131
|
+
case listView
|
|
132
|
+
case subscribe
|
|
133
|
+
case startTrial
|
|
134
|
+
case adClick
|
|
135
|
+
case adView
|
|
136
|
+
case locationChanged
|
|
137
|
+
case locationCoordinates
|
|
138
|
+
case orderId
|
|
139
|
+
case customerSegment
|
|
140
|
+
case adRevenue
|
|
141
|
+
case customEvent(Swift.String)
|
|
142
|
+
public var stringValue: Swift.String {
|
|
143
|
+
get
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
public enum ASMediationNetwork : Swift.String, Swift.CaseIterable {
|
|
147
|
+
case appLovinMAX
|
|
148
|
+
case googleAdMob
|
|
149
|
+
case ironSource
|
|
150
|
+
case chartboost
|
|
151
|
+
case topOn
|
|
152
|
+
case tradPlus
|
|
153
|
+
case adMost
|
|
154
|
+
case appodeal
|
|
155
|
+
case fyber
|
|
156
|
+
case unity
|
|
157
|
+
case yandex
|
|
158
|
+
case customMediation
|
|
159
|
+
case directMonetization
|
|
160
|
+
case other
|
|
161
|
+
public init?(rawValue: Swift.String)
|
|
162
|
+
public typealias AllCases = [AdshiftSDK.ASMediationNetwork]
|
|
163
|
+
public typealias RawValue = Swift.String
|
|
164
|
+
nonisolated public static var allCases: [AdshiftSDK.ASMediationNetwork] {
|
|
165
|
+
get
|
|
166
|
+
}
|
|
167
|
+
public var rawValue: Swift.String {
|
|
168
|
+
get
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
public struct AdShiftConsent : Swift.Codable {
|
|
172
|
+
public init(isUserSubjectToGDPR: Swift.Bool, hasConsentForDataUsage: Swift.Bool?, hasConsentForAdsPersonalization: Swift.Bool?, hasConsentForAdStorage: Swift.Bool?)
|
|
173
|
+
public static func forGDPRUser(hasConsentForDataUsage: Swift.Bool?, hasConsentForAdsPersonalization: Swift.Bool?, hasConsentForAdStorage: Swift.Bool?) -> AdshiftSDK.AdShiftConsent
|
|
174
|
+
public static func consentRequired(hasConsentForDataUsage: Swift.Bool?, hasConsentForAdsPersonalization: Swift.Bool?, hasConsentForAdStorage: Swift.Bool?) -> AdshiftSDK.AdShiftConsent
|
|
175
|
+
public static func forNonGDPRUser() -> AdshiftSDK.AdShiftConsent
|
|
176
|
+
public static func consentNotRequired() -> AdshiftSDK.AdShiftConsent
|
|
177
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
178
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
179
|
+
}
|
|
180
|
+
public enum AdShiftError : Swift.Error {
|
|
181
|
+
case invalidAPIKey
|
|
182
|
+
case notInitialized
|
|
183
|
+
case notStarted
|
|
184
|
+
case alreadyStarted
|
|
185
|
+
case trackingDisabled
|
|
186
|
+
case networkFailure(Foundation.URLError)
|
|
187
|
+
case serverError(statusCode: Swift.Int, message: Swift.String?)
|
|
188
|
+
case decodingError(any Swift.Error)
|
|
189
|
+
case timeout
|
|
190
|
+
case offline
|
|
191
|
+
case apiKeyValidationFailed(Swift.String)
|
|
192
|
+
case invalidEvent(Swift.String)
|
|
193
|
+
case invalidParameters(Swift.String)
|
|
194
|
+
case invalidDeepLinkURL
|
|
195
|
+
case deepLinkNotFound
|
|
196
|
+
case deepLinkDecodingError
|
|
197
|
+
case storageError(any Swift.Error)
|
|
198
|
+
case loadError(any Swift.Error)
|
|
199
|
+
case unknown(any Swift.Error)
|
|
200
|
+
}
|
|
201
|
+
extension AdshiftSDK.AdShiftError : Foundation.LocalizedError {
|
|
202
|
+
public var errorDescription: Swift.String? {
|
|
203
|
+
get
|
|
204
|
+
}
|
|
205
|
+
public var recoverySuggestion: Swift.String? {
|
|
206
|
+
get
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
extension AdshiftSDK.AdShiftError : Foundation.CustomNSError {
|
|
210
|
+
public static var errorDomain: Swift.String {
|
|
211
|
+
get
|
|
212
|
+
}
|
|
213
|
+
public var errorCode: Swift.Int {
|
|
214
|
+
get
|
|
215
|
+
}
|
|
216
|
+
public var errorUserInfo: [Swift.String : Any] {
|
|
217
|
+
get
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
public struct AdShiftThirdPartySharing : Swift.Codable, Swift.Equatable {
|
|
221
|
+
public let optOut: Swift.Bool
|
|
222
|
+
public static func optedOut() -> AdshiftSDK.AdShiftThirdPartySharing
|
|
223
|
+
public static func allowed() -> AdshiftSDK.AdShiftThirdPartySharing
|
|
224
|
+
public static func == (a: AdshiftSDK.AdShiftThirdPartySharing, b: AdshiftSDK.AdShiftThirdPartySharing) -> Swift.Bool
|
|
225
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
226
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
227
|
+
}
|
|
228
|
+
@_hasMissingDesignatedInitializers @available(iOS 15.0, *)
|
|
229
|
+
@_Concurrency.MainActor final public class Adshift {
|
|
230
|
+
@_Concurrency.MainActor public static let shared: AdshiftSDK.Adshift
|
|
231
|
+
@_Concurrency.MainActor final public var isDebug: Swift.Bool {
|
|
232
|
+
get
|
|
233
|
+
set
|
|
234
|
+
}
|
|
235
|
+
@_Concurrency.MainActor final public var apiKey: Swift.String? {
|
|
236
|
+
get
|
|
237
|
+
set
|
|
238
|
+
}
|
|
239
|
+
@_Concurrency.MainActor final public var brandedDomains: [Swift.String] {
|
|
240
|
+
get
|
|
241
|
+
set
|
|
242
|
+
}
|
|
243
|
+
@_Concurrency.MainActor final public var testMode: Swift.Bool
|
|
244
|
+
@_Concurrency.MainActor final public var wrapper: Swift.String? {
|
|
245
|
+
get
|
|
246
|
+
set
|
|
247
|
+
}
|
|
248
|
+
@_Concurrency.MainActor final public var deferredDeepLinkClipboard: AdshiftSDK.DeferredDeepLinkClipboard {
|
|
249
|
+
get
|
|
250
|
+
set
|
|
251
|
+
}
|
|
252
|
+
@_Concurrency.MainActor final public func handlePastedDeepLink(_ url: Foundation.URL?)
|
|
253
|
+
@_Concurrency.MainActor final public var appOpenDebounceMs: Swift.Int {
|
|
254
|
+
get
|
|
255
|
+
set
|
|
256
|
+
}
|
|
257
|
+
@_Concurrency.MainActor final public var disableSKAN: Swift.Bool
|
|
258
|
+
@_Concurrency.MainActor final public var waitForATTBeforeStart: Swift.Bool
|
|
259
|
+
@_Concurrency.MainActor final public var attTimeoutMs: Swift.Int {
|
|
260
|
+
get
|
|
261
|
+
set
|
|
262
|
+
}
|
|
263
|
+
@_Concurrency.MainActor final public var googleOnDeviceMeasurement: AdshiftSDK.GoogleOnDeviceMeasurement
|
|
264
|
+
@_Concurrency.MainActor final public func start()
|
|
265
|
+
@_Concurrency.MainActor final public func start(completionHandler: (([Swift.String : Any]?, (any Swift.Error)?) -> Swift.Void)?)
|
|
266
|
+
@_Concurrency.MainActor final public func stop()
|
|
267
|
+
@_Concurrency.MainActor final public func isStarted() -> Swift.Bool
|
|
268
|
+
@_Concurrency.MainActor final public func setCustomerUserId(_ userId: Swift.String)
|
|
269
|
+
@_Concurrency.MainActor final public func getAdShiftDeviceId() -> Swift.String?
|
|
270
|
+
@_Concurrency.MainActor final public func enableTCFDataCollection(_ enabled: Swift.Bool)
|
|
271
|
+
@_Concurrency.MainActor final public func enableGPPDataCollection(_ enabled: Swift.Bool)
|
|
272
|
+
@_Concurrency.MainActor final public func setConsentData(_ consent: AdshiftSDK.AdShiftConsent)
|
|
273
|
+
nonisolated final public func setGoogleOnDeviceMeasurementInfo(_ info: Swift.String)
|
|
274
|
+
@_Concurrency.MainActor final public func setThirdPartySharing(_ sharing: AdshiftSDK.AdShiftThirdPartySharing)
|
|
275
|
+
@_Concurrency.MainActor final public func clearThirdPartySharing()
|
|
276
|
+
@discardableResult
|
|
277
|
+
@_Concurrency.MainActor final public func refreshConsent() -> AdshiftSDK.ConsentSnapshot
|
|
278
|
+
@_Concurrency.MainActor final public func track(event: AdshiftSDK.ASInAppEventType, values: [Swift.String : Any]? = nil, completionHandler: (([Swift.String : Any]?, (any Swift.Error)?) -> Swift.Void)? = nil) async
|
|
279
|
+
@_Concurrency.MainActor final public func trackPurchase(productId: Swift.String, price: Swift.Double, currency: Swift.String, token: Swift.String, completionHandler: (([Swift.String : Any]?, (any Swift.Error)?) -> Swift.Void)? = nil) async
|
|
280
|
+
@_Concurrency.MainActor final public func logAdRevenue(_ adRevenueData: AdshiftSDK.ASAdRevenueData, additionalParameters: [Swift.String : Any]? = nil) async
|
|
281
|
+
@discardableResult
|
|
282
|
+
@_Concurrency.MainActor final public func handleDeepLink(url: Foundation.URL) async throws -> AdshiftSDK.DeeplinkResponse
|
|
283
|
+
@discardableResult
|
|
284
|
+
@_Concurrency.MainActor final public func handleDeepLink(userActivity: Foundation.NSUserActivity) -> Swift.Bool
|
|
285
|
+
@_Concurrency.MainActor final public func handleDeepLink(connectionOptions: UIKit.UIScene.ConnectionOptions)
|
|
286
|
+
@_Concurrency.MainActor final public func onDeepLinkReceived(_ listener: @escaping (AdshiftSDK.DeeplinkResponse) -> Swift.Void)
|
|
287
|
+
@_Concurrency.MainActor final public func addPushNotificationDeepLinkPath(_ path: [Swift.String])
|
|
288
|
+
@discardableResult
|
|
289
|
+
@_Concurrency.MainActor final public func handlePushNotification(userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool
|
|
290
|
+
@objc deinit
|
|
291
|
+
}
|
|
292
|
+
@available(iOS 15.0, *)
|
|
293
|
+
public struct ConsentSnapshot {
|
|
294
|
+
public enum Source : Swift.String, Swift.Codable {
|
|
295
|
+
case manual
|
|
296
|
+
case tcf
|
|
297
|
+
case gpp
|
|
298
|
+
case none
|
|
299
|
+
public init?(rawValue: Swift.String)
|
|
300
|
+
@available(iOS 15.0, *)
|
|
301
|
+
public typealias RawValue = Swift.String
|
|
302
|
+
public var rawValue: Swift.String {
|
|
303
|
+
get
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
public let source: AdshiftSDK.ConsentSnapshot.Source
|
|
307
|
+
public let gdprApplies: Swift.Int?
|
|
308
|
+
public let tcStringPresent: Swift.Bool
|
|
309
|
+
public let gppPresent: Swift.Bool
|
|
310
|
+
public let adUserDataEnabled: Swift.Bool?
|
|
311
|
+
public let adPersonalizationEnabled: Swift.Bool?
|
|
312
|
+
public let adStorageEnabled: Swift.Bool?
|
|
313
|
+
public let appliedAtMillis: Swift.Int64
|
|
314
|
+
public let cmpDetected: Swift.Bool
|
|
315
|
+
public init(source: AdshiftSDK.ConsentSnapshot.Source, gdprApplies: Swift.Int?, tcStringPresent: Swift.Bool, adUserDataEnabled: Swift.Bool?, adPersonalizationEnabled: Swift.Bool?, adStorageEnabled: Swift.Bool?, appliedAtMillis: Swift.Int64, gppPresent: Swift.Bool = false, cmpDetected: Swift.Bool = false)
|
|
316
|
+
}
|
|
317
|
+
@available(iOS 15.0, *)
|
|
318
|
+
extension AdshiftSDK.ConsentSnapshot : Swift.CustomStringConvertible {
|
|
319
|
+
public var description: Swift.String {
|
|
320
|
+
get
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
public enum DeepLinkError : Swift.Decodable, Swift.Sendable {
|
|
324
|
+
case decodingError
|
|
325
|
+
case invalidURL
|
|
326
|
+
case deepLinkNotFound
|
|
327
|
+
case systemError(Swift.String)
|
|
328
|
+
case timeout
|
|
329
|
+
case network
|
|
330
|
+
case server
|
|
331
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
332
|
+
}
|
|
333
|
+
public enum DeepLinkSource : Swift.String, Swift.Codable, Swift.Sendable {
|
|
334
|
+
case ul
|
|
335
|
+
case scheme
|
|
336
|
+
case cta
|
|
337
|
+
case push
|
|
338
|
+
case aak
|
|
339
|
+
case deferred
|
|
340
|
+
case foreign
|
|
341
|
+
public init?(rawValue: Swift.String)
|
|
342
|
+
public typealias RawValue = Swift.String
|
|
343
|
+
public var rawValue: Swift.String {
|
|
344
|
+
get
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
public struct DeeplinkResponse : Swift.Decodable, Swift.Sendable {
|
|
348
|
+
public let deeplink: Swift.String?
|
|
349
|
+
public let deep_link_value: Swift.String?
|
|
350
|
+
public let deep_link_sub1: Swift.String?
|
|
351
|
+
public let deep_link_sub2: Swift.String?
|
|
352
|
+
public let deep_link_sub3: Swift.String?
|
|
353
|
+
public let deep_link_sub4: Swift.String?
|
|
354
|
+
public let deep_link_sub5: Swift.String?
|
|
355
|
+
public let params: [Swift.String : Swift.String]?
|
|
356
|
+
public let isDeferred: Swift.Bool?
|
|
357
|
+
public let status: AdshiftSDK.DeepLinkStatus?
|
|
358
|
+
public let error: AdshiftSDK.DeepLinkError?
|
|
359
|
+
public let source: AdshiftSDK.DeepLinkSource?
|
|
360
|
+
public let isFirstSession: Swift.Bool?
|
|
361
|
+
public let clickId: Swift.String?
|
|
362
|
+
public let matchGuaranteed: Swift.Bool?
|
|
363
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
364
|
+
}
|
|
365
|
+
public enum DeepLinkStatus : Swift.String, Swift.Codable, Swift.Sendable {
|
|
366
|
+
case found
|
|
367
|
+
case notFound
|
|
368
|
+
case error
|
|
369
|
+
public init?(rawValue: Swift.String)
|
|
370
|
+
public typealias RawValue = Swift.String
|
|
371
|
+
public var rawValue: Swift.String {
|
|
372
|
+
get
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
public enum DeferredDeepLinkClipboard {
|
|
376
|
+
case disabled
|
|
377
|
+
case prompt
|
|
378
|
+
case pasteControl
|
|
379
|
+
public static func == (a: AdshiftSDK.DeferredDeepLinkClipboard, b: AdshiftSDK.DeferredDeepLinkClipboard) -> Swift.Bool
|
|
380
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
381
|
+
public var hashValue: Swift.Int {
|
|
382
|
+
get
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
public enum GoogleOnDeviceMeasurement : Swift.Sendable {
|
|
386
|
+
case automatic
|
|
387
|
+
case disabled
|
|
388
|
+
public static func == (a: AdshiftSDK.GoogleOnDeviceMeasurement, b: AdshiftSDK.GoogleOnDeviceMeasurement) -> Swift.Bool
|
|
389
|
+
public func hash(into hasher: inout Swift.Hasher)
|
|
390
|
+
public var hashValue: Swift.Int {
|
|
391
|
+
get
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
extension AdshiftSDK.ASMediationNetwork : Swift.Equatable {}
|
|
395
|
+
extension AdshiftSDK.ASMediationNetwork : Swift.Hashable {}
|
|
396
|
+
extension AdshiftSDK.ASMediationNetwork : Swift.RawRepresentable {}
|
|
397
|
+
@available(iOS 15.0, *)
|
|
398
|
+
extension AdshiftSDK.Adshift : Swift.Sendable {}
|
|
399
|
+
@available(iOS 15.0, *)
|
|
400
|
+
extension AdshiftSDK.ConsentSnapshot.Source : Swift.Equatable {}
|
|
401
|
+
@available(iOS 15.0, *)
|
|
402
|
+
extension AdshiftSDK.ConsentSnapshot.Source : Swift.Hashable {}
|
|
403
|
+
@available(iOS 15.0, *)
|
|
404
|
+
extension AdshiftSDK.ConsentSnapshot.Source : Swift.RawRepresentable {}
|
|
405
|
+
extension AdshiftSDK.DeepLinkSource : Swift.Equatable {}
|
|
406
|
+
extension AdshiftSDK.DeepLinkSource : Swift.Hashable {}
|
|
407
|
+
extension AdshiftSDK.DeepLinkSource : Swift.RawRepresentable {}
|
|
408
|
+
extension AdshiftSDK.DeepLinkStatus : Swift.Equatable {}
|
|
409
|
+
extension AdshiftSDK.DeepLinkStatus : Swift.Hashable {}
|
|
410
|
+
extension AdshiftSDK.DeepLinkStatus : Swift.RawRepresentable {}
|
|
411
|
+
extension AdshiftSDK.DeferredDeepLinkClipboard : Swift.Equatable {}
|
|
412
|
+
extension AdshiftSDK.DeferredDeepLinkClipboard : Swift.Hashable {}
|
|
413
|
+
extension AdshiftSDK.GoogleOnDeviceMeasurement : Swift.Equatable {}
|
|
414
|
+
extension AdshiftSDK.GoogleOnDeviceMeasurement : Swift.Hashable {}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>NSPrivacyTracking</key>
|
|
6
|
+
<true/>
|
|
7
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
8
|
+
<array>
|
|
9
|
+
<string>t-api.adshift.com</string>
|
|
10
|
+
<string>t-dl.adshift.com</string>
|
|
11
|
+
</array>
|
|
12
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
13
|
+
<array>
|
|
14
|
+
<dict>
|
|
15
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
16
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
17
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
18
|
+
<array>
|
|
19
|
+
<string>CA92.1</string>
|
|
20
|
+
</array>
|
|
21
|
+
</dict>
|
|
22
|
+
<dict>
|
|
23
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
24
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
25
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
26
|
+
<array>
|
|
27
|
+
<string>C617.1</string>
|
|
28
|
+
</array>
|
|
29
|
+
</dict>
|
|
30
|
+
<dict>
|
|
31
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
32
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
33
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
34
|
+
<array>
|
|
35
|
+
<string>35F9.1</string>
|
|
36
|
+
</array>
|
|
37
|
+
</dict>
|
|
38
|
+
</array>
|
|
39
|
+
<key>NSPrivacyCollectedDataTypes</key>
|
|
40
|
+
<array>
|
|
41
|
+
<dict>
|
|
42
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
43
|
+
<string>NSPrivacyCollectedDataTypeDeviceID</string>
|
|
44
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
45
|
+
<true/>
|
|
46
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
47
|
+
<true/>
|
|
48
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
49
|
+
<array>
|
|
50
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
51
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
52
|
+
<string>NSPrivacyCollectedDataTypePurposeProductPersonalization</string>
|
|
53
|
+
</array>
|
|
54
|
+
</dict>
|
|
55
|
+
<dict>
|
|
56
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
57
|
+
<string>NSPrivacyCollectedDataTypeUserID</string>
|
|
58
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
59
|
+
<true/>
|
|
60
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
61
|
+
<true/>
|
|
62
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
63
|
+
<array>
|
|
64
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
65
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
66
|
+
</array>
|
|
67
|
+
</dict>
|
|
68
|
+
<dict>
|
|
69
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
70
|
+
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
|
|
71
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
72
|
+
<true/>
|
|
73
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
74
|
+
<true/>
|
|
75
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
76
|
+
<array>
|
|
77
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
78
|
+
</array>
|
|
79
|
+
</dict>
|
|
80
|
+
<dict>
|
|
81
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
82
|
+
<string>NSPrivacyCollectedDataTypeAdvertisingData</string>
|
|
83
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
84
|
+
<true/>
|
|
85
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
86
|
+
<true/>
|
|
87
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
88
|
+
<array>
|
|
89
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
90
|
+
</array>
|
|
91
|
+
</dict>
|
|
92
|
+
<dict>
|
|
93
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
94
|
+
<string>NSPrivacyCollectedDataTypeCoarseLocation</string>
|
|
95
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
96
|
+
<true/>
|
|
97
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
98
|
+
<true/>
|
|
99
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
100
|
+
<array>
|
|
101
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
102
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
103
|
+
</array>
|
|
104
|
+
</dict>
|
|
105
|
+
<dict>
|
|
106
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
107
|
+
<string>NSPrivacyCollectedDataTypePurchaseHistory</string>
|
|
108
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
109
|
+
<true/>
|
|
110
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
111
|
+
<true/>
|
|
112
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
113
|
+
<array>
|
|
114
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
115
|
+
</array>
|
|
116
|
+
</dict>
|
|
117
|
+
<dict>
|
|
118
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
119
|
+
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
|
|
120
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
121
|
+
<true/>
|
|
122
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
123
|
+
<false/>
|
|
124
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
125
|
+
<array>
|
|
126
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
127
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
128
|
+
</array>
|
|
129
|
+
</dict>
|
|
130
|
+
</array>
|
|
131
|
+
</dict>
|
|
132
|
+
</plist>
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
package com.adshift.reactnativeplugin
|
|
2
|
-
|
|
3
|
-
import android.app.Activity
|
|
4
|
-
import android.app.Application
|
|
5
|
-
import android.content.Context
|
|
6
|
-
import android.content.Intent
|
|
7
|
-
import android.os.Bundle
|
|
8
|
-
import androidx.startup.Initializer
|
|
9
|
-
import java.util.Collections
|
|
10
|
-
import java.util.WeakHashMap
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The Intents held by Activities the system re-created from saved state (a
|
|
14
|
-
* rotation, a return after the process was killed). Such an Intent opened the
|
|
15
|
-
* Activity the first time, so forwarding it again would count an old tap as a
|
|
16
|
-
* new one.
|
|
17
|
-
*/
|
|
18
|
-
internal object RestoredIntents : Application.ActivityLifecycleCallbacks {
|
|
19
|
-
|
|
20
|
-
private val intents: MutableSet<Intent> =
|
|
21
|
-
Collections.synchronizedSet(Collections.newSetFromMap(WeakHashMap<Intent, Boolean>()))
|
|
22
|
-
|
|
23
|
-
private var application: Application? = null
|
|
24
|
-
|
|
25
|
-
@Synchronized
|
|
26
|
-
fun register(context: Context) {
|
|
27
|
-
val app = context.applicationContext as? Application ?: return
|
|
28
|
-
if (application === app) return
|
|
29
|
-
application = app
|
|
30
|
-
app.registerActivityLifecycleCallbacks(this)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
operator fun contains(intent: Intent): Boolean = intent in intents
|
|
34
|
-
|
|
35
|
-
private fun remember(activity: Activity, savedInstanceState: Bundle?) {
|
|
36
|
-
if (savedInstanceState != null) activity.intent?.let { intents += it }
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Gets the state the system saved even when the Activity passes null to
|
|
40
|
-
// super.onCreate; below API 29 only onActivityCreated exists.
|
|
41
|
-
override fun onActivityPreCreated(activity: Activity, savedInstanceState: Bundle?) =
|
|
42
|
-
remember(activity, savedInstanceState)
|
|
43
|
-
|
|
44
|
-
override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?) =
|
|
45
|
-
remember(activity, savedInstanceState)
|
|
46
|
-
|
|
47
|
-
override fun onActivityStarted(activity: Activity) = Unit
|
|
48
|
-
override fun onActivityResumed(activity: Activity) = Unit
|
|
49
|
-
override fun onActivityPaused(activity: Activity) = Unit
|
|
50
|
-
override fun onActivityStopped(activity: Activity) = Unit
|
|
51
|
-
override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle) = Unit
|
|
52
|
-
override fun onActivityDestroyed(activity: Activity) = Unit
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Registers [RestoredIntents] at process start, before the first Activity is
|
|
57
|
-
* created. An app that removes the entry is covered from the moment the module
|
|
58
|
-
* loads.
|
|
59
|
-
*/
|
|
60
|
-
internal class RestoredIntentsInitializer : Initializer<Unit> {
|
|
61
|
-
override fun create(context: Context) = RestoredIntents.register(context)
|
|
62
|
-
|
|
63
|
-
override fun dependencies(): List<Class<out Initializer<*>>> = emptyList()
|
|
64
|
-
}
|