Skip to content

Commit 80855db

Browse files
revert last commit
1 parent d3e40c7 commit 80855db

File tree

15 files changed

+37
-37
lines changed

15 files changed

+37
-37
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,6 @@ dependencies {
9797
//noinspection GradleDynamicVersion
9898
implementation "com.facebook.react:react-native:+"
9999
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
100-
implementation(files("libs/executorch.aar"))
100+
implementation 'com.github.software-mansion:react-native-executorch:main-SNAPSHOT'
101101
implementation("com.squareup.okhttp3:okhttp:4.9.2")
102102
}

android/libs/executorch.aar

-24.4 MB
Binary file not shown.

ios/ExecutorchLib.xcframework/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<key>BinaryPath</key>
99
<string>ExecutorchLib.framework/ExecutorchLib</string>
1010
<key>LibraryIdentifier</key>
11-
<string>ios-arm64-simulator</string>
11+
<string>ios-arm64</string>
1212
<key>LibraryPath</key>
1313
<string>ExecutorchLib.framework</string>
1414
<key>SupportedArchitectures</key>
@@ -17,14 +17,12 @@
1717
</array>
1818
<key>SupportedPlatform</key>
1919
<string>ios</string>
20-
<key>SupportedPlatformVariant</key>
21-
<string>simulator</string>
2220
</dict>
2321
<dict>
2422
<key>BinaryPath</key>
2523
<string>ExecutorchLib.framework/ExecutorchLib</string>
2624
<key>LibraryIdentifier</key>
27-
<string>ios-arm64</string>
25+
<string>ios-arm64-simulator</string>
2826
<key>LibraryPath</key>
2927
<string>ExecutorchLib.framework</string>
3028
<key>SupportedArchitectures</key>
@@ -33,6 +31,8 @@
3331
</array>
3432
<key>SupportedPlatform</key>
3533
<string>ios</string>
34+
<key>SupportedPlatformVariant</key>
35+
<string>simulator</string>
3636
</dict>
3737
</array>
3838
<key>CFBundlePackageType</key>
Binary file not shown.
Binary file not shown.

ios/RnExecutorch/models/StyleTransferModel.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ - (UIImage *)runModel:(UIImage *)input {
7979
NSError* forwardError = nil;
8080
NSArray *result = [self forward:modelInput shape:@[@1, @3, @640, @640] inputType:@3 error:&forwardError];
8181
free(processedImageData);
82-
float* outputData = [self NSArrayToFloatArray:result[0] outLength:1228800];
82+
float* outputData = [self NSArrayToFloatArray:result outLength:1228800];
8383
UIImage *outputImage = [ImageProcessor imageFromFloatArray:outputData size:processedImage.size];
8484
free(outputData);
8585
return [self postprocess:outputImage];

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-executorch",
3-
"version": "0.1.524",
3+
"version": "0.1.3",
44
"description": "An easy way to run AI models in react native with ExecuTorch",
55
"source": "./src/index.ts",
66
"main": "./lib/commonjs/index.js",
-29.5 MB
Binary file not shown.
-29.5 MB
Binary file not shown.
-29.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)