-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
13,413 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
project(FastURL) | ||
cmake_minimum_required(VERSION 3.9.0) | ||
|
||
set (CMAKE_VERBOSE_MAKEFILE ON) | ||
set (CMAKE_CXX_STANDARD 11) | ||
|
||
add_library(cpp | ||
SHARED | ||
../cpp/react-native-fast-url.cpp | ||
cpp-adapter.cpp | ||
) | ||
set(PACKAGE_NAME "fast-url") | ||
set(CMAKE_VERBOSE_MAKEFILE ON) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(BUILD_DIR ${CMAKE_SOURCE_DIR}/build) | ||
|
||
# Specifies a path to native header files. | ||
include_directories( | ||
../cpp | ||
) | ||
include_directories(../cpp) | ||
|
||
add_library(${PACKAGE_NAME} SHARED ../cpp/fast-url.cpp cpp-adapter.cpp) | ||
|
||
set_target_properties( | ||
${PACKAGE_NAME} | ||
PROPERTIES CXX_STANDARD 17 | ||
CXX_EXTENSIONS OFF | ||
POSITION_INDEPENDENT_CODE ON) | ||
|
||
find_package(ReactAndroid REQUIRED CONFIG) | ||
find_package(fbjni REQUIRED CONFIG) | ||
|
||
target_link_libraries(${PACKAGE_NAME} fbjni::fbjni ReactAndroid::jsi android) |
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,5 +1,5 @@ | ||
#include <jni.h> | ||
#include "react-native-fast-url.h" | ||
#include "fast-url.h" | ||
|
||
extern "C" | ||
JNIEXPORT jdouble JNICALL | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef FASTURLPARSER_H | ||
#define FASTURLPARSER_H | ||
|
||
namespace fasturl { | ||
double multiply(double a, double b); | ||
} | ||
|
||
#endif /* FASTURLPARSER_H */ |
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
#ifdef __cplusplus | ||
#import "react-native-fast-url.h" | ||
#import "fast-url.h" | ||
#endif | ||
|
||
#ifdef RCT_NEW_ARCH_ENABLED | ||
|
Oops, something went wrong.