Skip to content

Commit 2a3ad40

Browse files
committed
Merge branch 'mute-for-specific-amount-of-time' of https://www.github.com/status-im/status-mobile into mute-for-specific-amount-of-time
2 parents 6e57ba8 + 6689ee2 commit 2a3ad40

File tree

107 files changed

+1787
-837
lines changed

Some content is hidden

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

107 files changed

+1787
-837
lines changed

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ Statusgo.xcframework
100100

101101
#ios
102102
/ios/Pods/
103+
/ios/logs/
103104
/ios/StatusIm.xcworkspace
104-
/ios/react-native-xcode.log
105-
/ios/set_xcode_version.log
106105
.ruby-version
107106
status-e2e/
108107

@@ -183,4 +182,4 @@ test/appium/tests/users.py
183182
/.calva/
184183

185184
## component-tests
186-
*.log
185+
*.log

ci/Jenkinsfile.android

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
/* Options section can't access functions in objects. */
44
def isPRBuild = utils.isPRBuild()

ci/Jenkinsfile.combined

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44
agent { label 'linux' }

ci/Jenkinsfile.ios

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
/* Options section can't access functions in objects. */
44
def isPRBuild = utils.isPRBuild()
@@ -63,6 +63,9 @@ pipeline {
6363
steps {
6464
script { api = ios.bundle() }
6565
}
66+
post {
67+
failure { archiveArtifacts 'ios/logs/*' }
68+
}
6669
}
6770
stage('Parallel Upload') {
6871
parallel {

ci/Jenkinsfile.nix-cache

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44
agent { label params.AGENT_LABEL }

ci/Jenkinsfile.tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
/* Options section can't access functions in objects. */
44
def isPRBuild = utils.isPRBuild()

ci/tests/Jenkinsfile.e2e-nightly

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44

ci/tests/Jenkinsfile.e2e-prs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44

ci/tests/Jenkinsfile.e2e-upgrade

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44

ci/tools/Jenkinsfile.fastlane-clean

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44
agent { label 'macos' }

ci/tools/Jenkinsfile.playstore-meta

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44
agent { label 'linux' }

ci/tools/Jenkinsfile.xcode-clean

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library '[email protected].6'
1+
library '[email protected].9'
22

33
pipeline {
44
agent {

doc/new-guidelines.md

+14
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,20 @@ deref'ed atoms.
116116
{:background-color (colors/theme-colors colors/white colors/neutral-90)})
117117
```
118118

119+
### Custom Colors
120+
121+
The Status designs have a lot of customization of user and group colors with components and pages. For consistency it is best to use `customization-color` as the prop key on pages and components. This will help easily identify what pages and components in the application are using customized colors.
122+
123+
```clojure
124+
;; bad
125+
(defn community-card [{keys [custom-color]}]
126+
...)
127+
128+
;; good
129+
(defn community-card [{keys [customization-color]}]
130+
...)
131+
```
132+
119133
### Using TODOs comments
120134

121135
_TODO_ comments are used extensively in the codebase, but prefer to use them

fastlane/Fastfile

+3
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def build_ios_adhoc(readonly: false, pr_build: false)
123123
export_method: 'ad-hoc',
124124
output_name: 'StatusIm',
125125
output_directory: 'status-ios',
126+
buildlog_path: 'ios/logs',
126127
export_options: {
127128
signingStyle: 'manual',
128129
provisioningProfiles: {
@@ -162,6 +163,7 @@ def build_ios_e2e
162163
# 3. directory where to up StatusIm.app
163164
derived_data_path: 'status-ios',
164165
output_name: 'StatusIm.app',
166+
buildlog_path: 'ios/logs',
165167
# -------------------------------------
166168
# Normal stuff
167169
scheme: 'StatusIm',
@@ -239,6 +241,7 @@ platform :ios do
239241
clean: true,
240242
export_method: 'app-store',
241243
output_directory: 'status-ios',
244+
buildlog_path: 'ios/logs',
242245
include_symbols: false,
243246
export_options: {
244247
"combileBitcode": true,

ios/StatusIm.xcodeproj/project.pbxproj

+4-4
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@
526526
);
527527
runOnlyForDeploymentPostprocessing = 0;
528528
shellPath = "/usr/bin/env sh";
529-
shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./react-native-xcode.log 2>&1";
529+
shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./logs/react-native-xcode.log 2>&1";
530530
};
531531
0F876BD5356F61BF142A01A0 /* [CP] Check Pods Manifest.lock */ = {
532532
isa = PBXShellScriptBuildPhase;
@@ -584,7 +584,7 @@
584584
);
585585
runOnlyForDeploymentPostprocessing = 0;
586586
shellPath = "/usr/bin/env sh";
587-
shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./react-native-xcode.log 2>&1";
587+
shellScript = "set -o errexit\nexport NODE_BINARY=\"${NODE_BINARY:-node}\"\nexport NODE_ARGS=\" --openssl-legacy-provider --max-old-space-size=16384 \"\n\nbash -x ../node_modules/react-native/scripts/react-native-xcode.sh > ./logs/react-native-xcode.log 2>&1";
588588
};
589589
3AAD2AD724A3A60E0075D594 /* Run Script */ = {
590590
isa = PBXShellScriptBuildPhase;
@@ -598,7 +598,7 @@
598598
);
599599
runOnlyForDeploymentPostprocessing = 1;
600600
shellPath = "/usr/bin/env sh";
601-
shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./set_xcode_version.log 2>&1";
601+
shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./logs/set_xcode_version.log 2>&1";
602602
};
603603
3C1038075AE5E6FB86AC2319 /* [CP] Copy Pods Resources */ = {
604604
isa = PBXShellScriptBuildPhase;
@@ -678,7 +678,7 @@
678678
);
679679
runOnlyForDeploymentPostprocessing = 1;
680680
shellPath = "/usr/bin/env sh";
681-
shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./set_xcode_version.log 2>&1";
681+
shellScript = "\"${PROJECT_DIR}/scripts/set_xcode_version.sh\" > ./logs/set_xcode_version.log 2>&1";
682682
};
683683
E732E3E1B024946173BF6D3D /* [CP] Copy Pods Resources */ = {
684684
isa = PBXShellScriptBuildPhase;

ios/logs/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Description
2+
3+
This directory is the destination of logs created by Fastlane and React Native Xcode script.
4+
5+
# Logs
6+
7+
* `react-native-xcode.log` - Output from `node_modules/react-native/scripts/react-native-xcode.sh`.
8+
- Created by redirecting output of `shellScript` in `ios/StatusIm.xcodeproj/project.pbxproj`.
9+
* `Status PR-StatusImPR.log - Created by [Fastlane Gym](https://docs.fastlane.tools/actions/gym/).
10+
- Configred via [`Fastfile`](../Fastfile) using `buildlog_path` argument for `build_ios_app`.
11+
12+
# CI
13+
14+
These log files are uploaded to Jenkins as CI job artifacts on failure using `archiveArtifacts`.

nix/shell.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ in mkShell {
1212

1313
buildInputs = with pkgs; lib.unique ([
1414
# core utilities that should always be present in a shell
15-
bash curl wget file unzip flock
15+
bash curl wget file unzip flock procps
1616
git gnumake jq ncurses gnugrep parallel
1717
lsof # used in start-react-native.sh
1818
# build specific utilities
@@ -22,7 +22,7 @@ in mkShell {
2222
# other nice to have stuff
2323
yarn nodejs python27
2424
] # and some special cases
25-
++ lib.optionals stdenv.isDarwin [ cocoapods clang ]
25+
++ lib.optionals stdenv.isDarwin [ cocoapods clang tcl ]
2626
++ lib.optionals (!stdenv.isDarwin) [ gcc8 ]
2727
);
2828

898 Bytes
Loading
1.25 KB
Loading
591 Bytes
Loading
884 Bytes
Loading
864 Bytes
Loading
1.25 KB
Loading
946 Bytes
Loading
1.37 KB
Loading
927 Bytes
Loading
Loading
1.06 KB
Loading
Loading
768 Bytes
Loading
1.09 KB
Loading
1.05 KB
Loading
1.45 KB
Loading
1.11 KB
Loading
1.61 KB
Loading
1.18 KB
Loading
1.64 KB
Loading

src/mocks/js_dependencies.cljs

+4-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ globalThis.__STATUS_MOBILE_JS_IDENTITY_PROXY__ = new Proxy({}, {get() { return (
147147
:SvgXml #js {:render identity}
148148
:default #js {:render identity}})
149149
(def react-native-webview #js {:default {}})
150-
(def react-native-audio-toolkit #js {:MediaStates {}})
150+
(def react-native-audio-toolkit
151+
#js
152+
{:MediaStates {}
153+
:PlaybackCategories {}})
151154
(def net-info #js {})
152155
(def touchid #js {})
153156
(def react-native-image-viewing #js {:default {}})

src/quo2/components/avatars/user_avatar.cljs

-138
This file was deleted.

0 commit comments

Comments
 (0)