@customerglu/react-native-customerglu 1.4.1-beta.0 → 1.4.1-beta.1
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/android/build.gradle
CHANGED
|
@@ -61,7 +61,7 @@ repositories {
|
|
|
61
61
|
dependencies {
|
|
62
62
|
//noinspection GradleDynamicVersion
|
|
63
63
|
implementation "com.facebook.react:react-native:+" // From node_modules
|
|
64
|
-
implementation 'com.github.customerglu:CG-SDK-Android:
|
|
64
|
+
implementation 'com.github.customerglu:CG-SDK-Android:7e90d33096'
|
|
65
65
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
|
66
66
|
implementation 'com.google.code.gson:gson:2.8.6'
|
|
67
67
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
@@ -536,10 +536,24 @@ public class RncustomergluModule extends ReactContextBaseJavaModule implements L
|
|
|
536
536
|
}
|
|
537
537
|
@ReactMethod
|
|
538
538
|
public void addDelayForPIP(int delay) {
|
|
539
|
+
|
|
540
|
+
CustomerGlu.getInstance().addDelayForPIP(delay);
|
|
541
|
+
}
|
|
542
|
+
@ReactMethod
|
|
543
|
+
public void setPIPEnabled(boolean enabled) {
|
|
544
|
+
|
|
545
|
+
CustomerGlu.getInstance().setPIPEnabled(getReactApplicationContext().getCurrentActivity(),enabled);
|
|
546
|
+
}
|
|
547
|
+
@ReactMethod
|
|
548
|
+
public boolean isPIPEnabled() {
|
|
539
549
|
|
|
540
|
-
|
|
550
|
+
return CustomerGlu.getInstance().isPIPEnabled();
|
|
541
551
|
}
|
|
552
|
+
@ReactMethod
|
|
553
|
+
public void dismissPIP() {
|
|
542
554
|
|
|
555
|
+
CustomerGlu.getInstance().dismissPIP();
|
|
556
|
+
}
|
|
543
557
|
@ReactMethod
|
|
544
558
|
public boolean validateCampaign( String campaignId) {
|
|
545
559
|
return CustomerGlu.getInstance().isCampaignValid(campaignId);
|