Skip to content

Commit 0e452cb

Browse files
mkopcinsMateusz KopcińskimlodyjesieninmsluszniakNorbertKlockiewicz
authored
Release 0.5.3 (#579)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Introduces a breaking change? - [x] Yes - [ ] No ### Type of change - [x] Bug fix (change which fixes an issue) - [x] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [ ] 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 - [ ] 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 - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. --> --------- Co-authored-by: Mateusz Kopciński <mateusz.kopcinski@swmansnion.com> Co-authored-by: Filip Zieliński <127685479+mlodyjesienin@users.noreply.github.com> Co-authored-by: Mateusz Sluszniak <56299341+msluszniak@users.noreply.github.com> Co-authored-by: Norbert Klockiewicz <Nklockiewicz12@gmail.com>
1 parent 9cb5f03 commit 0e452cb

File tree

448 files changed

+5674
-49902
lines changed

Some content is hidden

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

448 files changed

+5674
-49902
lines changed

.cspell-wordlist.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,5 @@ startoftranscript
6060
endoftext
6161
softmax
6262
logit
63-
logits
63+
logits
64+
probs

apps/llm/ios/Podfile.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ PODS:
14031403
- React-jsiexecutor
14041404
- React-RCTFBReactNativeSpec
14051405
- ReactCommon/turbomodule/core
1406-
- react-native-executorch (0.4.2):
1406+
- react-native-executorch (0.5.2):
14071407
- DoubleConversion
14081408
- glog
14091409
- hermes-engine
@@ -2153,9 +2153,9 @@ PODS:
21532153
- ReactCommon/turbomodule/core
21542154
- Yoga
21552155
- SocketRocket (0.7.1)
2156-
- sqlite3 (3.50.4):
2157-
- sqlite3/common (= 3.50.4)
2158-
- sqlite3/common (3.50.4)
2156+
- sqlite3 (3.50.3):
2157+
- sqlite3/common (= 3.50.3)
2158+
- sqlite3/common (3.50.3)
21592159
- Yoga (0.0.0)
21602160

21612161
DEPENDENCIES:
@@ -2492,7 +2492,7 @@ SPEC CHECKSUMS:
24922492
React-logger: 8edfcedc100544791cd82692ca5a574240a16219
24932493
React-Mapbuffer: c3f4b608e4a59dd2f6a416ef4d47a14400194468
24942494
React-microtasksnativemodule: 054f34e9b82f02bd40f09cebd4083828b5b2beb6
2495-
react-native-executorch: 88c3786c6346d5fbd62417b5c799e818568e6cc5
2495+
react-native-executorch: 170728e566bd9fc4f9bc7a2f73a3c6b31fdd69ad
24962496
react-native-safe-area-context: 562163222d999b79a51577eda2ea8ad2c32b4d06
24972497
React-NativeModulesApple: 2c4377e139522c3d73f5df582e4f051a838ff25e
24982498
React-oscompat: ef5df1c734f19b8003e149317d041b8ce1f7d29c
@@ -2533,7 +2533,7 @@ SPEC CHECKSUMS:
25332533
RNScreens: 482e9707f9826230810c92e765751af53826d509
25342534
RNSVG: 794f269526df9ddc1f79b3d1a202b619df0368e3
25352535
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
2536-
sqlite3: 73513155ec6979715d3904ef53a8d68892d4032b
2536+
sqlite3: 83105acd294c9137c026e2da1931c30b4588ab81
25372537
Yoga: c758bfb934100bb4bf9cbaccb52557cee35e8bdf
25382538

25392539
PODFILE CHECKSUM: bba19a069e673f2259009e9d2caab44374fdebcf

apps/llm/ios/llm.xcodeproj/project.pbxproj

Lines changed: 43 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
0064517258769CC2AD16763F /* libPods-llm.a in Frameworks */ = {isa = PBXBuildFile; fileRef = FCA4A9AE0011869427989B32 /* libPods-llm.a */; };
1011
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1112
3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
12-
43F68E6573C0341F9AABF14F /* libPods-llm.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F5CE0775ADE5923FA417B603 /* libPods-llm.a */; };
1313
5BF945B85D1D224F6EA71C77 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = B79E360E00239D910BF9B38D /* PrivacyInfo.xcprivacy */; };
1414
9A387428F0214E9D9C1DC3F5 /* Aeonik-Regular.otf in Resources */ = {isa = PBXBuildFile; fileRef = F866B7979FB94C8797EE2E3D /* Aeonik-Regular.otf */; };
1515
A9775F3A313447B197B057ED /* Aeonik-Medium.otf in Resources */ = {isa = PBXBuildFile; fileRef = E8C01EF33FCE4105BBBC9DF6 /* Aeonik-Medium.otf */; };
@@ -22,26 +22,26 @@
2222
13B07F961A680F5B00A75B9A /* llm.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = llm.app; sourceTree = BUILT_PRODUCTS_DIR; };
2323
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = llm/Images.xcassets; sourceTree = "<group>"; };
2424
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = llm/Info.plist; sourceTree = "<group>"; };
25-
4F489A14802F01369BFDDEFD /* Pods-llm.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-llm.debug.xcconfig"; path = "Target Support Files/Pods-llm/Pods-llm.debug.xcconfig"; sourceTree = "<group>"; };
26-
63C842393C3838DA2ECEFC7C /* Pods-llm.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-llm.release.xcconfig"; path = "Target Support Files/Pods-llm/Pods-llm.release.xcconfig"; sourceTree = "<group>"; };
25+
56D7DF5DF56EAD2FAE3ADDBF /* Pods-llm.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-llm.debug.xcconfig"; path = "Target Support Files/Pods-llm/Pods-llm.debug.xcconfig"; sourceTree = "<group>"; };
2726
8CD8BF58A368F789F1E7DF50 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-llm/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
2827
AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = llm/SplashScreen.storyboard; sourceTree = "<group>"; };
2928
B79E360E00239D910BF9B38D /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = llm/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
3029
BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = "<group>"; };
3130
E8C01EF33FCE4105BBBC9DF6 /* Aeonik-Medium.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Aeonik-Medium.otf"; path = "../assets/fonts/Aeonik-Medium.otf"; sourceTree = "<group>"; };
31+
EA4529BE680FEB0AB7539557 /* Pods-llm.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-llm.release.xcconfig"; path = "Target Support Files/Pods-llm/Pods-llm.release.xcconfig"; sourceTree = "<group>"; };
3232
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
3333
F11748412D0307B40044C1D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = llm/AppDelegate.swift; sourceTree = "<group>"; };
3434
F11748442D0722820044C1D9 /* llm-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "llm-Bridging-Header.h"; path = "llm/llm-Bridging-Header.h"; sourceTree = "<group>"; };
35-
F5CE0775ADE5923FA417B603 /* libPods-llm.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-llm.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3635
F866B7979FB94C8797EE2E3D /* Aeonik-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Aeonik-Regular.otf"; path = "../assets/fonts/Aeonik-Regular.otf"; sourceTree = "<group>"; };
36+
FCA4A9AE0011869427989B32 /* libPods-llm.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-llm.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3737
/* End PBXFileReference section */
3838

3939
/* Begin PBXFrameworksBuildPhase section */
4040
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
4141
isa = PBXFrameworksBuildPhase;
4242
buildActionMask = 2147483647;
4343
files = (
44-
43F68E6573C0341F9AABF14F /* libPods-llm.a in Frameworks */,
44+
0064517258769CC2AD16763F /* libPods-llm.a in Frameworks */,
4545
);
4646
runOnlyForDeploymentPostprocessing = 0;
4747
};
@@ -78,22 +78,22 @@
7878
name = llm;
7979
sourceTree = "<group>";
8080
};
81-
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
81+
2BDC958BE1EC9E085C328253 /* Pods */ = {
8282
isa = PBXGroup;
8383
children = (
84-
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
85-
F5CE0775ADE5923FA417B603 /* libPods-llm.a */,
84+
56D7DF5DF56EAD2FAE3ADDBF /* Pods-llm.debug.xcconfig */,
85+
EA4529BE680FEB0AB7539557 /* Pods-llm.release.xcconfig */,
8686
);
87-
name = Frameworks;
87+
path = Pods;
8888
sourceTree = "<group>";
8989
};
90-
3014A6CAF64EC97E4003A2A3 /* Pods */ = {
90+
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
9191
isa = PBXGroup;
9292
children = (
93-
4F489A14802F01369BFDDEFD /* Pods-llm.debug.xcconfig */,
94-
63C842393C3838DA2ECEFC7C /* Pods-llm.release.xcconfig */,
93+
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
94+
FCA4A9AE0011869427989B32 /* libPods-llm.a */,
9595
);
96-
path = Pods;
96+
name = Frameworks;
9797
sourceTree = "<group>";
9898
};
9999
832341AE1AAA6A7D00B99B32 /* Libraries */ = {
@@ -111,8 +111,8 @@
111111
83CBBA001A601CBA00E9B192 /* Products */,
112112
2D16E6871FA4F8E400B85C8A /* Frameworks */,
113113
A4FC52F75D7B41C891464AC8 /* Resources */,
114-
3014A6CAF64EC97E4003A2A3 /* Pods */,
115114
00B5279489FF0B6C8284706B /* ExpoModulesProviders */,
115+
2BDC958BE1EC9E085C328253 /* Pods */,
116116
);
117117
indentWidth = 2;
118118
sourceTree = "<group>";
@@ -152,14 +152,14 @@
152152
isa = PBXNativeTarget;
153153
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "llm" */;
154154
buildPhases = (
155-
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
155+
DE51561DFA0B7F5BB664350B /* [CP] Check Pods Manifest.lock */,
156156
281D8603161F8B331E2BA335 /* [Expo] Configure project */,
157157
13B07F871A680F5B00A75B9A /* Sources */,
158158
13B07F8C1A680F5B00A75B9A /* Frameworks */,
159159
13B07F8E1A680F5B00A75B9A /* Resources */,
160160
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
161-
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
162-
62055444ECB4CA2743E68CDC /* [CP] Embed Pods Frameworks */,
161+
96ABF7A87CEE57D5C4479DBC /* [CP] Embed Pods Frameworks */,
162+
E0CDBD4D0993974173A0E9FD /* [CP] Copy Pods Resources */,
163163
);
164164
buildRules = (
165165
);
@@ -233,68 +233,66 @@
233233
shellPath = /bin/sh;
234234
shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios absolute | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n# Source .xcode.env.updates if it exists to allow\n# SKIP_BUNDLING to be unset if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.updates\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.updates\"\nfi\n# Source local changes to allow overrides\n# if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
235235
};
236-
08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
236+
281D8603161F8B331E2BA335 /* [Expo] Configure project */ = {
237237
isa = PBXShellScriptBuildPhase;
238+
alwaysOutOfDate = 1;
238239
buildActionMask = 2147483647;
239240
files = (
240241
);
241242
inputFileListPaths = (
242243
);
243244
inputPaths = (
244-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
245-
"${PODS_ROOT}/Manifest.lock",
246245
);
247-
name = "[CP] Check Pods Manifest.lock";
246+
name = "[Expo] Configure project";
248247
outputFileListPaths = (
249248
);
250249
outputPaths = (
251-
"$(DERIVED_FILE_DIR)/Pods-llm-checkManifestLockResult.txt",
252250
);
253251
runOnlyForDeploymentPostprocessing = 0;
254252
shellPath = /bin/sh;
255-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
256-
showEnvVarsInLog = 0;
253+
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-llm/expo-configure-project.sh\"\n";
257254
};
258-
281D8603161F8B331E2BA335 /* [Expo] Configure project */ = {
255+
96ABF7A87CEE57D5C4479DBC /* [CP] Embed Pods Frameworks */ = {
259256
isa = PBXShellScriptBuildPhase;
260-
alwaysOutOfDate = 1;
261257
buildActionMask = 2147483647;
262258
files = (
263259
);
264-
inputFileListPaths = (
265-
);
266260
inputPaths = (
261+
"${PODS_ROOT}/Target Support Files/Pods-llm/Pods-llm-frameworks.sh",
262+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
267263
);
268-
name = "[Expo] Configure project";
269-
outputFileListPaths = (
270-
);
264+
name = "[CP] Embed Pods Frameworks";
271265
outputPaths = (
266+
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
272267
);
273268
runOnlyForDeploymentPostprocessing = 0;
274269
shellPath = /bin/sh;
275-
shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-llm/expo-configure-project.sh\"\n";
270+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-llm/Pods-llm-frameworks.sh\"\n";
271+
showEnvVarsInLog = 0;
276272
};
277-
62055444ECB4CA2743E68CDC /* [CP] Embed Pods Frameworks */ = {
273+
DE51561DFA0B7F5BB664350B /* [CP] Check Pods Manifest.lock */ = {
278274
isa = PBXShellScriptBuildPhase;
279275
buildActionMask = 2147483647;
280276
files = (
281277
);
278+
inputFileListPaths = (
279+
);
282280
inputPaths = (
283-
"${PODS_ROOT}/Target Support Files/Pods-llm/Pods-llm-frameworks.sh",
284-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
285-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/react-native-executorch/ExecutorchLib.framework/ExecutorchLib",
281+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
282+
"${PODS_ROOT}/Manifest.lock",
283+
);
284+
name = "[CP] Check Pods Manifest.lock";
285+
outputFileListPaths = (
286286
);
287-
name = "[CP] Embed Pods Frameworks";
288287
outputPaths = (
289-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
290-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/ExecutorchLib.framework",
288+
"$(DERIVED_FILE_DIR)/Pods-llm-checkManifestLockResult.txt",
291289
);
292290
runOnlyForDeploymentPostprocessing = 0;
293291
shellPath = /bin/sh;
294-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-llm/Pods-llm-frameworks.sh\"\n";
292+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
295293
showEnvVarsInLog = 0;
296294
};
297-
800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
295+
E0CDBD4D0993974173A0E9FD /* [CP] Copy Pods Resources */ = {
298296
isa = PBXShellScriptBuildPhase;
299297
buildActionMask = 2147483647;
300298
files = (
@@ -347,13 +345,13 @@
347345
/* Begin XCBuildConfiguration section */
348346
13B07F941A680F5B00A75B9A /* Debug */ = {
349347
isa = XCBuildConfiguration;
350-
baseConfigurationReference = 4F489A14802F01369BFDDEFD /* Pods-llm.debug.xcconfig */;
348+
baseConfigurationReference = 56D7DF5DF56EAD2FAE3ADDBF /* Pods-llm.debug.xcconfig */;
351349
buildSettings = {
352350
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
353351
CLANG_ENABLE_MODULES = YES;
354352
CODE_SIGN_ENTITLEMENTS = llm/llm.entitlements;
355353
CURRENT_PROJECT_VERSION = 1;
356-
DEVELOPMENT_TEAM = "";
354+
DEVELOPMENT_TEAM = J5FM626PE2;
357355
ENABLE_BITCODE = NO;
358356
GCC_PREPROCESSOR_DEFINITIONS = (
359357
"$(inherited)",
@@ -384,13 +382,13 @@
384382
};
385383
13B07F951A680F5B00A75B9A /* Release */ = {
386384
isa = XCBuildConfiguration;
387-
baseConfigurationReference = 63C842393C3838DA2ECEFC7C /* Pods-llm.release.xcconfig */;
385+
baseConfigurationReference = EA4529BE680FEB0AB7539557 /* Pods-llm.release.xcconfig */;
388386
buildSettings = {
389387
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
390388
CLANG_ENABLE_MODULES = YES;
391389
CODE_SIGN_ENTITLEMENTS = llm/llm.entitlements;
392390
CURRENT_PROJECT_VERSION = 1;
393-
DEVELOPMENT_TEAM = "";
391+
DEVELOPMENT_TEAM = J5FM626PE2;
394392
INFOPLIST_FILE = llm/Info.plist;
395393
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
396394
LD_RUNPATH_SEARCH_PATHS = (

apps/llm/ios/llm/llm.entitlements

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict/>
4+
<dict>
5+
<key>com.apple.developer.kernel.increased-debugging-memory-limit</key>
6+
<true/>
7+
<key>com.apple.developer.kernel.increased-memory-limit</key>
8+
<true/>
9+
</dict>
510
</plist>

packages/react-native-executorch/android/CMakeLists.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,28 @@ set(COMMON_CPP_DIR "${CMAKE_SOURCE_DIR}/../common")
1414
set(LIBS_DIR "${CMAKE_SOURCE_DIR}/../third-party/android/libs")
1515
set(INCLUDE_DIR "${CMAKE_SOURCE_DIR}/../third-party/include")
1616

17+
# FIXME: Below u can see miserable attempts of trying to link tokenizers-cpp
18+
# directly into react-native-executorch instead of it being linked against ExecuTorch
19+
# and then transitively to our library. Please go back to this when we bump ET runtime to the next version.
20+
# The problem with directly linking tokenizers-cpp using a submodule is that we get unresolved symbols for
21+
# some android logging libraries, which are referenced by sentencepiece.
22+
23+
# set(TOKENIZERS_CPP_DIR "${CMAKE_SOURCE_DIR}/../../../third-party/tokenizers-cpp")
24+
# add_subdirectory("${TOKENIZERS_CPP_DIR}" tokenizers-cpp)
25+
26+
# # Link Android log library to sentencepiece targets
27+
# if(TARGET sentencepiece-static)
28+
# target_link_libraries(sentencepiece-static INTERFACE log)
29+
# endif()
30+
# if(TARGET sentencepiece_train-static)
31+
# target_link_libraries(sentencepiece_train-static INTERFACE log)
32+
# endif()
33+
34+
# # Link log library to sentencepiece executables
35+
# foreach(exe spm_encode spm_decode spm_normalize spm_train spm_export_vocab)
36+
# if(TARGET ${exe})
37+
# target_link_libraries(${exe} log)
38+
# endif()
39+
# endforeach()
40+
1741
add_subdirectory("${ANDROID_CPP_DIR}")

packages/react-native-executorch/android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,5 +168,6 @@ dependencies {
168168
implementation 'com.facebook.fbjni:fbjni:0.6.0'
169169
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
170170
implementation files('libs/classes.jar')
171+
implementation 'org.opencv:opencv:4.10.0'
171172
implementation("com.squareup.okhttp3:okhttp:4.9.2")
172173
}

packages/react-native-executorch/android/src/main/cpp/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,37 @@ set(RN_VERSION_LINK_LIBRARIES
3333
)
3434

3535
# Dependencies:
36+
3637
# ------- Executorch -------
3738

3839
add_library(executorch SHARED IMPORTED)
3940

4041
set_target_properties(executorch PROPERTIES
4142
IMPORTED_LOCATION "${LIBS_DIR}/executorch/${ANDROID_ABI}/libexecutorch.so")
4243

44+
45+
if(ANDROID_ABI STREQUAL "arm64-v8a")
46+
target_compile_definitions(react-native-executorch PRIVATE ARCH_ARM64)
47+
48+
# ------- pthreadpool -------
49+
add_library(pthreadpool SHARED IMPORTED)
50+
51+
set_target_properties(pthreadpool PROPERTIES
52+
IMPORTED_LOCATION "${LIBS_DIR}/pthreadpool/${ANDROID_ABI}/libpthreadpool.so"
53+
INTERFACE_INCLUDE_DIRECTORIES "${LIBS_DIR}/../../include/pthreadpool/")
54+
55+
# ------- cpuinfo -------
56+
add_library(cpuinfo SHARED IMPORTED)
57+
58+
set_target_properties(cpuinfo PROPERTIES
59+
IMPORTED_LOCATION "${LIBS_DIR}/cpuinfo/${ANDROID_ABI}/libcpuinfo.so"
60+
INTERFACE_INCLUDE_DIRECTORIES "${LIBS_DIR}/../../include/cpuinfo/")
61+
set(EXECUTORCH_LIBS
62+
"pthreadpool"
63+
"cpuinfo"
64+
)
65+
endif()
66+
4367
# ------- OpenCV -------
4468

4569
set(OPENCV_LIBS
@@ -70,4 +94,5 @@ target_link_libraries(
7094
${OPENCV_LIBS}
7195
${OPENCV_THIRD_PARTY_LIBS}
7296
executorch
97+
${EXECUTORCH_LIBS}
7398
)

0 commit comments

Comments
 (0)