Skip to content

Commit 03c6bf1

Browse files
Merge upstream develop
2 parents 4162e04 + 89a898c commit 03c6bf1

5 files changed

Lines changed: 22 additions & 12 deletions

File tree

.gitlab-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ stages:
1616
- publish
1717
- deploy
1818
- test
19+
variables:
20+
CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
21+
CARGO_TARGET_DIR: ${CI_PROJECT_DIR}/target
1922
default:
2023
tags:
2124
- dind_fast

.gitlab/ci/build_rn_sdk.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,19 @@ rn-android-build:
2424
cache:
2525
- key:
2626
files:
27+
- packages/rs-core/Cargo.lock
28+
prefix: rs-core-cargo-deps
29+
paths:
30+
- .cargo/registry/index
31+
- .cargo/registry/cache
32+
- .cargo/git/db
33+
- key:
34+
files:
35+
- packages/rs-core/Cargo.lock
2736
- pnpm-lock.yaml
28-
prefix: ubrn-target
37+
prefix: rs-core-target-${CI_JOB_NAME}
2938
paths:
30-
- node_modules/.pnpm/uniffi-bindgen-react-native@*/node_modules/uniffi-bindgen-react-native/target
39+
- target
3140
script:
3241
- cd packages/react-native
3342
- |

.gitlab/ci/build_rs_core.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
- .gitlab/ci/build_rs_core.yml
1616
variables:
1717
RUST_CORE_PATH: packages/rs-core
18-
CARGO_HOME: ${CI_PROJECT_DIR}/.cargo
1918
cache:
2019
- key:
2120
files:
@@ -76,15 +75,10 @@ rs-core-uniffi-web-build:
7675
- key:
7776
files:
7877
- packages/rs-core/Cargo.lock
78+
- pnpm-lock.yaml
7979
prefix: rs-core-target-${CI_JOB_NAME}
8080
paths:
8181
- target
82-
- key:
83-
files:
84-
- pnpm-lock.yaml
85-
prefix: ubrn-target
86-
paths:
87-
- node_modules/.pnpm/uniffi-bindgen-react-native@*/node_modules/uniffi-bindgen-react-native/target
8882
script:
8983
- cd packages/rs-core-uniffi-web
9084
- |

.gitlab/ci/setup_images.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ setup-image-rust:
2929
--frontend dockerfile.v0 \
3030
--local context=.gitlab/images/rust \
3131
--local dockerfile=.gitlab/images/rust \
32+
--import-cache type=registry,ref=$RUST_IMAGE \
33+
--export-cache type=inline \
3234
--output type=image,name=$RUST_IMAGE,push=true

apps/polycentric/src/common/components/layout/Layout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ import {
1313
import {
1414
KeyboardAvoidingView,
1515
Platform,
16-
Pressable,
16+
// Pressable,
1717
useWindowDimensions,
1818
View,
1919
} from 'react-native';
2020
import { useSafeAreaInsets } from 'react-native-safe-area-context';
2121

2222
import { IdentityFooter } from '@/src/features/core/identity/IdentityFooter';
2323
import { Ionicons } from '@expo/vector-icons';
24-
import WEB_LOGO from '../../assets/images/polycentric-logo-blue-256.png';
24+
import BLUE_LOGO from '../../assets/images/polycentric-logo-blue-256.png';
25+
import WHITE_LOGO from '../../assets/images/polycentric-logo-white-256.png';
2526
import { FUTO_URL, openCompose } from '../../constants';
2627
import { useCurrentIdentity } from '../../lib/polycentric-hooks';
2728
import { Button } from '../primitives';
@@ -183,6 +184,7 @@ export const LeftSidebar = memo(function LeftSidebar({
183184
...props
184185
}: LeftSidebarProps) {
185186
const { width: deviceWidth } = useWindowDimensions();
187+
const { theme } = useTheme();
186188

187189
const { identity } = useCurrentIdentity();
188190

@@ -237,7 +239,7 @@ export const LeftSidebar = memo(function LeftSidebar({
237239
]}
238240
>
239241
<Image
240-
source={WEB_LOGO}
242+
source={theme.scheme === 'dark' ? WHITE_LOGO : BLUE_LOGO}
241243
contentFit="contain"
242244
style={{ width: 30, height: 30 }}
243245
/>

0 commit comments

Comments
 (0)