Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Regions v3 regression, Intl polyfill #2332

Draft
wants to merge 210 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
ca49ee4
LL-7744 (V3): init branching setup
LFBarreto Oct 20, 2021
0f63196
install react navigation v6
JunichiSugiura Nov 2, 2021
9b99934
replace dangerouslyGetParent by getParent
valpinkman Nov 2, 2021
ed5695e
(Deeplink): update for v6 linking
LFBarreto Nov 2, 2021
0cbdac1
Merge branch 'LL-7937' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Nov 2, 2021
fea7923
replace mode="modal" with new api
valpinkman Nov 2, 2021
e776e9e
Merge branch 'LL-7937' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Nov 2, 2021
2fa2305
Remove useless dependency to hw-app-btc (#1962)
Oct 29, 2021
63dfee3
LL-7365 sunset stealthcoin (#1958)
gre Oct 29, 2021
ecccf4a
New translations common.json (Russian) (#1964)
gre Nov 2, 2021
df50ed7
Fix contrast of text colors in WebPlatformPlayer/InfoPanel (#1945)
ofreyssinet-ledger Nov 2, 2021
987f63f
update live-common
gre Nov 2, 2021
6d19297
remove header="modal" and update to new API
valpinkman Nov 2, 2021
057c124
(tab): update configs
LFBarreto Nov 2, 2021
b2d36a8
(Tab): remove height from style
LFBarreto Nov 2, 2021
2073ed3
remove tabBarVisible option
JunichiSugiura Nov 2, 2021
e15228f
downgrade react-native-tab-view due to FlatList issue
JunichiSugiura Nov 3, 2021
6d71733
(AnimatedHeaderView): fix initial height issue
LFBarreto Nov 3, 2021
fbfc397
Merge branch 'LL-7937' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Nov 3, 2021
cd1c672
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Nov 12, 2021
b9b31d1
(Vitry): fix style provider theme merging issue
LFBarreto Nov 12, 2021
10e8f6e
remove unnecessary dep
LFBarreto Nov 12, 2021
f3b7afd
LL-8037 Use rebranded checkbox and switch components (#1978)
gsoares-ledger Nov 22, 2021
da0c231
Rebranding of the bottom modal and bump native ui library version (#1…
gsoares-ledger Nov 22, 2021
f6ed99d
LL-7745 - navigation footer rebrand (#1984)
nparigi-ledger Nov 22, 2021
99fafd8
rebranding: Button proxy component (#1986)
jelbaz-ledger Nov 22, 2021
783ae7d
LL-8036 - Infer font weight from LText to UI's Text, mark LTExt as de…
nparigi-ledger Nov 22, 2021
1d6d928
(V3): update package.json
LFBarreto Nov 22, 2021
24ba460
Upgrade @ledgerhq/native-ui to 0.3.0
elbywan Nov 22, 2021
3d9df1a
Upgrade pods
elbywan Nov 22, 2021
e847a13
Link fonts
elbywan Nov 22, 2021
c606c16
match react native reanimated version from native ui
elbywan Nov 23, 2021
87af3b0
rebranding: first 2 onboarding screens
elbywan Nov 23, 2021
b2e5b83
Old color palette was erasing new palette, reversed this. Also new co…
nparigi-ledger Dec 1, 2021
e7b15fa
Merge pull request #2032 from LedgerHQ/v3-fix-color-theme
nparigi-ledger Dec 1, 2021
418f582
rebrand: add text input component wrapper (#2033)
jelbaz-ledger Dec 2, 2021
7dd2adc
rebrand: improve the onboarding language modal transitions and flow (…
jelbaz-ledger Dec 2, 2021
5205b31
LL-7747/7748/7749 - V3 - Onboarding (#2021)
qd-qd Dec 2, 2021
1319c14
update @ledgerhq/native-ui to 0.5.0
LFBarreto Dec 2, 2021
81a914b
refacto: move the placeholder illustration
qd-qd Dec 2, 2021
33f7641
refacto: make NavigationHeader/ModalContainer customisable
qd-qd Dec 3, 2021
3175c43
feat(v3): create info stepper
qd-qd Dec 3, 2021
3a45c00
LL-8031 - Rebranding - Notification center (#2010)
nparigi-ledger Dec 17, 2021
f761ecb
Merge branch 'develop' into LL-7742
thomasrogerlux Dec 22, 2021
138e35a
Bump native-ui dependency
thomasrogerlux Dec 22, 2021
f4df4d1
Operation list v3 rebranding (#2066)
ofreyssinet-ledger Dec 28, 2021
ca71531
LL-7753 Rebrand device select (#2070)
nparigi-ledger Dec 28, 2021
34595bd
Fix metro config for V3
ofreyssinet-ledger Dec 31, 2021
492ee5d
LL-7750 - Onboarding - Flow stepper (#2068)
qd-qd Jan 12, 2022
02fa5bb
V3 - Rebrand Settings page layout + General category (#2105)
nparigi-ledger Jan 12, 2022
38b6b81
Merge develop
qd-qd Jan 18, 2022
04b5cc1
fix some issues
LFBarreto Jan 18, 2022
c437640
(Locales): revert changes to V2 env
LFBarreto Jan 19, 2022
53b585b
try fix bundling issue
LFBarreto Jan 20, 2022
de330a0
LL-8573 - V3 account page (#2153)
nparigi-ledger Feb 4, 2022
9b3fb2a
LL-8570 - Settings page final part (#2120)
nparigi-ledger Feb 4, 2022
fe633cc
LL-7755 - rebrand V3 - Device main page (#2126)
nparigi-ledger Feb 18, 2022
df0312c
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Feb 19, 2022
d5c5cd0
onboarding fixes + some rework
LFBarreto Feb 21, 2022
d836d57
V3: (Onboarding) completion of missing parts
LFBarreto Feb 22, 2022
537d08f
Julien did that! Yasss!
LFBarreto Feb 23, 2022
5581197
onboarding updated video
LFBarreto Feb 23, 2022
474c2ff
LIVE-230 - Rebranding - Portfolio Page (#2239)
nparigi-ledger Feb 24, 2022
54b22fa
update carousel
LFBarreto Feb 24, 2022
0440f8e
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Feb 24, 2022
051a94a
(v3): updated and fixed issues on onboarding + prepared for new illus…
LFBarreto Feb 24, 2022
df188bb
updated ui lib
LFBarreto Feb 25, 2022
4392bbb
(V3): updated illustrations
LFBarreto Feb 25, 2022
74c083c
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Feb 25, 2022
866978d
(V3): updated and fixed build
LFBarreto Feb 25, 2022
4f237b1
Feat/live 863 portfolio product analytics (#2248)
cgrellard-ledger Mar 2, 2022
a28254a
Remove close icon in DAppDisclaimer
ofreyssinet-ledger Mar 3, 2022
36d88b9
Add modalLock logic to BottomModal
ofreyssinet-ledger Mar 3, 2022
9887418
Remove close button from DeviceActionModal
ofreyssinet-ledger Mar 3, 2022
22a8117
Remove extra close X buttons in bottom modals
ofreyssinet-ledger Mar 3, 2022
fe17af3
Fix ios project file
ofreyssinet-ledger Mar 3, 2022
c055a8b
yarn dedup
ofreyssinet-ledger Mar 3, 2022
331861a
Revert bad removal
ofreyssinet-ledger Mar 3, 2022
bfc62e6
Merge pull request #2260 from LedgerHQ/bugfix/LIVE-1599-fix-bottom-dr…
ofreyssinet-ledger Mar 4, 2022
743edc5
Upgrade UI lib to 0.7.3 (#2265)
ofreyssinet-ledger Mar 4, 2022
a53963a
LIVE-1482 - Add "Close" or "X" instead of arrow for Discover Apps (#…
ofreyssinet-ledger Mar 4, 2022
5b859ac
LIVE-1535 - V3 Accounts list (assets) (#2263)
nparigi-ledger Mar 6, 2022
c3394bc
LL-8799 - disclaimer drawer - Rebranding (#2110)
qd-qd Mar 6, 2022
f22863b
LIVE-861 - LLM implement top gainers section (#2249)
nparigi-ledger Mar 6, 2022
9bad1d4
Add account selector and use it in existing receive flow (#2163)
thomasrogerlux Mar 6, 2022
34248b0
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Mar 6, 2022
b0f214f
(V3): Device/Manager Apps list rework ongoing
LFBarreto Mar 6, 2022
07ad921
(V3): fix issues in nav language + botom modal + some mior stylings
LFBarreto Mar 6, 2022
14734a0
Bugfix/live 1564 device screen bug fixes (#2259)
cgrellard-ledger Mar 7, 2022
c989803
(V3): fix issue in welcome page
LFBarreto Mar 7, 2022
034d7ae
Fix text color in create modal
thomasrogerlux Mar 8, 2022
5d68799
Convert SelectableAccountList to TypeScript
thomasrogerlux Mar 8, 2022
fc36962
(V3): Manager rework done
LFBarreto Mar 8, 2022
a06337e
Convert TouchHintCircle to TypeScript/StyledComponent
thomasrogerlux Mar 8, 2022
0d0885d
Convert SelectableAccountsList to Styled Component
thomasrogerlux Mar 8, 2022
e428c26
Merge branch 'LL-7742' into support/LIVE-1622-tx-flow-cleanup
thomasrogerlux Mar 9, 2022
e9e9b3c
Fix add account select
thomasrogerlux Mar 10, 2022
cd54bb4
Fix hint position
thomasrogerlux Mar 10, 2022
a71e889
Fix styles to match
thomasrogerlux Mar 10, 2022
0b6c11e
Cleanup press effect on account cards
thomasrogerlux Mar 10, 2022
37cb8fe
Fix recipient input in send flow
thomasrogerlux Mar 10, 2022
e24ab29
Fix translations in device pairing
thomasrogerlux Mar 10, 2022
d968d33
LIVE-1619 - V3 Account page fix and clean specifics with UI lib (#2278)
nparigi-ledger Mar 11, 2022
64d6781
(Manager): fixes + ui issues
LFBarreto Mar 12, 2022
858ba0a
(Onboarding): fix modal mav
LFBarreto Mar 12, 2022
464f62c
(V3): onboarding rework + fixes + no nano nav + buy device modal base…
LFBarreto Mar 13, 2022
9385c5e
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Mar 14, 2022
dfc3096
Merge branch 'LL-7742' into support/LIVE-1622-tx-flow-cleanup
thomasrogerlux Mar 14, 2022
95bb619
Update expo, expo-camera, expo-barcode-scanner, to fix crash (#2283)
nparigi-ledger Mar 14, 2022
b53ea02
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Mar 14, 2022
57cce40
Merge branch 'LL-7742' into support/LIVE-1622-tx-flow-cleanup
thomasrogerlux Mar 14, 2022
fb943bd
(lottie): fix issues
LFBarreto Mar 14, 2022
d7bf0fd
Merge branch 'LL-7742' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Mar 14, 2022
2e6b1dc
update native-ui
LFBarreto Mar 14, 2022
b109bb9
yarn pod
ofreyssinet-ledger Mar 14, 2022
33ad4f5
(V3): fixes on buy nano screen
LFBarreto Mar 14, 2022
ba6c2c3
Merge branch 'LL-7742' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Mar 14, 2022
95131dd
fix unnecessary upgrade
LFBarreto Mar 14, 2022
4c96926
fix missplaced hook causing crash
LFBarreto Mar 14, 2022
58a5cee
fix potential issue with infinite numbers and svg loader + type fixes
LFBarreto Mar 14, 2022
de1439f
fix potential issue with infinite numbers and svg loader + type fixes
LFBarreto Mar 14, 2022
2b53748
(V3): Portfolio fix caroussel styling + ordering
LFBarreto Mar 14, 2022
880fa7a
(Locales): merge v3 into v2
LFBarreto Mar 15, 2022
df7c880
DeviceAction rendering to tsx
ofreyssinet-ledger Mar 8, 2022
38ebd9a
DeviceActionModal to typescript
ofreyssinet-ledger Mar 8, 2022
a943964
Rendering fix imports
ofreyssinet-ledger Mar 8, 2022
bde354a
Use new Alert component in DeviceActionModal, remove useless ModalBot…
ofreyssinet-ledger Mar 8, 2022
51518d6
Replace stylesheet styles by styled components using UI lib's components
ofreyssinet-ledger Mar 8, 2022
1a08bd9
Alert component proxy (WIP)
ofreyssinet-ledger Mar 8, 2022
d18a67d
cleanup legacy props, layout & unused styles
ofreyssinet-ledger Mar 8, 2022
e02bb1f
Implement ExternalLink v3 rebrand using Link component from native-ui…
ofreyssinet-ledger Mar 14, 2022
274fd06
Add alignSelf="stretch" in GenericErrorView container & button
ofreyssinet-ledger Mar 14, 2022
83187e6
Add deprecated comment in ExternalLink' iconFirst prop
ofreyssinet-ledger Mar 14, 2022
770afdd
Fix margins in DeviceActionModal
ofreyssinet-ledger Mar 14, 2022
7488044
Fix margins, alignments in DeviceAction rendering
ofreyssinet-ledger Mar 14, 2022
232ccda
Change icon for useAnotherDevice ExternalLink, use <Tag /> component …
ofreyssinet-ledger Mar 14, 2022
caa61ec
Finish implementation of Alert with proper styling & learn more link …
ofreyssinet-ledger Mar 14, 2022
c8add08
Use Log component for big text :fatpika:
ofreyssinet-ledger Mar 14, 2022
3c5d5b9
Fix typing of Alert
ofreyssinet-ledger Mar 14, 2022
ffdd27d
yarn pod
ofreyssinet-ledger Mar 15, 2022
124f651
Fix getDeviceAnimation null source for proxy corner case (wired bluet…
ofreyssinet-ledger Mar 15, 2022
441b733
Fix return type of Alert (return null instead of false)
ofreyssinet-ledger Mar 15, 2022
3529ee7
ValidateOnDevice v3 rebrand
ofreyssinet-ledger Mar 15, 2022
d8e5e6a
lint
ofreyssinet-ledger Mar 15, 2022
695439d
lint
ofreyssinet-ledger Mar 15, 2022
ede91de
V3 - Notification center - Fix screen background color
nparigi-ledger Mar 14, 2022
c33d45d
Merge pull request #2288 from LedgerHQ/LIVE-1525-v-3-notifications-ce…
nparigi-ledger Mar 15, 2022
bb2690f
Remove headerMode:"float" EVERYWHERE as it's breaking navigation screens
ofreyssinet-ledger Mar 15, 2022
d1335c6
missing
ofreyssinet-ledger Mar 15, 2022
ee138ec
Merge pull request #2294 from LedgerHQ/bugfix/navigator-header-float
ofreyssinet-ledger Mar 15, 2022
7b65db5
Remove useless fontWeight prop
ofreyssinet-ledger Mar 15, 2022
da1c9eb
Fix DeviceActionModal typing
ofreyssinet-ledger Mar 16, 2022
5f1dc35
V3 - Account settings rebrand (#2295)
nparigi-ledger Mar 16, 2022
a1183e0
Merge pull request #2289 from LedgerHQ/bugfix/LIVE-1621-device-action…
ofreyssinet-ledger Mar 16, 2022
4893518
LIVE-1509 Tezos Transactions screens cleaned and fixed + various smal…
cgrellard-ledger Mar 16, 2022
44fed05
V3 - Fix Scan screen alert box text overflow (#2291)
nparigi-ledger Mar 16, 2022
bfae87f
V3 - Account Page - Fix buttons actions (#2287)
nparigi-ledger Mar 16, 2022
39889a7
LIVE-1509 useless commentary removed from ValidateSuccess
cgrellard-ledger Mar 16, 2022
051ec4a
(Adjust): init setup android
LFBarreto Mar 16, 2022
aa2df5c
LIVE-1509 SettingsRow horizontal padding removed
cgrellard-ledger Mar 16, 2022
8b7f3bc
LIVE-1509 correct navigation put back in tezos delegation flow Summary
cgrellard-ledger Mar 16, 2022
a4f0b2d
(Debug): fix issue debug + notif center
LFBarreto Mar 16, 2022
c23776b
LIVE-1509 title text replace by log in ValidateSuccess and Tezos Star…
cgrellard-ledger Mar 16, 2022
69973e4
V3 - Buy/Swap - Cleanup screens to use right background color and sam…
nparigi-ledger Mar 16, 2022
0339f0a
LIVE-1509 earn illustration added to tezos Started component
cgrellard-ledger Mar 16, 2022
a565cc8
LIVE-1622 - Transaction flows cleanup (#2273)
thomasrogerlux Mar 16, 2022
3f4f4e3
(Adjust): adapt env debug + staging
LFBarreto Mar 17, 2022
21cd46a
Fix styled-components no units warning in Carousel component
ofreyssinet-ledger Mar 17, 2022
a22ecbf
yarn pod (react-native-adjust)
ofreyssinet-ledger Mar 17, 2022
95b5134
LIVE-1509 some @flow removed and a few small improvements
cgrellard-ledger Mar 17, 2022
58eb29f
Live 1620 integrate new UI chart (#2280)
cgrellard-ledger Mar 17, 2022
0297bf9
Merge branch 'LL-7742' into support/LIVE-1509-tezos-tx-flow-cleanup
cgrellard-ledger Mar 17, 2022
e4eec70
LIVE-1509 Podfile.lock updated
cgrellard-ledger Mar 17, 2022
e6472b5
Merge pull request #2297 from LedgerHQ/support/LIVE-1509-tezos-tx-flo…
cgrellard-ledger Mar 17, 2022
95b225f
LIVE 1497 implement improved portfolio (#2300)
tlaforge-ledger Mar 18, 2022
0a6de9a
Add React Native Performance plugin, Lighthouse like monitor for Flip…
nparigi-ledger Mar 18, 2022
8e0f91e
setup documentation (#2301)
tlaforge-ledger Mar 18, 2022
eb0718b
(Navigation): updated with learn + add some analytics basic doc
LFBarreto Mar 18, 2022
77dee07
V3 - Fix Accounts navigation, accounts navigator wasn't indexed when …
nparigi-ledger Mar 19, 2022
8722ba0
V3 - Trow flow rebrand - Votes (row, modal ...) (#2305)
nparigi-ledger Mar 19, 2022
2668ab0
Add flag to enable Hermes on Android (#2207)
ofreyssinet-ledger Mar 19, 2022
3c72658
(V3): cleanup + lottie in onboarding
LFBarreto Mar 19, 2022
f6aedb1
(Algo): fix issues in specific views + onboarding polish on i18n
LFBarreto Mar 20, 2022
c5e0b57
(Market): fixed all remaining UX issues with loading and promise reje…
LFBarreto Mar 20, 2022
2839a0e
(V3): nav reborn
LFBarreto Mar 20, 2022
f2670a3
(V3): nav reborn
LFBarreto Mar 20, 2022
27ff5e9
LL-7742 ios Podfile updated
cgrellard-ledger Mar 21, 2022
a1a5364
(V3): bottom nav bar reverted design
LFBarreto Mar 21, 2022
8a65311
Merge branch 'LL-7742' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Mar 21, 2022
c829ee0
add btn account if less than 3 accounts (#2316)
tlaforge-ledger Mar 22, 2022
0443493
Merge branch 'develop' of github.com:LedgerHQ/ledger-live-mobile into…
LFBarreto Mar 22, 2022
65e50c5
V3 - Add a scroll view to the new discover page (#2314)
nparigi-ledger Mar 23, 2022
11ed0fb
Support/live 1667 cosmos tx flow cleanup (#2313)
cgrellard-ledger Mar 23, 2022
853cae9
LL-1343 - Fix buy deeplink (#2318)
nparigi-ledger Mar 23, 2022
115d2e9
Support/live 1669 polkadot tx flow cleanup (#2317)
cgrellard-ledger Mar 23, 2022
367091b
LL-1671- Rebrand firmware update notif in portfolio (#2319)
nparigi-ledger Mar 23, 2022
fb4c1fb
update llc
LFBarreto Mar 23, 2022
35d6156
(V3): boost perfs (#2315)
LFBarreto Mar 23, 2022
aac693f
LIVE-1779 - Settings QA Feedbacks (page title overflow, requireTerms …
nparigi-ledger Mar 23, 2022
f9d15d9
fix/LL 1665 some cleanup (#2327)
tlaforge-ledger Mar 24, 2022
0c0988c
render errors to new flex and design system (#2326)
tlaforge-ledger Mar 24, 2022
7783d85
wrap and translation (#2325)
tlaforge-ledger Mar 24, 2022
1184212
fix uppercase (#2324)
tlaforge-ledger Mar 24, 2022
984c367
Fix "regions" settings missing & feature regression in tsx files
ofreyssinet-ledger Mar 24, 2022
7c06d56
Replace incorrect uses of useLocale by useSelector(localeSelector)
ofreyssinet-ledger Mar 24, 2022
332b163
Rename `useLocale` to `useTranslationLocale` to avoid confusion
ofreyssinet-ledger Mar 24, 2022
7720ae9
Use proper locale in MarketStats
ofreyssinet-ledger Mar 24, 2022
f229265
Try generating Intl imports (crashes at runtime)
ofreyssinet-ledger Mar 28, 2022
ada555c
Filter out "haw" locale (it crashes bc of an error in formatjs)
ofreyssinet-ledger Mar 28, 2022
3a6b90d
lint
ofreyssinet-ledger Mar 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env.mock
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ MOCK=1
DISABLE_YELLOW_BOX=1
MOCK_SCAN_RECIPIENT=bitcoin:3HX3Q4wgYi8nKakxv7kmdCgLWJFrFgcqEt?amount=0.001
FORCE_DEBUG_VISIBLE=1
ADJUST_APP_TOKEN=cbxft2ch7wn4
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
APP_NAME="Ledger Live"
SENTRY_DSN=https://[email protected]/273101
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Production"
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Production"
ADJUST_APP_TOKEN=104p56owfekg
3 changes: 2 additions & 1 deletion .env.staging
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
APP_NAME="LL [STAGING]"
SENTRY_DSN=https://[email protected]/273101
ANALYTICS_TOKEN=jfUZbw28ig8JpEi9DZpTUc21dKUKu1e3
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Staging"
GOOGLE_SERVICE_INFO_NAME="GoogleService-Info-Staging"
ADJUST_APP_TOKEN=v88jjyrsto8w
38 changes: 20 additions & 18 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ import com.android.build.OutputFile
*/

project.ext.react = [
enableHermes: false, // clean and rebuild if changing
/**
* Clean and rebuild if changing
* The following env var is not read from ../.env, you need to export this var like this: `export HERMES_ENABLED_ANDROID=true`
*/
enableHermes: true,
// bundleInDebug: true, // Uncomment this to debug java without having to deal with JS dev server (metro)
]
project.ext.sentryCli = [
Expand Down Expand Up @@ -123,9 +127,9 @@ def enableProguardInReleaseBuilds = false
* give correct results when using with locales other than en-US. Note that
* this variant is about 6MiB larger per architecture than default.
*/
def jscFlavor = 'org.webkit:android-jsc-intl:+'
// def jscFlavor = 'org.webkit:android-jsc-intl:+'

def useIntlJsc = true
// def useIntlJsc = true

/**
* Whether to enable the Hermes VM.
Expand All @@ -152,7 +156,7 @@ android {
multiDexEnabled true
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 36176128
versionCode 4195727
versionName "2.40.0"
resValue "string", "build_config_package", "com.ledger.live"
testBuildType System.getProperty('testBuildType', 'debug')
Expand Down Expand Up @@ -204,12 +208,6 @@ android {
matchingFallbacks = ['release']
}
}

// As required by https://github.com/react-native-community/jsc-android-buildscripts#for-react-native-version-059
packagingOptions {
pickFirst '**/libjsc.so'
pickFirst '**/libc++_shared.so'
}
}

dependencies {
Expand All @@ -234,16 +232,20 @@ dependencies {
exclude group:'com.facebook.flipper'
}

debugImplementation project(':flipper-plugin-rn-performance-android')

if (enableHermes) {
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")
} else {
implementation jscFlavor
}
def hermesPath = "../../node_modules/hermes-engine/android/";
debugImplementation files(hermesPath + "hermes-debug.aar")
stagingReleaseImplementation files(hermesPath + "hermes-release.aar")
releaseImplementation files(hermesPath + "hermes-release.aar")

androidTestImplementation('com.wix:detox:+')

compile project(':react-native-video')
implementation "androidx.appcompat:appcompat:1.0.0"

// Adjust
compile 'com.google.android.gms:play-services-analytics:10.0.1'
compile 'com.android.installreferrer:installreferrer:1.0'
}

// Run this once to be able to run the application with BUCK
Expand Down
18 changes: 18 additions & 0 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,21 @@
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:


# Hermes config, cf. https://reactnative.dev/docs/hermes#android
-keep class com.facebook.hermes.unicode.** { *; }
-keep class com.facebook.jni.** { *; }

-keep class com.adjust.sdk.** { *; }
-keep class com.google.android.gms.common.ConnectionResult {
int SUCCESS;
}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
com.google.android.gms.ads.identifier.AdvertisingIdClient$Info getAdvertisingIdInfo(android.content.Context);
}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {
java.lang.String getId();
boolean isLimitAdTrackingEnabled();
}
-keep public class com.android.installreferrer.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public static void initializeFlipper(Context context, ReactInstanceManager react
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
client.addPlugin(new RNPerfMonitorPlugin(reactInstanceManager));
client.addPlugin(CrashReporterPlugin.getInstance());
client.addPlugin(new RNPerfMonitorPlugin(reactInstanceManager));

NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
NetworkingModule.setCustomClientBuilder(
Expand Down Expand Up @@ -71,4 +72,4 @@ public void run() {
}
}
}
}
}
2 changes: 2 additions & 0 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- react-native-share base64 sharing (swap history/logs export)-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <!-- Needed by Flipper 🐬 -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <!-- Needed by Adjust -->
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/> <!-- Needed by Adjust -->
<uses-sdk
android:targetSdkVersion="27"
tools:overrideLibrary="com.ledger.reactnative" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import com.facebook.react.bridge.JSIModulePackage;
import com.swmansion.reanimated.ReanimatedJSIModulePackage;

import com.brentvatne.react.ReactVideoPackage;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
Expand Down Expand Up @@ -42,6 +43,7 @@ protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
packages.add(new BluetoothHelperPackage());
packages.add(new ReactVideoPackage());
return packages;
}

Expand Down
11 changes: 7 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,13 @@ allprojects {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
mavenCentral()
google()
maven { url 'https://jitpack.io' }
maven {
Expand All @@ -48,6 +50,7 @@ allprojects {
maven {
url "$rootDir/../node_modules/expo-camera/android/maven"
}
jcenter()
}
configurations.all {
resolutionStrategy {
Expand Down
8 changes: 4 additions & 4 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ project(':react-native-webview').projectDir = new File(rootProject.projectDir, '

apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)

include ':flipper-plugin-rn-performance-android'
project(':flipper-plugin-rn-performance-android').projectDir = new File(rootProject.projectDir, '../node_modules/flipper-plugin-rn-performance-android')

include ':app'

apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute().text.trim(), "../scripts/autolinking.gradle")
useExpoModules()
useExpoModules()

include ':react-native-video'
project(':react-native-video').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-video/android')
Binary file added assets/videos/NanoX_LL0082.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/videos/NanoX_LL0140.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/videos/NanoX_LL_White.mp4
Binary file not shown.
Binary file added assets/videos/NanoX_LL_White.webm
Binary file not shown.
Binary file added assets/videos/NanoX_LL_black.mp4
Binary file not shown.
Binary file added assets/videos/NanoX_LL_black.webm
Binary file not shown.
Binary file added assets/videos/ledger-card.webm
Binary file not shown.
Binary file added assets/videos/nano-x.mp4
Binary file not shown.
Binary file added assets/videos/onboarding.mp4
Binary file not shown.
5 changes: 4 additions & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
presets: ["module:metro-react-native-babel-preset"],
plugins: ["react-native-reanimated/plugin"],
plugins: [
"react-native-reanimated/plugin",
"@babel/plugin-transform-named-capturing-groups-regex",
],
};
44 changes: 44 additions & 0 deletions docs/analytics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
### Analytics

We use a lightweight opt-out analytics layer composed of different api and sdk.

These tools are targetted towards internal contributors only or with

- **_Adjust integration_** 🠒 Installs data analytics

Several dev environments are available to track installs of apps
Debug, Staging and Prod

In order to log events add this to your target build dot-env file

```
DEBUG_ADJUST_LOGS=true
```

For more details on how to work with the SDK check the adjust doc [here](https://github.com/adjust/react_native_sdk)

* **_Segment integration_** 🠒 General use analytics

in order to track events we use segment API with specific react API

```js
import { Track, TrackScreen } from "../analytics";
import Button from "./Button";

...
<Track
onMount
event={`Event - ${data}`}
eventProperties={{ myData: data }}
/>
<TrackScreen category="ScreenCategory" name="FirstScreen" />
<Button onPress={callback} event="ButtonPress" eventProperties={{ myData: data }} />
...

```

`Track` helps track events that can be linked to a component lifecycle.

`TracScreen` tracks mount events on a page with a formatted category (section of the app) and screen name.

`Button` helps track click/press events with event and eventProperties props.
Loading