-
Notifications
You must be signed in to change notification settings - Fork 16
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.12.2 20241118] Merge into Main #273
Changes from all commits
122fcab
66a92ea
41b3970
6457638
d37be6e
7baf2b3
5b6f95e
30c446d
22e2b9d
837c924
6d72edf
e9131b8
82f6215
a1fc8ee
02681fc
ce1dc07
6f605b0
3b26769
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
package com.litewallet.analytics; | ||
import androidx.test.ext.junit.runners.AndroidJUnit4; | ||
import android.util.Log; | ||
import androidx.test.ext.junit.rules.ActivityScenarioRule; | ||
|
||
import com.breadwallet.presenter.activities.intro.IntroActivity; | ||
import com.breadwallet.tools.util.BRConstants; | ||
|
||
import org.junit.After; | ||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Rule; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import java.net.URI; | ||
|
||
@RunWith(AndroidJUnit4.class) | ||
public class ConstantsTests { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since this is not UI test, we can move it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
public static final String TAG = ConstantsTests.class.getName(); | ||
@Rule | ||
public ActivityScenarioRule<IntroActivity> mActivityRule = new ActivityScenarioRule<>(IntroActivity.class); | ||
@Before | ||
public void setUp() { | ||
Log.e(TAG, "setUp: "); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
} | ||
@Test | ||
public void testLitecoinSymbolConstants() { | ||
Assert.assertSame(BRConstants.litecoinLowercase,"ł"); | ||
Assert.assertSame(BRConstants.litecoinUppercase,"Ł"); | ||
} | ||
@Test | ||
public void testAppExternalURLConstants() { | ||
Assert.assertSame(BRConstants.TWITTER_LINK,"https://twitter.com/Litewallet_App"); | ||
Assert.assertSame(BRConstants.INSTAGRAM_LINK,"https://www.instagram.com/litewallet.app"); | ||
Assert.assertSame(BRConstants.WEB_LINK,"https://litewallet.io"); | ||
Assert.assertSame(BRConstants.TOS_LINK,"https://litewallet.io/privacy"); | ||
Assert.assertSame(BRConstants.CUSTOMER_SUPPORT_LINK,"https://support.litewallet.io/hc/en-us/requests/new"); | ||
Assert.assertSame(BRConstants.BITREFILL_AFFILIATE_LINK,"https://www.bitrefill.com/"); | ||
} | ||
@Test | ||
public void testFirebaseAnalyticsConstants() { | ||
Assert.assertSame(BRConstants._20191105_AL,"app_launched"); | ||
Assert.assertSame(BRConstants._20191105_VSC,"visit_send_controller"); | ||
Assert.assertSame(BRConstants._20202116_VRC,"visit_receive_controller"); | ||
Assert.assertSame(BRConstants._20191105_DSL,"did_send_ltc"); | ||
Assert.assertSame(BRConstants._20191105_DTBT,"did_tap_buy_tab"); | ||
Assert.assertSame(BRConstants._20200111_RNI,"rate_not_initialized"); | ||
Assert.assertSame(BRConstants._20200111_FNI,"feeperkb_not_initialized"); | ||
Assert.assertSame(BRConstants._20200111_TNI,"transaction_not_initialized"); | ||
Assert.assertSame(BRConstants._20200111_WNI,"wallet_not_initialized"); | ||
Assert.assertSame(BRConstants._20200111_PNI,"phrase_not_initialized"); | ||
Assert.assertSame(BRConstants._20200111_UTST,"unable_to_sign_transaction"); | ||
Assert.assertSame(BRConstants._20200112_ERR,"error"); | ||
Assert.assertSame(BRConstants._20200112_DSR,"did_start_resync"); | ||
Assert.assertSame(BRConstants._20200125_DSRR,"did_show_review_request"); | ||
Assert.assertSame(BRConstants._20201118_DTGS,"did_tap_get_support"); | ||
Assert.assertSame(BRConstants._20200217_DUWP,"did_unlock_with_pin"); | ||
Assert.assertSame(BRConstants._20200217_DUWB,"did_unlock_with_biometrics"); | ||
Assert.assertSame(BRConstants._20200301_DUDFPK,"did_use_default_fee_per_kb"); | ||
Assert.assertSame(BRConstants._20201121_SIL,"started_IFPS_lookup"); | ||
Assert.assertSame(BRConstants._20201121_DRIA,"did_resolve_IPFS_address"); | ||
Assert.assertSame(BRConstants._20201121_FRIA,"failed_resolve_IPFS_address"); | ||
Assert.assertSame(BRConstants._20200207_DTHB,"did_tap_header_balance"); | ||
Assert.assertSame(BRConstants._20210427_HCIEEH,"heartbeat_check_if_event_even_happens"); | ||
Assert.assertSame(BRConstants._20220822_UTOU,"user_tapped_on_ud"); | ||
Assert.assertSame(BRConstants._20230131_NENR,"no_error_nominal_response"); | ||
Assert.assertSame(BRConstants._20230407_DCS,"did_complete_sync"); | ||
Assert.assertSame(BRConstants._20240123_RAGI,"registered_android_general_interest"); | ||
Assert.assertSame(BRConstants._20231225_UAP,"user_accepted_push"); | ||
Assert.assertSame(BRConstants._20240101_US,"user_signup"); | ||
Assert.assertSame(BRConstants._20241006_DRR,"did_request_rating"); | ||
Assert.assertSame(BRConstants._20241006_UCR,"user_completed_rating"); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering, why we use this
firebase-inappmessaging
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to have Inapp and cloud messaging for both here (Android) and iOS. We haven't implemented it properly and you see some of the remnants of our efforts. Once we retire these major bugs we can start looking at adding FEATURES 😄 @andhikayuana