Skip to content

Commit 4eb88b5

Browse files
kcw-gruntvsima
andauthored
πŸš€[ Release v.2.8.0] Merge into Main (litecoin-foundation#123)
* πŸ’£πŸž[Hotbug fix] sharedprefs fb fix (litecoin-foundation#19) * Added notes * Bugfix - add missing pendingIntent flag for android 13 * Use firebase bom * subproject commit * version bump * Disabled FB send, Added Get Tasks * Patch to hard code fees - Static fees - Removed the dep - Turn crashlytics back on/off/on Co-authored-by: Victor Sima <[email protected]> * πŸš€[ Release v.2.6.0] Merge into Develop (litecoin-foundation#13) * version bump * Hotfix/crashes v2.6.0 (litecoin-foundation#17) * Added notes * Bugfix - add missing pendingIntent flag for android 13 * Use firebase bom Co-authored-by: kcw-grunt <[email protected]> Co-authored-by: Victor Sima <[email protected]> * πŸš€[Release] v2.6.1 (litecoin-foundation#21) * version code bump * πŸš€[ Release v.2.6.0] Merge into Main (litecoin-foundation#12) * Added ΡƒΠΊΡ€Π°Ρ—Π½ΡΡŒΠΊΠΈΠΉ language - add uk xml file - removed the nl, sv, da files - Escaped apostrphes in UK strings file - Updated language choices * πŸ₯³[Feature] Unstoppable ext update (litecoin-foundation#11) * WIP: DNC Dropped in the UD code prior to testing * Added study link * Fix unstoppable domains dependency * Updated the UD ext text WIP::::Need to refactor once UK and deletion on SV, NL, DA * added UK lang Co-authored-by: Victor Sima <[email protected]> * version bump * Hotfix/crashes v2.6.0 (litecoin-foundation#17) * Added notes * Bugfix - add missing pendingIntent flag for android 13 * Use firebase bom Co-authored-by: kcw-grunt <[email protected]> Co-authored-by: Victor Sima <[email protected]> Co-authored-by: Victor Sima <[email protected]> * Feature/add bitrefill (litecoin-foundation#28) * added bitrefill - added kotlin fix * Added localizations - added logo * Added Bitrefill Link * hides fiat scollview from Bitrefill * Adjusted the padding at the buy tab item view * fixe test in Bitrefill detail * fied logo and layout * bump version and version code * Feature/update branding (litecoin-foundation#29) * added new logo - reset the layout * version code * Create ISSUE_TEMPLATE * Delete ISSUE_TEMPLATE * Create test.md * Delete test.md * πŸš€[ Release v.2.7.0] Merge into Develop (litecoin-foundation#32) * replaced coin logo * bump versioncode * fixed dep version * added Bitrefill web listener * [Techdebt/] pdate match firebase events 33 (litecoin-foundation#48) * Added the equivalenmt events - updated web link * WIP : Should compile * Fixed constants * Udpaded all Analytics constants * Added basic tests - This is WIP - Need to debug the Tests * version bump * fiexd compile bug * Fix - revert FragmentBuy webview test (litecoin-foundation#72) * πŸš€[ Release v.2.7.1] Merge into Develop (litecoin-foundation#104) * πŸš€[ Release v.2.7.0] Merge into Main (litecoin-foundation#30) * Added ΡƒΠΊΡ€Π°Ρ—Π½ΡΡŒΠΊΠΈΠΉ language - add uk xml file - removed the nl, sv, da files - Escaped apostrphes in UK strings file - Updated language choices * πŸ’£πŸž[Hotbug fix] sharedprefs fb fix (litecoin-foundation#19) * Added notes * Bugfix - add missing pendingIntent flag for android 13 * Use firebase bom * subproject commit * version bump * Disabled FB send, Added Get Tasks * Patch to hard code fees - Static fees - Removed the dep - Turn crashlytics back on/off/on Co-authored-by: Victor Sima <[email protected]> * πŸš€[ Release v.2.6.0] Merge into Develop (litecoin-foundation#13) * version bump * Hotfix/crashes v2.6.0 (litecoin-foundation#17) * Added notes * Bugfix - add missing pendingIntent flag for android 13 * Use firebase bom Co-authored-by: kcw-grunt <[email protected]> Co-authored-by: Victor Sima <[email protected]> * πŸš€[Release] v2.6.1 (litecoin-foundation#21) * version code bump * πŸš€[ Release v.2.6.0] Merge into Main (litecoin-foundation#12) * Added ΡƒΠΊΡ€Π°Ρ—Π½ΡΡŒΠΊΠΈΠΉ language - add uk xml file - removed the nl, sv, da files - Escaped apostrphes in UK strings file - Updated language choices * πŸ₯³[Feature] Unstoppable ext update (litecoin-foundation#11) * WIP: DNC Dropped in the UD code prior to testing * Added study link * Fix unstoppable domains dependency * Updated the UD ext text WIP::::Need to refactor once UK and deletion on SV, NL, DA * added UK lang Co-authored-by: Victor Sima <[email protected]> * version bump * Hotfix/crashes v2.6.0 (litecoin-foundation#17) * Added notes * Bugfix - add missing pendingIntent flag for android 13 * Use firebase bom Co-authored-by: kcw-grunt <[email protected]> Co-authored-by: Victor Sima <[email protected]> Co-authored-by: Victor Sima <[email protected]> * Feature/add bitrefill (litecoin-foundation#28) * added bitrefill - added kotlin fix * Added localizations - added logo * Added Bitrefill Link * hides fiat scollview from Bitrefill * Adjusted the padding at the buy tab item view * fixe test in Bitrefill detail * fied logo and layout * bump version and version code * Feature/update branding (litecoin-foundation#29) * added new logo - reset the layout * version code * replaced coin logo * bump versioncode * fixed dep version * added Bitrefill web listener Co-authored-by: Victor Sima <[email protected]> * Create FUNDING.yml For GH Sponsor * πŸ’£πŸž[Hotbug fix] sharedprefs fb fix (litecoin-foundation#19) * Added notes * Bugfix - add missing pendingIntent flag for android 13 * Use firebase bom * subproject commit * version bump * Disabled FB send, Added Get Tasks * Patch to hard code fees - Static fees - Removed the dep - Turn crashlytics back on/off/on Co-authored-by: Victor Sima <[email protected]> * Feature/add bitrefill (litecoin-foundation#28) * added bitrefill - added kotlin fix * Added localizations - added logo * Added Bitrefill Link * hides fiat scollview from Bitrefill * Adjusted the padding at the buy tab item view * fixe test in Bitrefill detail * fied logo and layout * bump version and version code * Feature/update branding (litecoin-foundation#29) * added new logo - reset the layout * version code * πŸš€[ Release v.2.7.0] Merge into Develop (litecoin-foundation#32) * replaced coin logo * bump versioncode * fixed dep version * added Bitrefill web listener * [Techdebt/] pdate match firebase events 33 (litecoin-foundation#48) * Added the equivalenmt events - updated web link * WIP : Should compile * Fixed constants * Udpaded all Analytics constants * Added basic tests - This is WIP - Need to debug the Tests * version bump * fiexd compile bug * version bump * renmoved staging * moved backup rates * code bump * Updated test configs * Move api resources to central location - version code bump Co-authored-by: Victor Sima <[email protected]> * Commented out the partial work * Add .circleci/config.yml (litecoin-foundation#74) * Feature - donation disclaimer modal (litecoin-foundation#75) * Feature - add donation modal disclaimer - litecoin-foundation#60 * Add missing strings * Upgraded AS - Reduced donation amount - Renamed id WIP * updated stirings key format - updated the donation address * code bump Co-authored-by: kcw-grunt <[email protected]> * Feature - Show Litecoin Card as Webview (litecoin-foundation#82) * Feature - Show Litecoin Card as Webview - remove partner api library - create card frament webview and add to bottom nav - fixes litecoin-foundation#58 * bump version code * Fix UI crash * bump version code Co-authored-by: kcw-grunt <[email protected]> * version code bump - updated version labels to include the version code * Task - Reduce country iso exception (litecoin-foundation#118) - reduce emissions of "java.lang.IllegalArgumentException: Unsupported ISO 3166 country: en" * made the webview fileprivate (litecoin-foundation#120) - the idea is that it will help evaluate the js callbacks * Refactors version name and code to BRConstants (litecoin-foundation#121) * 🐜[Bugfix] Refactor strings files (litecoin-foundation#122) * bump version code * Refactor strings files There were many unused strings and they were removed. * bump version code --------- Co-authored-by: Victor Sima <[email protected]>
1 parent 03f807d commit 4eb88b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+730
-1658
lines changed

β€Ž.circleci/config.yml

+21-25
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,26 @@
1-
version: 2
1+
# Use the latest 2.1 version of CircleCI pipeline process engine.
2+
# See: https://circleci.com/docs/2.0/configuration-reference
3+
version: 2.1
4+
5+
# Define a job to be invoked later in a workflow.
6+
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
27
jobs:
3-
build:
4-
working_directory: ~/code
8+
say-hello:
9+
# Specify the execution environment. You can specify an image from Dockerhub or use one of our Convenience Images from CircleCI's Developer Hub.
10+
# See: https://circleci.com/docs/2.0/configuration-reference/#docker-machine-macos-windows-executor
511
docker:
6-
- image: circleci/android:api-29
7-
environment:
8-
JVM_OPTS: -Xmx3200m
12+
- image: cimg/base:stable
13+
# Add steps to the job
14+
# See: https://circleci.com/docs/2.0/configuration-reference/#steps
915
steps:
1016
- checkout
11-
- restore_cache:
12-
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
1317
- run:
14-
name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
15-
command: sudo chmod +x ./gradlew
16-
- run:
17-
name: Download Dependencies
18-
command: ./gradlew androidDependencies
19-
- save_cache:
20-
paths:
21-
- ~/.gradle
22-
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
23-
- run:
24-
name: Run Tests
25-
command: ./gradlew lint test
26-
- store_artifacts:
27-
path: app/build/reports
28-
destination: reports
29-
- store_test_results:
30-
path: app/build/test-results
18+
name: "Say hello"
19+
command: "echo Hello, World!"
20+
21+
# Invoke jobs via workflows
22+
# See: https://circleci.com/docs/2.0/configuration-reference/#workflows
23+
workflows:
24+
say-hello-workflow:
25+
jobs:
26+
- say-hello
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

β€Ž.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
[submodule "app/src/main/jni/loafwallet-core"]
55
path = app/src/main/jni/loafwallet-core
66
url = https://github.com/litecoin-foundation/loafwallet-core.git
7-
[submodule "partnerapi"]
8-
path = partnerapi
9-
url = https://github.com/litecoin-foundation/litewallet-partner-api-android.git

β€Ž.idea/render.experimental.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žapp/build.gradle

+3-5
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ android {
6363
testInstrumentationRunner = 'androidx.test.runner.AndroidJUnitRunner'
6464
applicationId = 'com.loafwallet'
6565
minSdkVersion 27
66-
targetSdkVersion 32
67-
versionCode 705
68-
versionName "v2.7.1"
66+
targetSdkVersion 32
67+
versionCode 722
68+
versionName "v2.8.0"
6969
multiDexEnabled true
7070
archivesBaseName = "${versionName}(${versionCode})"
7171

@@ -317,8 +317,6 @@ dependencies {
317317
// Progress Button
318318
implementation 'com.github.razir.progressbutton:progressbutton:2.1.0'
319319

320-
api project(":partnerapi")
321-
322320
// Dagger
323321
implementation 'com.google.dagger:dagger:2.41'
324322
kapt 'com.google.dagger:dagger-compiler:2.41'

β€Žapp/src/main/java/com/breadwallet/di/component/PresenterComponent.kt

-22
This file was deleted.

β€Žapp/src/main/java/com/breadwallet/presenter/activities/BreadActivity.java

+2-21
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import android.os.Bundle;
1111
import android.os.Handler;
1212
import android.telephony.TelephonyManager;
13-
import android.text.TextUtils;
1413
import android.view.ViewTreeObserver;
1514
import android.view.animation.AnimationUtils;
1615
import android.widget.Button;
@@ -32,8 +31,6 @@
3231
import com.breadwallet.presenter.customviews.BRNotificationBar;
3332
import com.breadwallet.presenter.fragments.BuyTabFragment;
3433
import com.breadwallet.presenter.history.HistoryFragment;
35-
import com.breadwallet.presenter.spend.AuthBottomSheetDialogFragment;
36-
import com.breadwallet.presenter.transfer.TransferFragment;
3734
import com.breadwallet.tools.animation.BRAnimator;
3835
import com.breadwallet.tools.animation.TextSizeTransition;
3936
import com.breadwallet.tools.manager.BRSharedPrefs;
@@ -47,15 +44,14 @@
4744
import com.breadwallet.tools.util.BRExchange;
4845
import com.breadwallet.tools.util.ExtensionKt;
4946
import com.breadwallet.tools.util.Utils;
47+
import com.breadwallet.ui.card.CardFragment;
5048
import com.breadwallet.wallet.BRPeerManager;
5149
import com.breadwallet.wallet.BRWalletManager;
5250
import com.google.android.material.bottomnavigation.BottomNavigationView;
53-
import com.google.android.material.bottomsheet.BottomSheetDialogFragment;
5451
import com.google.android.play.core.review.ReviewInfo;
5552
import com.google.android.play.core.review.ReviewManager;
5653
import com.google.android.play.core.review.ReviewManagerFactory;
5754
import com.google.android.play.core.tasks.Task;
58-
import com.platform.APIClient;
5955

6056
import java.math.BigDecimal;
6157

@@ -164,11 +160,6 @@ private void removeObservers() {
164160
BRSharedPrefs.removeListener(this);
165161
}
166162

167-
@Override
168-
protected void onSaveInstanceState(Bundle outState) {
169-
//leave it empty, avoiding the os bug
170-
}
171-
172163
private void setUrlHandler(Intent intent) {
173164
Uri data = intent.getData();
174165
if (data == null) return;
@@ -211,11 +202,7 @@ public boolean handleNavigationItemSelected(int menuItemId) {
211202
mSelectedBottomNavItem = 0;
212203
break;
213204
case R.id.nav_card:
214-
if (TextUtils.isEmpty(BRSharedPrefs.getLitecoinCardId(BreadActivity.this))) {
215-
showAuthModal();
216-
} else {
217-
ExtensionKt.replaceFragment(BreadActivity.this, new TransferFragment(), false, R.id.fragment_container);
218-
}
205+
ExtensionKt.replaceFragment(BreadActivity.this, new CardFragment(), false, R.id.fragment_container);
219206
break;
220207
case R.id.nav_receive:
221208
if (BRAnimator.isClickAllowed()) {
@@ -230,12 +217,6 @@ public boolean handleNavigationItemSelected(int menuItemId) {
230217
return true;
231218
}
232219

233-
public void showAuthModal() {
234-
BottomSheetDialogFragment fragment = new AuthBottomSheetDialogFragment();
235-
fragment.show(getSupportFragmentManager(), fragment.getTag());
236-
mSelectedBottomNavItem = 0;
237-
}
238-
239220
private void swap() {
240221
if (!BRAnimator.isClickAllowed()) return;
241222
boolean b = !BRSharedPrefs.getPreferredLTC(this);

β€Žapp/src/main/java/com/breadwallet/presenter/activities/LoginActivity.java

+1-9
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,7 @@ protected void onCreate(Bundle savedInstanceState) {
118118

119119
keyboard.setCustomButtonBackgroundColor(10, getColor(android.R.color.transparent));
120120
keyboard.setDeleteImage(getDrawable(R.drawable.ic_delete_white));
121-
122-
PackageInfo pInfo = null;
123-
try {
124-
pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
125-
} catch (PackageManager.NameNotFoundException e) {
126-
Timber.e(e);
127-
}
128-
String verName = pInfo != null ? pInfo.versionName : " ";
129-
versionText.setText(String.format(Locale.US, "%1$s", verName));
121+
versionText.setText(BRConstants.APP_VERSION_NAME_CODE);
130122

131123
findViewById(R.id.scanQRCodeImgBut).setOnClickListener(v -> {
132124
if (!BRAnimator.isClickAllowed()) return;

β€Žapp/src/main/java/com/breadwallet/presenter/activities/intro/IntroActivity.java

+2-9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.breadwallet.tools.security.PostAuth;
2121
import com.breadwallet.tools.security.SmartValidator;
2222
import com.breadwallet.tools.threads.BRExecutor;
23+
import com.breadwallet.tools.util.BRConstants;
2324
import com.breadwallet.tools.util.Utils;
2425
import com.breadwallet.wallet.BRWalletManager;
2526
import com.platform.APIClient;
@@ -68,15 +69,7 @@ protected void onCreate(Bundle savedInstanceState) {
6869
introActivity = this;
6970

7071
getWindowManager().getDefaultDisplay().getSize(screenParametersPoint);
71-
72-
PackageInfo pInfo = null;
73-
try {
74-
pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
75-
} catch (PackageManager.NameNotFoundException e) {
76-
Timber.e(e);
77-
}
78-
String verName = pInfo != null ? pInfo.versionName : " ";
79-
versionText.setText(String.format(Locale.US, "%1$s", verName));
72+
versionText.setText(BRConstants.APP_VERSION_NAME_CODE);
8073

8174
if (Utils.isEmulatorOrDebug(this))
8275
Utils.printPhoneSpecs();

β€Žapp/src/main/java/com/breadwallet/presenter/activities/settings/AboutActivity.java

+6-14
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class AboutActivity extends BRActivity {
2525
private TextView policyText;
2626
private TextView infoText;
2727

28-
private ImageView redditShare;
28+
private ImageView instagramShare;
2929
private ImageView twitterShare;
3030
private ImageView blogShare;
3131
private static AboutActivity app;
@@ -47,24 +47,16 @@ protected void onCreate(Bundle savedInstanceState) {
4747

4848
infoText = (TextView) findViewById(R.id.info_text);
4949
policyText = (TextView) findViewById(R.id.policy_text);
50-
51-
PackageInfo pInfo = null;
52-
try {
53-
pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
54-
} catch (PackageManager.NameNotFoundException e) {
55-
Timber.e(e);
56-
}
57-
String verName = pInfo != null ? pInfo.versionName : " ";
58-
infoText.setText(getString(R.string.About_footer, verName));
59-
60-
redditShare = (ImageView) findViewById(R.id.reddit_share_button);
50+
instagramShare = (ImageView) findViewById(R.id.instagram_share_button);
6151
twitterShare = (ImageView) findViewById(R.id.twitter_share_button);
6252
blogShare = (ImageView) findViewById(R.id.blog_share_button);
6353

64-
redditShare.setOnClickListener(new View.OnClickListener() {
54+
infoText.setText(BRConstants.APP_VERSION_NAME_CODE);
55+
56+
instagramShare.setOnClickListener(new View.OnClickListener() {
6557
@Override
6658
public void onClick(View v) {
67-
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(BRConstants.REDDIT_LINK));
59+
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(BRConstants.INSTAGRAM_LINK));
6860
startActivity(browserIntent);
6961
app.overridePendingTransition(R.anim.enter_from_bottom, R.anim.empty_300);
7062
}

β€Žapp/src/main/java/com/breadwallet/presenter/base/BasePresenter.kt

-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package com.breadwallet.presenter.base
22

3-
import com.breadwallet.di.component.DaggerPresenterComponent
4-
import com.breadwallet.presenter.spend.LoginPresenter
5-
import com.breadwallet.presenter.spend.RegisterPresenter
6-
import com.breadwallet.presenter.transfer.TransferPresenter
73

84
/** Litewallet
95
* Created by Mohamed Barry on 6/30/20
@@ -12,18 +8,12 @@ import com.breadwallet.presenter.transfer.TransferPresenter
128
*/
139
abstract class BasePresenter<out V : BaseView>(var view: BaseView?) {
1410

15-
private val injector = DaggerPresenterComponent.create()
1611

1712
init {
1813
inject()
1914
}
2015

2116
private fun inject() {
22-
when (this) {
23-
is LoginPresenter -> injector.inject(this)
24-
is RegisterPresenter -> injector.inject(this)
25-
is TransferPresenter -> injector.inject(this)
26-
}
2717
}
2818

2919
abstract fun subscribe()

0 commit comments

Comments
Β (0)