Skip to content

Commit a3774b8

Browse files
committed
remove unnecessary code from SwiftBridge
1 parent b8aa9bd commit a3774b8

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Assets/ConsentManagementProvider/Plugins/iOS/Source/SwiftBridge.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,8 @@ import UIKit
164164
}
165165

166166
// MARK: - Manage lib
167-
@objc public func loadMessage() {
168-
print("PURE SWIFT loadMessage")
169-
(consentManager != nil) ?
170-
consentManager?.loadMessage() :
171-
self.runCallback(callback: self.callbackOnErrorCallback, arg: "Library was not initialized correctly!")
172-
}
173-
174167
@objc public func loadMessage(authId: String? = nil) {
175-
print("PURE SWIFT loadMessage with authId")
176-
print("AuthId="+(authId ?? "nil"))
168+
print("PURE SWIFT loadMessage with authId="+(authId ?? "nil"))
177169
(consentManager != nil) ?
178170
consentManager?.loadMessage(forAuthId: authId) :
179171
self.runCallback(callback: self.callbackOnErrorCallback, arg: "Library was not initialized correctly!")

Assets/ConsentManagementProvider/Plugins/iOS/Source/Unity.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void _configLib(int accountId, int propertyId, char* propertyName, bool gdpr, bo
8888

8989
void _loadMessage()
9090
{
91-
[swiftBridge loadMessage];
91+
[swiftBridge loadMessageWithAuthId:nil];
9292
}
9393

9494
void _loadMessageWithAuthId(char * authId)

0 commit comments

Comments
 (0)