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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
38 changes: 0 additions & 38 deletions .eslintrc

This file was deleted.

38 changes: 38 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const path = require('path');

module.exports = {
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: ['@babel/preset-react'],
},
},
root: true,
extends: [
'@react-native',
'plugin:@cspell/recommended',
'plugin:prettier/recommended',
],
rules: {
'react/react-in-jsx-scope': 'off',
'prettier/prettier': [
'error',
{
quoteProps: 'consistent',
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
useTabs: false,
},
],
'@cspell/spellchecker': [
'warn',
{
customWordListFile: path.resolve(__dirname, '.cspell-wordlist.txt'),
},
],
'camelcase': 'error',
},
plugins: ['prettier'],
ignorePatterns: ['node_modules/', 'lib/'],
};
10 changes: 5 additions & 5 deletions .github/workflows/build-android-llm-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ on:
- .github/workflows/build-android-llm-example.yml
- android/**
- third-party/android/**
- examples/llm/package.json
- examples/llm/android/**
- apps/llm/package.json
- apps/llm/android/**
push:
branches:
- main
paths:
- .github/workflows/build-android-llm-example.yml
- android/**
- third-party/android/**
- examples/llm/package.json
- examples/llm/android/**
- apps/llm/package.json
- apps/llm/android/**
workflow_dispatch:
jobs:
build:
if: github.repository == 'software-mansion/react-native-executorch'
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: examples/llm
WORKING_DIRECTORY: apps/llm
concurrency:
group: android-${{ github.ref }}
cancel-in-progress: true
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build-ios-llm-example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
paths:
- '.github/workflows/build-ios-llm-example.yml'
- '*.podspec'
- 'examples/llm/ios/**'
- 'examples/llm/package.json'
- 'apps/llm/ios/**'
- 'apps/llm/package.json'
pull_request:
paths:
- '.github/workflows/build-ios-llm-example.yml'
- '*.podspec'
- 'examples/llm/ios/**'
- 'examples/llm/package.json'
- 'apps/llm/ios/**'
- 'apps/llm/package.json'
workflow_dispatch:
jobs:
build:
Expand All @@ -29,13 +29,13 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install node dependencies
working-directory: examples/llm
working-directory: apps/llm
run: yarn
- name: Install pods
working-directory: examples/llm/ios
working-directory: apps/llm/ios
run: pod install
- name: Build app
working-directory: examples/llm/ios
working-directory: apps/llm/ios
run: |
set -o pipefail && xcodebuild \
-workspace llm.xcworkspace \
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ jobs:
uses: ./.github/actions/setup

- name: Build package
run: yarn prepare
run: |
cd packages/react-native-executorch
yarn prepare
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
**/*.mdx
**/*.mdx
third-party
.github
.yarn
README.md
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

893 changes: 893 additions & 0 deletions .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

13 changes: 5 additions & 8 deletions .yarnrc.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've did some reading: https://yarnpkg.com/features/caching
I think in our case we can go with global caching as we're not going to commit yarn cache anyway.

Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
nodeLinker: node-modules
nmHoistingLimits: workspaces
compressionLevel: mixed

enableGlobalCache: false

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: '@yarnpkg/plugin-interactive-tools'
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: '@yarnpkg/plugin-workspace-tools'
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.6.1.cjs
yarnPath: .yarn/releases/yarn-4.1.1.cjs
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ The minimal supported version are:

We currently host a few example apps demonstrating use cases of our library:

- `examples/llm` - chat application showcasing use of LLMs
- `examples/speech-to-text` - Whisper and Moonshine models ready for transcription tasks
- `examples/computer-vision` - computer vision related tasks
- `examples/text-embeddings` - computing text representations for semantic search
- `apps/llm` - chat application showcasing use of LLMs
- `apps/speech-to-text` - Whisper and Moonshine models ready for transcription tasks
- `apps/computer-vision` - computer vision related tasks
- `apps/text-embeddings` - computing text representations for semantic search

If you would like to run it, navigate to it's project directory, for example `examples/llm` from the repository root and install dependencies with:
If you would like to run it, navigate to it's project directory, for example `apps/llm` from the repository root and install dependencies with:

```bash
yarn
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ class MainActivity : ReactActivity() {
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
*/
override fun createReactActivityDelegate(): ReactActivityDelegate {
return ReactActivityDelegateWrapper(
override fun createReactActivityDelegate(): ReactActivityDelegate =
ReactActivityDelegateWrapper(
this,
BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,
object : DefaultReactActivityDelegate(
Expand All @@ -37,7 +37,6 @@ class MainActivity : ReactActivity() {
fabricEnabled,
) {},
)
}

/**
* Align the back button behavior with Android S
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import com.facebook.soloader.SoLoader
import expo.modules.ApplicationLifecycleDispatcher
import expo.modules.ReactNativeHostWrapper

class MainApplication : Application(), ReactApplication {
class MainApplication :
Application(),
ReactApplication {
override val reactNativeHost: ReactNativeHost =
ReactNativeHostWrapper(
this,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading
Loading