Skip to content
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = space
indent_size = 2

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.pbxproj -text
# specific for windows script files
*.bat text eol=crlf
44 changes: 31 additions & 13 deletions .github/workflows/android_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,44 @@ on:
inputs:
android-version:
required: false
default: 30
default: 35
type: number
react-native-version:
required: false
default: '0.71.14'
default: '0.78.3'
type: string

jobs:
test-Android:
runs-on: macos-13
name: Test Android
runs-on: ubuntu-24.04
env:
target: google_apis
arch: x86
arch: x86_64
steps:
- uses: actions/checkout@v4
- name: Provide more disk space
run: |
sudo rm -rf /opt/hostedtoolcache
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc /opt/cabal /opt/stack
sudo rm -rf /usr/local/.ghcup
sudo rm -rf "/usr/local/share/boost"
sudo apt-get remove -y 'php.*'
sudo docker image prune --all --force

- uses: actions/checkout@v5

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm

- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'

- uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: 'yarn'

- uses: actions/cache/restore@v4
with:
path: lib
Expand All @@ -42,15 +54,19 @@ jobs:
- uses: actions/cache/restore@v4
id: yarn-cache
with:
path: example\node_modules
path: |
node_modules
example/node_modules
key: temp-node-${{ github.sha }}

- name: Build dependency if needed
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn
run: |
yarn
yarn prepare

- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4

- name: AVD cache
uses: actions/cache@v4
Expand All @@ -69,6 +85,7 @@ jobs:
target: ${{ env.target }}
arch: ${{ env.arch }}
force-avd-creation: false
emulator-boot-timeout: 300
script: echo "Generated AVD snapshot for caching."

- name: Run tests
Expand All @@ -78,6 +95,7 @@ jobs:
target: ${{ env.target }}
arch: ${{ env.arch }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
working-directory: ./example/android
script: |
echo "::group::Running Android app"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/build_lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ jobs:
name: Build Nodes
runs-on: macos-14
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: ${{ env.node-version }}
cache: 'yarn'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/cache@v4
with:
Expand All @@ -32,7 +32,9 @@ jobs:
${{ runner.os }}-yarn-

- name: Build library
run: yarn install --frozen-lockfile
run: |
yarn install --frozen-lockfile
yarn prepare

- name: Make JS coverage report
run: |
Expand All @@ -44,10 +46,6 @@ jobs:
name: js-coverage-report
path: reports

- name: Build Example app
working-directory: example
run: yarn install

- name: Archive library
uses: actions/cache/save@v4
with:
Expand All @@ -57,5 +55,7 @@ jobs:
- name: Archive Node Modules
uses: actions/cache/save@v4
with:
path: example/node_modules
path: |
node_modules
example/node_modules
key: temp-node-${{ github.sha }}
10 changes: 7 additions & 3 deletions .github/workflows/ios_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
device: iPhone ${{ inputs.device-version }}
buildFolder: ./DerivedData
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
with:
Expand All @@ -40,12 +40,16 @@ jobs:
- uses: actions/cache/restore@v4
id: yarn-cache
with:
path: example/node_modules
path: |
node_modules
example/node_modules
key: temp-node-${{ github.sha }}

- name: Build dependency if needed
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn
run: |
yarn
yarn prepare

- uses: actions/cache@v4
with:
Expand Down
37 changes: 33 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
.Trashes
.VolumeIcon.icns

# VSCode
.vscode/
jsconfig.json

# Xcode
[bB]uild/
*.pbxuser
Expand All @@ -31,19 +35,28 @@ DerivedData
*.xcuserstate
project.xcworkspace
Pods/
*.xcode.env.local
**/.xcode.env.local

# Android/IJ
.idea
.classpath
.gradle
.project
.settings
local.properties
*.hprof
coverage
.cxx
android.iml
.kotlin

# Ruby
/vendor/

# node.js
node_modules/
npm-debug.log
yarn-debug.log
yarn-error.log

# Expo
.expo/*
Expand All @@ -57,8 +70,24 @@ buck-out/
android/app/libs
android/keystores/debug.keystore

# yarn
# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
example/yarn.lock

# Turborepo
.turbo/

# React Native Codegen
**/generated/

# React Native Nitro Modules
nitrogen/

# NPM
example/package-lock.json
example/package-lock.json
.yarn
942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.9.2.cjs

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions .yarnrc

This file was deleted.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enableStrictSsl: false

nmHoistingLimits: workspaces

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.9.2.cjs
Loading
Loading