react-native-quick-crypto 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-quick-crypto",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "A fast implementation of Node's `crypto` module written in C/C++ JSI",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"*.podspec",
|
|
37
37
|
"README.md",
|
|
38
38
|
"app.plugin.js",
|
|
39
|
+
"scripts",
|
|
39
40
|
"!**/__tests__",
|
|
40
41
|
"!**/__fixtures__",
|
|
41
42
|
"!**/__mocks__"
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
dependency: {
|
|
3
|
+
platforms: {
|
|
4
|
+
ios: {
|
|
5
|
+
scriptPhases: [
|
|
6
|
+
{
|
|
7
|
+
name: '[CP-User] Embed OpenSSL Framework',
|
|
8
|
+
path: './scripts/embed_openssl_framework.sh',
|
|
9
|
+
execution_position: 'after_compile',
|
|
10
|
+
input_files: ['${BUILT_PRODUCTS_DIR}/OpenSSL.framework'],
|
|
11
|
+
output_files: [
|
|
12
|
+
'${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework',
|
|
13
|
+
],
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
set -e
|
|
3
|
+
|
|
4
|
+
OPENSSL_FRAMEWORK="${BUILT_PRODUCTS_DIR}/OpenSSL.framework"
|
|
5
|
+
|
|
6
|
+
if [ -d "$OPENSSL_FRAMEWORK" ]; then
|
|
7
|
+
echo "[QuickCrypto] Copying OpenSSL.framework to app bundle"
|
|
8
|
+
mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
|
|
9
|
+
cp -Rf "$OPENSSL_FRAMEWORK" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/"
|
|
10
|
+
|
|
11
|
+
# Code sign the framework (only if code signing is required and not a simulator build)
|
|
12
|
+
if [ "${CODE_SIGNING_REQUIRED}" = "YES" ] && [ "${EFFECTIVE_PLATFORM_NAME}" != "-iphonesimulator" ]; then
|
|
13
|
+
codesign --force --sign "${EXPANDED_CODE_SIGN_IDENTITY}" --preserve-metadata=identifier,entitlements --timestamp=none "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework" || true
|
|
14
|
+
fi
|
|
15
|
+
echo "[QuickCrypto] Successfully embedded OpenSSL.framework"
|
|
16
|
+
else
|
|
17
|
+
echo "[QuickCrypto] Warning: OpenSSL.framework not found at $OPENSSL_FRAMEWORK"
|
|
18
|
+
fi
|