@customerglu/react-native-customerglu 1.4.1-beta.3 → 1.4.1-beta.6
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/ios/Rncustomerglu.m
CHANGED
|
@@ -66,6 +66,8 @@ RCT_EXTERN_METHOD(setApnFcmToken:(NSString *)apn fcmToken:(NSString *)fcm)
|
|
|
66
66
|
RCT_EXTERN_METHOD(getBannerHeight)
|
|
67
67
|
RCT_EXTERN_METHOD(allowAnonymousRegistration:(BOOL *)bool)
|
|
68
68
|
RCT_EXTERN_METHOD(testIntegration)
|
|
69
|
+
RCT_EXTERN_METHOD(addMarginsForPIP:(int *)horizontal vertical:(int *)vertical pipType:(NSString *)pipType)
|
|
70
|
+
RCT_EXTERN_METHOD(addDelayForPIP:(int *)delay)
|
|
69
71
|
|
|
70
72
|
@end
|
|
71
73
|
|
package/ios/Rncustomerglu.swift
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Foundation
|
|
2
|
-
import
|
|
2
|
+
import CustomerGlu
|
|
3
3
|
import UIKit
|
|
4
4
|
import React
|
|
5
5
|
|
|
@@ -457,6 +457,7 @@ class Rncustomerglu: RCTEventEmitter{
|
|
|
457
457
|
customerGlu.loadCampaignByFilter(parameters: obj)
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
+
|
|
460
461
|
@objc
|
|
461
462
|
func SetCurrentClassName(_ clName:String) -> Void {
|
|
462
463
|
DispatchQueue.main.async {
|
|
@@ -477,6 +478,17 @@ class Rncustomerglu: RCTEventEmitter{
|
|
|
477
478
|
// NotificationCenter.default.addObserver(self, selector: #selector(self.catchBannerHeightNotification(notification:)), name: Notification.Name("CGBANNER_FINAL_HEIGHT"), object: nil)
|
|
478
479
|
|
|
479
480
|
}
|
|
481
|
+
|
|
482
|
+
@objc
|
|
483
|
+
func addMarginsForPIP(_ horizontal: Int, vertical:Int, pipType: String){
|
|
484
|
+
customerGlu.addMarginForPIP(horizontal: horizontal, vertical: vertical)
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
@objc
|
|
488
|
+
func addDelayForPIP(_ delay: Int){
|
|
489
|
+
customerGlu.addDelayForPIP(delay: delay)
|
|
490
|
+
}
|
|
491
|
+
|
|
480
492
|
|
|
481
493
|
// @objc
|
|
482
494
|
// func catchBannerHeightNotification(notification: NSNotification) {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ DESC
|
|
|
15
15
|
s.source = { :git => "https://github.com/customerglu/CG-SDK-React-Native.git", :tag => "#{s.version}" }
|
|
16
16
|
s.source_files = "ios/**/*"
|
|
17
17
|
s.dependency "React-Core"
|
|
18
|
-
s.dependency "
|
|
18
|
+
s.dependency "CustomerGlu", "2.4.5"
|
|
19
19
|
s.platform = :ios, '11.0'
|
|
20
20
|
s.swift_version = '5.0'
|
|
21
21
|
|