package com.retrytech.strangerapp.retrofit;

import androidx.annotation.Keep;

import com.retrytech.strangerapp.BuildConfig;

import java.util.regex.Matcher;
import java.util.regex.Pattern;


@Keep
public final class Const {
    public static final String BASE_URL = "https://admin.bindaasbol.app/api/";
    public static final String ITEM_URL = "https://admin.bindaasbol.app/public/storage/";
    public static String AGORA_APP_ID = "43e746d4c97342f5bf3b8b439831c702";
    public static String AGORA_APP_CERTIFICATE = "2ecca7bea99249eba05762c1cebb5f29";

    public static final String API_KEY = "123";
    public static final String USER = "user";
    public static final String PREF_NAME = BuildConfig.APPLICATION_ID;
    public static final String CURRENCY = "$";
    public static final String FAKE_USER = "fake_user";

    public static String Settings = "settings";
    public static String FREE_COINS_ADDED = "free_coins_added";


    public static boolean isEmailValid(String email) {
        String expression = "^[\\w\\.-]+@([\\w\\-]+\\.)+[A-Z]{2,4}$";
        Pattern pattern = Pattern.compile(expression, Pattern.CASE_INSENSITIVE);
        Matcher matcher = pattern.matcher(email);
        return matcher.matches();
    }
}

