// Path: Android/app/src/main/java/app/intra/sys/firebase/LogWrapper.java
// public class LogWrapper {
//   public static void logException(Throwable t) {
//     Log.e("LogWrapper", "Error", t);
//     if (BuildConfig.DEBUG) {
//       return;
//     }
//     try {
//       FirebaseCrashlytics.getInstance().recordException(t);
//     } catch (IllegalStateException e) {
//       // This only occurs during unit tests.
//     }
//   }
// 
//   public static void log(int severity, String tag, String message) {
//     Log.println(severity, tag, message);
//     if (BuildConfig.DEBUG) {
//       return;
//     }
//     try {
//       FirebaseCrashlytics.getInstance().log(tag + ": " + message);
//     } catch (IllegalStateException e) {
//       // This only occurs during unit tests.
//     }
//   }
// }


import android.annotation.SuppressLint;
import android.content.Context;
import android.telephony.TelephonyManager;
import androidx.annotation.NonNull;
import app.intra.sys.firebase.LogWrapper;
import java.lang.reflect.Method;
    return deviceCountry;
  }

  public @NonNull String getNetworkCountry() {
    return networkCountry;
  }

  private static @NonNull String countryFromSim(TelephonyManager telephonyManager) {
    String simCountry = telephonyManager.getSimCountryIso();
    if (!simCountry.isEmpty()) {
      return simCountry;
    }
    // User appears to be non-GSM.  Try CDMA.
    try {
      // Get the system properties by reflection.
      @SuppressLint("PrivateApi")
      Class<?> systemPropertiesClass = Class.forName("android.os.SystemProperties");
      Method get = systemPropertiesClass.getMethod("get", String.class);
      String cdmaOperator = (String)get.invoke(systemPropertiesClass,
          "ro.cdma.home.operator.numeric");
      if (cdmaOperator == null || cdmaOperator.isEmpty()) {
        // System is neither GSM nor CDMA.
        return "";
      }
      String mcc = cdmaOperator.substring(0, 3);
      @SuppressLint("PrivateApi")
      Class<?> mccTableClass = Class.forName("com.android.internal.telephony.MccTable");
      Method countryCodeForMcc = mccTableClass.getMethod("countryCodeForMcc", String.class);
      return (String)countryCodeForMcc.invoke(mccTableClass, mcc);
    } catch (Exception e) {
// Path: Android/app/src/main/java/app/intra/sys/firebase/LogWrapper.java
// public class LogWrapper {
//   public static void logException(Throwable t) {
//     Log.e("LogWrapper", "Error", t);
//     if (BuildConfig.DEBUG) {
//       return;
//     }
//     try {
//       FirebaseCrashlytics.getInstance().recordException(t);
//     } catch (IllegalStateException e) {
//       // This only occurs during unit tests.
//     }
//   }
// 
//   public static void log(int severity, String tag, String message) {
//     Log.println(severity, tag, message);
//     if (BuildConfig.DEBUG) {
//       return;
//     }
//     try {
//       FirebaseCrashlytics.getInstance().log(tag + ": " + message);
//     } catch (IllegalStateException e) {
//       // This only occurs during unit tests.
//     }
//   }
// }


// Path: Android/app/src/main/java/app/intra/sys/CountryCode.java
import android.annotation.SuppressLint;
import android.content.Context;
import android.telephony.TelephonyManager;
import androidx.annotation.NonNull;
import app.intra.sys.firebase.LogWrapper;
import java.lang.reflect.Method;

    return deviceCountry;
  }

  public @NonNull String getNetworkCountry() {
    return networkCountry;
  }

  private static @NonNull String countryFromSim(TelephonyManager telephonyManager) {
    String simCountry = telephonyManager.getSimCountryIso();
    if (!simCountry.isEmpty()) {
      return simCountry;
    }
    // User appears to be non-GSM.  Try CDMA.
    try {
      // Get the system properties by reflection.
      @SuppressLint("PrivateApi")
      Class<?> systemPropertiesClass = Class.forName("android.os.SystemProperties");
      Method get = systemPropertiesClass.getMethod("get", String.class);
      String cdmaOperator = (String)get.invoke(systemPropertiesClass,
          "ro.cdma.home.operator.numeric");
      if (cdmaOperator == null || cdmaOperator.isEmpty()) {
        // System is neither GSM nor CDMA.
        return "";
      }
      String mcc = cdmaOperator.substring(0, 3);
      @SuppressLint("PrivateApi")
      Class<?> mccTableClass = Class.forName("com.android.internal.telephony.MccTable");
      Method countryCodeForMcc = mccTableClass.getMethod("countryCodeForMcc", String.class);
      return (String)countryCodeForMcc.invoke(mccTableClass, mcc);
    } catch (Exception e) {
      LogWrapper.logException(e);