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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Llama Example app Android build check
name: LLM Example app Android build check
on:
pull_request:
paths:
- .github/workflows/build-android-llama-example.yml
- .github/workflows/build-android-llm-example.yml
- android/**
- third-party/android/**
- examples/llama/package.json
- examples/llama/android/**
- examples/llm/package.json
- examples/llm/android/**
push:
branches:
- main
paths:
- .github/workflows/build-android-llama-example.yml
- .github/workflows/build-android-llm-example.yml
- android/**
- third-party/android/**
- examples/llama/package.json
- examples/llama/android/**
- examples/llm/package.json
- examples/llm/android/**
jobs:
build:
if: github.repository == 'software-mansion/react-native-executorch'
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: examples/llama
WORKING_DIRECTORY: examples/llm
concurrency:
group: android-${{ github.ref }}
cancel-in-progress: true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Llama Example app iOS build check
name: LLM Example app iOS build check
on:
push:
branches:
- main
paths:
- '.github/workflows/build-ios-llama-example.yml'
- '.github/workflows/build-ios-llm-example.yml'
- '*.podspec'
- 'examples/llama/ios/**'
- 'examples/llama/package.json'
- 'examples/llm/ios/**'
- 'examples/llm/package.json'
pull_request:
paths:
- '.github/workflows/build-ios-llama-example.yml'
- '.github/workflows/build-ios-llm-example.yml'
- '*.podspec'
- 'examples/llama/ios/**'
- 'examples/llama/package.json'
- 'examples/llm/ios/**'
- 'examples/llm/package.json'
jobs:
build:
if: github.repository == 'software-mansion/react-native-executorch'
Expand All @@ -25,17 +25,17 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Install node dependencies
working-directory: examples/llama
working-directory: examples/llm
run: yarn
- name: Install pods
working-directory: examples/llama/ios
working-directory: examples/llm/ios
run: pod install
- name: Build app
working-directory: examples/llama/ios
working-directory: examples/llm/ios
run: |
set -o pipefail && xcodebuild \
-workspace llama.xcworkspace \
-scheme llama \
-workspace llm.xcworkspace \
-scheme llm \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ lib/
# React Native Codegen
ios/generated
android/generated

# custom
*.tgz
Makefile
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ We currently host two example apps demonstrating use cases of our library:

- examples/speech-to-text - Whisper and Moonshine models ready for transcription tasks
- examples/computer-vision - computer vision related tasks
- examples/llama - chat applications showcasing use of LLMs
- examples/llm - chat applications showcasing use of LLMs

If you would like to run it, navigate to it's project directory, for example `examples/llama` from the repository root and install dependencies with:
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:

```bash
yarn
Expand Down
79 changes: 0 additions & 79 deletions examples/llama/ios/llama/Info.plist

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ android {
buildToolsVersion rootProject.ext.buildToolsVersion
compileSdk rootProject.ext.compileSdkVersion

namespace 'com.anonymous.llama'
namespace 'com.anonymous.llm'
defaultConfig {
applicationId 'com.anonymous.llama'
applicationId 'com.anonymous.llm'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="com.anonymous.llama"/>
<data android:scheme="com.anonymous.llm"/>
</intent-filter>
</activity>
</application>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.anonymous.llama
package com.anonymous.llm

import android.os.Build
import android.os.Bundle
Expand Down 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 =
ReactActivityDelegateWrapper(
override fun createReactActivityDelegate(): ReactActivityDelegate {
return ReactActivityDelegateWrapper(
this,
BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,
object : DefaultReactActivityDelegate(
Expand All @@ -37,6 +37,7 @@ class MainActivity : ReactActivity() {
fabricEnabled,
) {},
)
}

/**
* Align the back button behavior with Android S
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.anonymous.llama
package com.anonymous.llm

import android.app.Application
import android.content.res.Configuration
Expand All @@ -14,9 +14,7 @@ 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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<string name="app_name">llama</string>
<string name="app_name">llm</string>
<string name="expo_splash_screen_resize_mode" translatable="false">contain</string>
<string name="expo_splash_screen_status_bar_translucent" translatable="false">false</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="android:statusBarColor">#ffffff</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item>
</style>
<style name="ResetEditText" parent="@android:style/Widget.EditText">
<item name="android:padding">0dp</item>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,3 @@ EX_DEV_CLIENT_NETWORK_INSPECTOR=true

# Use legacy packaging to compress native libraries in the resulting APK.
expo.useLegacyPackaging=false

# Whether the app is configured to use edge-to-edge via the app config or `react-native-edge-to-edge` plugin
expo.edgeToEdgeEnabled=false
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pluginManagement {
includeBuild(new File(["node", "--print", "require.resolve('@react-native/gradle-plugin/package.json')"].execute(null, rootDir).text.trim()).getParentFile().toString())
includeBuild(new File(["node", "--print", "require.resolve('@react-native/gradle-plugin/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim()).getParentFile().toString())
}
plugins { id("com.facebook.react.settings") }

Expand All @@ -21,7 +21,7 @@ extensions.configure(com.facebook.react.ReactSettingsExtension) { ex ->
}
}

rootProject.name = 'llama'
rootProject.name = 'llm'

dependencyResolutionManagement {
versionCatalogs {
Expand Down
8 changes: 4 additions & 4 deletions examples/llama/app.json → examples/llm/app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"expo": {
"name": "llama",
"slug": "llama",
"name": "llm",
"slug": "llm",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icons/icon.png",
Expand All @@ -25,14 +25,14 @@
},
"ios": {
"supportsTablet": true,
"bundleIdentifier": "com.anonymous.llama"
"bundleIdentifier": "com.anonymous.llm"
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/icons/adaptive-icon.png",
"backgroundColor": "#ffffff"
},
"package": "com.anonymous.llama"
"package": "com.anonymous.llm"
},
"web": {
"favicon": "./assets/icons/favicon.png"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/llama/ios/Podfile → examples/llm/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ install! 'cocoapods',

prepare_react_native_project!

target 'llama' do
target 'llm' do
use_expo_modules!

if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2131,6 +2131,6 @@ SPEC CHECKSUMS:
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
Yoga: 40f19fff64dce86773bf8b602c7070796c007970

PODFILE CHECKSUM: a8c0032cd3950a69de2d58db3e646db2359d5bc4
PODFILE CHECKSUM: 88e3ce002e61ae1984854bd9714307036733a9d9

COCOAPODS: 1.16.2
Loading
Loading