Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 56b511a

Browse files
authored
Merge pull request #12 from wordpress-mobile/upstream-2.4.1
Update `trunk` with upstream version `2.4.1`
2 parents 06051c0 + 2f34f2b commit 56b511a

601 files changed

Lines changed: 34414 additions & 13632 deletions

File tree

Some content is hidden

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

.clang-format

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
AccessModifierOffset: -1
3+
AlignAfterOpenBracket: AlwaysBreak
4+
AlignConsecutiveAssignments: false
5+
AlignConsecutiveDeclarations: false
6+
AlignEscapedNewlinesLeft: true
7+
AlignOperands: false
8+
AlignTrailingComments: false
9+
AllowAllParametersOfDeclarationOnNextLine: false
10+
AllowShortBlocksOnASingleLine: false
11+
AllowShortCaseLabelsOnASingleLine: false
12+
AllowShortFunctionsOnASingleLine: Empty
13+
AllowShortIfStatementsOnASingleLine: false
14+
AllowShortLoopsOnASingleLine: false
15+
AlwaysBreakAfterReturnType: None
16+
AlwaysBreakBeforeMultilineStrings: true
17+
AlwaysBreakTemplateDeclarations: true
18+
BinPackArguments: false
19+
BinPackParameters: false
20+
BraceWrapping:
21+
AfterClass: false
22+
AfterControlStatement: false
23+
AfterEnum: false
24+
AfterFunction: false
25+
AfterNamespace: false
26+
AfterObjCDeclaration: false
27+
AfterStruct: false
28+
AfterUnion: false
29+
BeforeCatch: false
30+
BeforeElse: false
31+
IndentBraces: false
32+
BreakBeforeBinaryOperators: None
33+
BreakBeforeBraces: Attach
34+
BreakBeforeTernaryOperators: true
35+
BreakConstructorInitializersBeforeComma: false
36+
BreakAfterJavaFieldAnnotations: false
37+
BreakStringLiterals: false
38+
ColumnLimit: 80
39+
CommentPragmas: '^ IWYU pragma:'
40+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
41+
ConstructorInitializerIndentWidth: 4
42+
ContinuationIndentWidth: 4
43+
Cpp11BracedListStyle: true
44+
DerivePointerAlignment: false
45+
DisableFormat: false
46+
ForEachMacros: [ FOR_EACH_RANGE, FOR_EACH, ]
47+
IncludeCategories:
48+
- Regex: '^<.*\.h(pp)?>'
49+
Priority: 1
50+
- Regex: '^<.*'
51+
Priority: 2
52+
- Regex: '.*'
53+
Priority: 3
54+
IndentCaseLabels: true
55+
IndentWidth: 2
56+
IndentWrappedFunctionNames: false
57+
KeepEmptyLinesAtTheStartOfBlocks: false
58+
MacroBlockBegin: ''
59+
MacroBlockEnd: ''
60+
MaxEmptyLinesToKeep: 1
61+
NamespaceIndentation: None
62+
ObjCBlockIndentWidth: 2
63+
ObjCSpaceAfterProperty: true
64+
ObjCSpaceBeforeProtocolList: true
65+
PenaltyBreakBeforeFirstCallParameter: 1
66+
PenaltyBreakComment: 300
67+
PenaltyBreakFirstLessLess: 120
68+
PenaltyBreakString: 1000
69+
PenaltyExcessCharacter: 1000000
70+
PenaltyReturnTypeOnItsOwnLine: 200
71+
PointerAlignment: Right
72+
ReflowComments: true
73+
SortIncludes: true
74+
SpaceAfterCStyleCast: false
75+
SpaceBeforeAssignmentOperators: true
76+
SpaceBeforeParens: ControlStatements
77+
SpaceInEmptyParentheses: false
78+
SpacesBeforeTrailingComments: 1
79+
SpacesInAngles: false
80+
SpacesInContainerLiterals: true
81+
SpacesInCStyleCastParentheses: false
82+
SpacesInParentheses: false
83+
SpacesInSquareBrackets: false
84+
Standard: Cpp11
85+
TabWidth: 4
86+
UseTab: Never
87+
---
88+
Language: ObjC
89+
ColumnLimit: 120
90+
BreakBeforeBraces: WebKit
91+
...

.github/ISSUE_TEMPLATE/bug-report-v2.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: "\U0001F41E Bug report"
33
about: Report an issue with Reanimated
44
title: ''
5-
labels: "\U0001F41E Bug"
5+
labels: "needs-review"
66
assignees: ''
77
---
88

@@ -31,19 +31,27 @@ Here are some tips for providing a minimal example: [https://stackoverflow.com/h
3131
## Package versions
3232

3333
<!--
34-
Fill in your Reanimated and React Native versions below.
34+
What are the exact versions of packages and tools that you are using?
3535
36-
List other libraries if relevant.
36+
Remove packages from the table that you're not using or list additional if relevant.
3737
-->
3838

39-
- React Native:
40-
- React Native Reanimated:
41-
- NodeJS:
42-
- Xcode:
43-
- Java & Gradle:
39+
| name | version |
40+
| ------------------------------------ | ------- |
41+
| react-native | |
42+
| react-native-reanimated | |
43+
| NodeJS | |
44+
| Xcode | |
45+
| Java | |
46+
| Gradle | |
47+
| expo | |
4448

4549
## Affected platforms
4650

51+
<!--
52+
Please insert an "x" between the brackets of the affected platforms (e.g. - [x] iOS)
53+
-->
54+
4755
- [ ] Android
4856
- [ ] iOS
4957
- [ ] Web
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test Android build
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
paths:
7+
- 'android/**'
8+
- 'Common/**'
9+
push:
10+
branches:
11+
- main
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
env:
16+
WORKING_DIRECTORY: Example
17+
concurrency:
18+
group: android-${{ github.ref }}
19+
cancel-in-progress: true
20+
steps:
21+
- name: checkout
22+
uses: actions/checkout@v2
23+
- name: Set ANDROID_NDK
24+
run: echo "ANDROID_NDK=$ANDROID_HOME/ndk-bundle" >> $GITHUB_ENV
25+
- name: Accept licenses
26+
run: /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
27+
- name: Use Node.js 14
28+
uses: actions/setup-node@v2
29+
with:
30+
node-version: 14
31+
cache: 'yarn'
32+
- name: Install root node dependencies
33+
run: yarn
34+
- name: Install example app node dependencies
35+
working-directory: ${{ env.WORKING_DIRECTORY }}
36+
run: yarn
37+
- name: Build app
38+
working-directory: ${{ env.WORKING_DIRECTORY }}/android
39+
run: ./gradlew assembleDebug --console=plain

.github/workflows/build-npm-package.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build npm package
22

33
on:
4+
workflow_dispatch:
45
schedule:
56
- cron: '0 12 */1 * *'
67

@@ -28,8 +29,20 @@ jobs:
2829
run: >-
2930
./createNPMPackage.sh
3031
32+
- run: echo "PACKAGE_NAME=$(ls -l | egrep -o "react-native-reanimated-(.*)(=?\.tgz)")" >> $GITHUB_ENV
33+
3134
- name: Upload npm package
3235
uses: actions/upload-artifact@v2
3336
with:
34-
name: react-native-reanimated-2.0.0-alpha.tgz
37+
name: ${{ env.PACKAGE_NAME }}
3538
path: '*.tgz'
39+
40+
- name: Compress Android build output
41+
run: zip -r android-build-output.zip android/build/
42+
43+
- name: Upload Android build folder
44+
uses: actions/upload-artifact@v2
45+
with:
46+
name: android-build-output
47+
path: android-build-output.zip
48+
retention-days: 5
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Check for stale issues
2+
on:
3+
schedule:
4+
- cron: '37 21 * * *' # at 21:37 every day
5+
issues:
6+
types: [edited]
7+
issue_comment:
8+
types: [created, edited]
9+
workflow_dispatch:
10+
11+
jobs:
12+
main:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Actions
16+
uses: actions/checkout@v2
17+
with:
18+
repository: 'software-mansion-labs/swmansion-bot'
19+
ref: stable
20+
21+
- name: Get yarn cache directory path
22+
id: yarn-cache-dir-path
23+
run: echo "::set-output name=dir::$(yarn cache dir)"
24+
25+
- name: Use yarn cache
26+
uses: actions/cache@v2
27+
id: yarn-cache
28+
with:
29+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
30+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
31+
restore-keys: |
32+
${{ runner.os }}-yarn-
33+
34+
- name: Install Actions
35+
run: yarn install
36+
37+
- name: Close when stale
38+
uses: ./close-when-stale
39+
with:
40+
close-when-stale-label: close-when-stale
41+
days-to-close: 20

.github/workflows/docs-check.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test docs build
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'docs/**'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
env:
14+
WORKING_DIRECTORY: docs
15+
steps:
16+
- name: Check out
17+
uses: actions/checkout@v1
18+
- name: Use Node.js 14
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 14
22+
cache: 'yarn'
23+
- name: Install node dependencies
24+
working-directory: ${{ env.WORKING_DIRECTORY }}
25+
run: yarn
26+
- name: Build docs
27+
working-directory: ${{ env.WORKING_DIRECTORY }}
28+
run: yarn build

.github/workflows/ios-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test iOS build
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
paths:
7+
- 'ios/**'
8+
- 'Common/**'
9+
push:
10+
branches:
11+
- main
12+
jobs:
13+
build:
14+
# runs-on: macos-latest // issue: https://github.com/actions/virtual-environments/issues/4060
15+
runs-on: macos-11
16+
env:
17+
WORKING_DIRECTORY: Example
18+
concurrency:
19+
group: ios-${{ github.ref }}
20+
cancel-in-progress: true
21+
steps:
22+
- name: checkout
23+
uses: actions/checkout@v2
24+
- name: Use Node.js 14
25+
uses: actions/setup-node@v2
26+
with:
27+
node-version: 14
28+
cache: 'yarn'
29+
- name: Install Reanimated node dependencies
30+
run: yarn
31+
- name: Install node dependencies
32+
working-directory: ${{ env.WORKING_DIRECTORY }}
33+
run: yarn
34+
- name: Install pods
35+
working-directory: ${{ env.WORKING_DIRECTORY }}/ios
36+
run: pod install
37+
- name: Build app
38+
working-directory: ${{ env.WORKING_DIRECTORY }}
39+
run: npx react-native run-ios

.github/workflows/issue-validator.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)