Skip to content

Commit 351bb77

Browse files
fix about bypass ip
1 parent ef936c2 commit 351bb77

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ afterEvaluate {
3939
from components.release
4040
groupId = 'com.github.metricalp'
4141
artifactId = 'android'
42-
version = '1.2'
42+
version = '1.3'
4343
}
4444
}
4545
}

library/src/main/java/com/metricalp/android/Metricalp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ public static boolean sendEvent(String type, HashMap<String, String> eventAttrib
9696
throw new RuntimeException("Metricalp: tid is missing in attributes");
9797
}
9898

99-
if (body.containsKey("bypassIpUniqueness") && !body.containsKey("metr_unique_identifier")) {
100-
throw new RuntimeException("Metricalp: when bypassIpUniqueness is true, metr_unique_identifier must be set.");
99+
if (body.containsKey("metr_bypass_ip") && !body.containsKey("metr_unique_identifier")) {
100+
throw new RuntimeException("Metricalp: when metr_bypass_ip is true, metr_unique_identifier must be set.");
101101
}
102102

103103

0 commit comments

Comments
 (0)