Skip to content

Commit 9b08acf

Browse files
chore: repository cleared (#616)
## Description Clean up repository structure and update library paths Summary: - Remove generated iOS/Android app directories from all demo apps (computer-vision, llm, speech-to-text, text-embeddings) - Update .gitignore to exclude `apps/*/ios/ `and `apps/*/android/`directories - Move native library binaries from `packages/react-native-executorch/ios/libs/` to `packages/react-native-executorch/third-party/ios/libs` - Update podspec to reference new library paths in third-party directory - Remove executorch git submodule ### Introduces a breaking change? - [ ] Yes - [x] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [x] Other (chores, tests, code style improvements etc.) ### Tested on - [x] iOS - [x] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [x] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [x] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent e204ff3 commit 9b08acf

File tree

309 files changed

+150
-18069
lines changed

Some content is hidden

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

309 files changed

+150
-18069
lines changed

.github/workflows/build-android-llm-example.yml

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ on:
33
pull_request:
44
paths:
55
- .github/workflows/build-android-llm-example.yml
6-
- android/**
7-
- third-party/android/**
8-
- apps/llm/package.json
9-
- apps/llm/android/**
6+
- apps/llm/**
7+
- packages/react-native-executorch/**
108
push:
119
branches:
1210
- main
1311
paths:
1412
- .github/workflows/build-android-llm-example.yml
15-
- android/**
16-
- third-party/android/**
17-
- apps/llm/package.json
18-
- apps/llm/android/**
13+
- apps/llm/**
14+
- packages/react-native-executorch/**
1915
workflow_dispatch:
2016
jobs:
2117
build:
@@ -29,14 +25,58 @@ jobs:
2925
steps:
3026
- name: Check out Git repository
3127
uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: '18'
34+
cache: 'yarn'
3235
- name: Setup Java 17
33-
uses: actions/setup-java@v3
36+
uses: actions/setup-java@v4
3437
with:
3538
distribution: 'zulu'
3639
java-version: 17
37-
- name: Install node dependencies
38-
working-directory: ${{ env.WORKING_DIRECTORY }}
40+
cache: 'gradle'
41+
- name: Install root dependencies
3942
run: yarn install --immutable
43+
- name: Install Expo CLI
44+
run: |
45+
npm install -g @expo/cli
46+
echo "$(npm prefix -g)/bin" >> $GITHUB_PATH
47+
- name: Cache Expo prebuild
48+
uses: actions/cache@v4
49+
with:
50+
path: ${{ env.WORKING_DIRECTORY }}/android
51+
key: ${{ runner.os }}-expo-android-${{ hashFiles('${{ env.WORKING_DIRECTORY }}/app.json', '${{ env.WORKING_DIRECTORY }}/package.json') }}
52+
restore-keys: |
53+
${{ runner.os }}-expo-android-
54+
- name: Generate native Android project
55+
working-directory: ${{ env.WORKING_DIRECTORY }}
56+
run: |
57+
if [ ! -d "android" ]; then
58+
npx expo prebuild --platform android --no-install
59+
else
60+
echo "Android project exists, skipping prebuild"
61+
fi
62+
- name: Cache Gradle
63+
uses: actions/cache@v4
64+
with:
65+
path: |
66+
~/.gradle/caches
67+
~/.gradle/wrapper
68+
${{ env.WORKING_DIRECTORY }}/android/.gradle
69+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
70+
restore-keys: |
71+
${{ runner.os }}-gradle-
4072
- name: Build app
4173
working-directory: ${{ env.WORKING_DIRECTORY }}/android
42-
run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a
74+
run: |
75+
./gradlew assembleDebug \
76+
--build-cache \
77+
--parallel \
78+
--daemon \
79+
--configure-on-demand \
80+
-PreactNativeArchitectures=arm64-v8a \
81+
-Dorg.gradle.jvmargs="-Xmx4g -XX:+HeapDumpOnOutOfMemoryError" \
82+
-Dorg.gradle.workers.max=4

.github/workflows/build-ios-llm-example.yml

Lines changed: 52 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
paths:
77
- '.github/workflows/build-ios-llm-example.yml'
88
- '*.podspec'
9-
- 'apps/llm/ios/**'
10-
- 'apps/llm/package.json'
9+
- 'apps/llm/**'
10+
- 'packages/react-native-executorch/**'
1111
pull_request:
1212
paths:
1313
- '.github/workflows/build-ios-llm-example.yml'
1414
- '*.podspec'
15-
- 'apps/llm/ios/**'
16-
- 'apps/llm/package.json'
15+
- 'apps/llm/**'
16+
- 'packages/react-native-executorch/**'
1717
workflow_dispatch:
1818
jobs:
1919
build:
@@ -28,12 +28,52 @@ jobs:
2828
xcode-version: latest-stable
2929
- name: Check out Git repository
3030
uses: actions/checkout@v4
31-
- name: Install node dependencies
31+
with:
32+
submodules: recursive
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: '18'
37+
cache: 'yarn'
38+
- name: Install root dependencies
39+
run: yarn install --immutable
40+
- name: Install Expo CLI
41+
run: |
42+
npm install -g @expo/cli
43+
echo "$(npm prefix -g)/bin" >> $GITHUB_PATH
44+
- name: Cache Expo prebuild
45+
uses: actions/cache@v4
46+
with:
47+
path: apps/llm/ios
48+
key: ${{ runner.os }}-expo-ios-${{ hashFiles('apps/llm/app.json', 'apps/llm/package.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-expo-ios-
51+
- name: Generate native iOS project
3252
working-directory: apps/llm
33-
run: yarn
34-
- name: Install pods
53+
run: |
54+
if [ ! -d "ios" ]; then
55+
npx expo prebuild --platform ios --no-install
56+
else
57+
echo "iOS project exists, skipping prebuild"
58+
fi
59+
- name: Cache CocoaPods
60+
uses: actions/cache@v4
61+
with:
62+
path: |
63+
apps/llm/ios/Pods
64+
~/Library/Caches/CocoaPods
65+
~/.cocoapods
66+
key: ${{ runner.os }}-pods-${{ hashFiles('apps/llm/ios/Podfile.lock') }}
67+
restore-keys: |
68+
${{ runner.os }}-pods-
69+
- name: Install CocoaPods dependencies
3570
working-directory: apps/llm/ios
36-
run: pod install
71+
run: |
72+
if [ ! -d "Pods" ]; then
73+
pod install
74+
else
75+
echo "Pods directory exists, skipping install"
76+
fi
3777
- name: Build app
3878
working-directory: apps/llm/ios
3979
run: |
@@ -44,4 +84,7 @@ jobs:
4484
-configuration Debug \
4585
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
4686
build \
47-
CODE_SIGNING_ALLOWED=NO | xcbeautify
87+
CODE_SIGNING_ALLOWED=NO \
88+
-jobs $(sysctl -n hw.ncpu) \
89+
COMPILER_INDEX_STORE_ENABLE=NO \
90+
ONLY_ACTIVE_ARCH=YES | xcbeautify

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ lib/
8787
# React Native Codegen
8888
ios/generated
8989
android/generated
90+
apps/*/ios/
91+
apps/*/android/
9092

9193
# custom
9294
*.tgz

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "executorch"]
2-
path = third-party/executorch
3-
url = https://github.com/software-mansion-labs/executorch
41
[submodule "tokenizers-cpp"]
52
path = third-party/tokenizers-cpp
63
url = https://github.com/software-mansion-labs/tokenizers-cpp

apps/computer-vision/android/.gitignore

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

apps/computer-vision/android/app/build.gradle

Lines changed: 0 additions & 177 deletions
This file was deleted.
-2.2 KB
Binary file not shown.

apps/computer-vision/android/app/proguard-rules.pro

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

0 commit comments

Comments
 (0)