- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
64 lines
1.5 KiB
Java
64 lines
1.5 KiB
Java
package com.fyber.inneractive.sdk.external;
|
|
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import java.util.regex.Pattern;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class InneractiveUserConfig {
|
|
public int a = -1;
|
|
public Gender b = null;
|
|
|
|
@Deprecated
|
|
public String c = null;
|
|
|
|
public enum Gender {
|
|
MALE,
|
|
FEMALE
|
|
}
|
|
|
|
public static boolean ageIsValid(int i) {
|
|
return i >= 1 && i <= 120;
|
|
}
|
|
|
|
public int getAge() {
|
|
return this.a;
|
|
}
|
|
|
|
public Gender getGender() {
|
|
return this.b;
|
|
}
|
|
|
|
@Deprecated
|
|
public String getZipCode() {
|
|
return this.c;
|
|
}
|
|
|
|
public InneractiveUserConfig setAge(int i) {
|
|
if (ageIsValid(i)) {
|
|
this.a = i;
|
|
} else {
|
|
IAlog.f("The Age is invalid. Please use a number between 1 and 120", new Object[0]);
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@Deprecated
|
|
public InneractiveUserConfig setZipCode(String str) {
|
|
if (str == null || !Pattern.compile("(^\\d{5}$)|(^\\d{5}-\\d{4}$)").matcher(str).matches()) {
|
|
IAlog.c("The zipcode format is invalid. Please use a valid value.", new Object[0]);
|
|
} else {
|
|
this.c = str;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public InneractiveUserConfig setGender(Gender gender) {
|
|
if (gender != null) {
|
|
this.b = gender;
|
|
} else {
|
|
IAlog.f("The gender is invalid. Please use one of the suggested InneractiveAdView.Gender", new Object[0]);
|
|
}
|
|
return this;
|
|
}
|
|
}
|