Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚀[Release] v2.6.1 #20

Merged
merged 7 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ android {
applicationId = 'com.loafwallet'
minSdkVersion 27
targetSdkVersion 31
versionCode 673
versionName "v2.6.0"
versionCode 674
versionName "v2.6.1"
multiDexEnabled true
archivesBaseName = "${versionName}(${versionCode})"

Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/breadwallet/BreadApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public void onCreate() {

boolean enableCrashlytics = true;
if (Utils.isEmulatorOrDebug(this)) {
// BRKeyStore.putFailCount(0, this);
enableCrashlytics = false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ class FragmentSend : Fragment() {
comment
)
)
AnalyticsManager.logCustomEvent(BRConstants._20191105_DSL)
//AnalyticsManager.logCustomEvent(BRConstants._20191105_DSL)
BRSharedPrefs.incrementSendTransactionCount(context)
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ public static JSONArray backupFetchRates(Activity activity) {
}

public static void updateFeePerKb(Context app) {
String jsonString = createGETRequestURL(app, "https://api.loafwallet.org/fee-per-kb");
if (jsonString == null || jsonString.isEmpty()) {
Timber.i("updateFeePerKb: failed to update fee, response string: %s", jsonString);
return;
}

//Operationally, it makes more sense to review the fees than rely on a server.
// Especially, when the missing server causes a major disconnect
// Using this hard code for a bi-yearly review. This matches the architecture in iOS
// KCW: May 3, 2022
String jsonString = "{'fee_per_kb': 10000, 'fee_per_kb_economy': 2500, 'fee_per_kb_luxury': 66746}";
try {
JSONObject obj = new JSONObject(jsonString);
// TODO: Refactor when mobile-api v0.4.0 is in prod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ public static void removeListener(OnIsoChangedListener listener) {
}

public static String getIso(Context context) {

SharedPreferences settingsToGet = context.getSharedPreferences(BRConstants.PREFS_NAME, 0);
String defIso;
try {
defIso = Currency.getInstance(Locale.getDefault()).getCurrencyCode();
} catch (IllegalArgumentException e) {
Timber.e(e);
defIso = Currency.getInstance(Locale.US).getCurrencyCode();
///This is always going to be a Litewallet problem
// Inspired by: https://stackoverflow.com/questions/26376439/locale-getdefault-returns-unsuported-invalid-locale-for-currency-getinstance
defIso = Currency.getInstance(new Locale("en", "US")).getCurrencyCode();
}

return settingsToGet.getString(BRConstants.CURRENT_CURRENCY, defIso);
}

Expand Down