Skip to content

Commit 952ef5b

Browse files
committed
feat: migrate to monorepo
1 parent 44d43fe commit 952ef5b

File tree

108 files changed

+12949
-15225
lines changed

Some content is hidden

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

108 files changed

+12949
-15225
lines changed

.github/actions/setup/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Setup
2+
description: Setup Node.js and install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup Node.js
8+
uses: actions/setup-node@v4
9+
with:
10+
node-version: 'lts/*'
11+
cache: 'yarn'
12+
13+
- name: Install dependencies
14+
run: yarn install
15+
shell: bash

.github/workflows/build.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ jobs:
1111
name: Build Android App
1212
runs-on: ubuntu-latest
1313

14-
env:
15-
SKIP_YARN_COREPACK_CHECK: 0
16-
1714
steps:
1815
- uses: actions/checkout@v4
1916

@@ -29,32 +26,28 @@ jobs:
2926
node-version: 'lts/*'
3027
cache: 'yarn'
3128

32-
- name: Install root dependencies
29+
- name: Install dependencies
3330
run: yarn install
3431

35-
- name: Install example dependencies
36-
run: |
37-
cd example
38-
yarn install
39-
cd ..
32+
- name: Build package
33+
run: yarn build
4034

4135
- name: Build Android App
4236
run: |
43-
cd example/kotlin
37+
cd apps/example/kotlin
4438
./gradlew assembleDebug
4539
4640
ios:
4741
name: Build iOS App
4842
runs-on: macos-latest
4943

50-
env:
51-
SKIP_YARN_COREPACK_CHECK: 0
52-
5344
steps:
5445
- uses: actions/checkout@v4
5546

56-
- name: Select Xcode 16.4
57-
run: sudo xcode-select -s /Applications/Xcode_16.4.app
47+
- name: Use appropriate Xcode version
48+
uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
49+
with:
50+
xcode-version: '16'
5851

5952
- name: Setup Node.js
6053
uses: actions/setup-node@v4
@@ -68,21 +61,18 @@ jobs:
6861
ruby-version: '3.2'
6962
bundler-cache: true
7063

71-
- name: Install root dependencies
64+
- name: Install dependencies
7265
run: yarn install
7366

74-
- name: Install example dependencies
75-
run: |
76-
cd example
77-
yarn install
78-
cd ..
67+
- name: Build package
68+
run: yarn build
7969

8070
- name: Install pods
8171
run: |
82-
cd example/swift
72+
cd apps/example/swift
8373
pod install
8474
8575
- name: Build iOS App
8676
run: |
87-
cd example/swift
88-
xcodebuild -workspace SwiftExample.xcworkspace -scheme SwiftExample -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' build CODE_SIGNING_ALLOWED=NO
77+
cd apps/example/swift
78+
xcodebuild -workspace SwiftExample.xcworkspace -scheme SwiftExample -configuration Debug -sdk iphonesimulator build CODE_SIGNING_ALLOWED=NO

.github/workflows/ci.yml

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint & Type Check
1+
name: CI
22

33
on:
44
push:
@@ -7,32 +7,20 @@ on:
77
branches: [main]
88

99
jobs:
10-
analyse:
10+
lint:
1111
runs-on: ubuntu-latest
12-
13-
env:
14-
SKIP_YARN_COREPACK_CHECK: 0
15-
1612
steps:
17-
- uses: actions/checkout@v3
18-
19-
- name: Setup Node.js
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: 'lts/*'
23-
cache: 'yarn'
13+
- name: Checkout
14+
uses: actions/checkout@v4
2415

25-
- name: Install root dependencies
26-
run: yarn install
16+
- name: Setup
17+
uses: ./.github/actions/setup
2718

28-
- name: Install example dependencies
29-
run: |
30-
cd example
31-
yarn install
32-
cd ..
19+
- name: Build package
20+
run: yarn build
3321

34-
- name: Lint JS Code (ESLint)
35-
run: yarn run lint
22+
- name: Lint files
23+
run: yarn lint
3624

37-
- name: Typescript Type Checking (tsc)
38-
run: yarn run typecheck
25+
- name: Typecheck files
26+
run: yarn typecheck

.gitignore

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ build/
3030
.gradle
3131
local.properties
3232
*.iml
33-
example/kotlin/build/
34-
*.iml
3533
*.hprof
3634
**/.cxx/
3735
*.keystore
@@ -47,7 +45,6 @@ yarn-error.log
4745
# BUCK
4846
buck-out/
4947
\.buckd/
50-
*.keystore
5148

5249
# fastlane
5350
#
@@ -66,18 +63,19 @@ buck-out/
6663
# CocoaPods
6764
**/Pods
6865

69-
7066
# Yarn
7167
.yarn/*
7268
!.yarn/patches
7369
!.yarn/plugins
7470
!.yarn/releases
7571
!.yarn/sdks
7672
!.yarn/versions
77-
.yarnrc.yml
78-
example/.yarn/*
7973

8074
# generated by bob
8175
lib/
8276

77+
# Turbo
78+
.turbo
79+
80+
# Gradle
8381
secring.gpg

.npmignore

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

.yarn/releases/yarn-4.12.0.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
15
nodeLinker: node-modules
6+
7+
nmHoistingLimits: workspaces
8+
9+
yarnPath: .yarn/releases/yarn-4.12.0.cjs

apps/example/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.yarn/*
2+
!.yarn/patches
3+
!.yarn/plugins
4+
!.yarn/releases
5+
!.yarn/sdks
6+
!.yarn/versions
910 KB
Binary file not shown.
File renamed without changes.

0 commit comments

Comments
 (0)