-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add code review recommendations
- Loading branch information
1 parent
ec48c85
commit cd01be3
Showing
7 changed files
with
56 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,4 @@ | |
|
||
#import <React/RCTBridgeModule.h> | ||
@interface JsiModule : NSObject <RCTBridgeModule> | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Convenience shorthands. | ||
[alias] | ||
build-ios = ["build", "--target", "aarch64-apple-ios"] | ||
build-android = ["build", "--target", "aarch64-linux-android"] | ||
|
||
# Linker configuration settings. | ||
[target.aarch64-apple-ios] | ||
rustflags = [ | ||
"-C", "link-arg=-isysroot", "-C", "link-arg=$(xcrun --sdk iphoneos --show-sdk-path)", | ||
"-C", "link-arg=-arch", "-C", "link-arg=arm64", | ||
"-C", "link-arg=-mios-version-min=10.0" | ||
] | ||
|
||
[target.aarch64-linux-android] | ||
linker = "aarch64-linux-android21-clang" | ||
ar = "aarch64-linux-android-ar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#[no_mangle] | ||
pub extern "C" fn multiply(a: f64, b: f64) -> f64 { | ||
#[no_mangle] pub extern "C" | ||
fn rust_multiply(a: f64, b: f64) -> f64 { | ||
a * b | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters