Skip to content

Commit

Permalink
Merge branch 'hotfix/2.8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
johncordeiro committed Jun 30, 2017
2 parents ca7dc1d + 6248f57 commit 1d531d2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ android {
applicationId "in.ureport"
minSdkVersion 10
targetSdkVersion 23
versionCode 44
versionName "2.8.0"
versionCode 45
versionName "2.8.1"
multiDexEnabled true
}
buildTypes {
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/java/in/ureport/managers/FirebaseProxyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ public class FirebaseProxyManager {
private static final String TAG = "FirebaseProxyManager";

private static final String COUNTRY_SYRIA = "SY";
private static final String COUNTRY_LEBANON = "LB";
private static final String COUNTRY_IRAN = "IR";
private static final String COUNTRY_IRAQ = "IQ";
private static final String COUNTRY_JORDAN = "JO";
private static final String COUNTRY_AZERBAIJAN = "AZ";
private static final String COUNTRY_AFGHANISTAN = "AF";

/** List of countries that need proxy to connect with Firebase */
private final static Map<String, CountryProgram> proxyCountries;
Expand All @@ -31,6 +37,12 @@ public class FirebaseProxyManager {
static {
proxyCountries = new HashMap<>();
proxyCountries.put(COUNTRY_SYRIA, new CountryProgram("SYR"));
proxyCountries.put(COUNTRY_LEBANON, new CountryProgram("LBN"));
proxyCountries.put(COUNTRY_IRAN, new CountryProgram("IRN"));
proxyCountries.put(COUNTRY_IRAQ, new CountryProgram("IRQ"));
proxyCountries.put(COUNTRY_JORDAN, new CountryProgram("JOR"));
proxyCountries.put(COUNTRY_AZERBAIJAN, new CountryProgram("AZE"));
proxyCountries.put(COUNTRY_AFGHANISTAN, new CountryProgram("AFG"));
}

public static void init(Context context) {
Expand Down

0 comments on commit 1d531d2

Please sign in to comment.