@react-native-vector-icons/common 11.0.0-alpha.2 → 11.0.0-alpha.4

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-vector-icons/common",
3
- "version": "11.0.0-alpha.2",
3
+ "version": "11.0.0-alpha.4",
4
4
  "description": "Customizable Icons for React Native with support for image source and full styling.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -19,6 +19,7 @@
19
19
  }
20
20
  },
21
21
  "files": [
22
+ "scripts",
22
23
  "src",
23
24
  "lib",
24
25
  "android",
@@ -160,5 +161,5 @@
160
161
  "languages": "kotlin-objc",
161
162
  "version": "0.41.2"
162
163
  },
163
- "gitHead": "2f3944d3ea907e2ced2955ea88f3e3504d828dd3"
164
+ "gitHead": "c07e91c552e015561756ccd9731b9807717f2080"
164
165
  }
@@ -26,7 +26,7 @@ Pod::Spec.new do |s|
26
26
  # Don't install the dependencies when we run `pod install` in the old architecture.
27
27
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
28
28
  s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
29
- s.pod_target_xcconfig = {
29
+ s.pod_target_xcconfig = {
30
30
  "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
31
31
  "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
32
32
  "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
@@ -41,61 +41,12 @@ Pod::Spec.new do |s|
41
41
 
42
42
  s.script_phase = {
43
43
  :name => 'Copy Fonts',
44
- :script => "
44
+ :script => <<~SCRIPT
45
45
  set -e
46
46
 
47
- # This script borrows from the standard resource copy script https://gist.github.com/vonovak/d8f1a37804438f05bae22be1e8cd53c1
48
- # We need two key bits of information
49
- # Project Root - Where the package.json for the RN app lives
50
- # Xcode Build Dir to copy the fonts into - We look for the directory that ends in .app
47
+ WITH_ENVIRONMENT="$REACT_NATIVE_PATH/scripts/xcode/with-environment.sh"
51
48
 
52
- echo \"(RNVI) START_COPY_FONTS\"
53
-
54
- echo \"(RNVI) PWD: $(pwd)\"
55
-
56
- #############
57
- # Find the fonts we need to copy
58
- #############
59
-
60
- # Assume the project root is always two directories above the POD_ROOT
61
- echo \"(RNVI) PODS_ROOT: $PODS_ROOT\"
62
- PROJECT_ROOT=\"${PODS_ROOT}/../..\"
63
- echo \"(RNVI) PROJECT_ROOT: $PROJECT_ROOT\"
64
-
65
- # Items we need to copy for rsync
66
- RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
67
-
68
- node \"${PODS_TARGET_SRCROOT}/lib/commonjs/scripts/getFonts.js\" \"$PROJECT_ROOT\"/package.json > \"$RESOURCES_TO_COPY\"
69
-
70
- #############
71
- # Find the destination we copy to
72
- #############
73
-
74
- echo \"(RNVI) PODS_CONFIGURATION_BUILD_DIR: $PODS_CONFIGURATION_BUILD_DIR\"
75
- XCODE_DIR=$(ls -d \"$PODS_CONFIGURATION_BUILD_DIR\"/*.app)
76
- echo \"(RNVI) XCODE_DIR: $XCODE_DIR\"
77
- DEST_DIR=\"${XCODE_DIR}\"
78
- echo \"(RNVI) DEST_DIR: $DEST_DIR\"
79
- echo I $INSTALL_DIR
80
- mkdir -p \"$DEST_DIR\"
81
-
82
- #############
83
- # Copy the fonts
84
- #############
85
- echo \"(RNVI) Copying the following files to $DEST_DIR\"
86
- cat \"$RESOURCES_TO_COPY\" | sed 's/^/(RNVI) /'
87
-
88
- # NOTE: Should we add --delete and remove old fonts automagically? NOt doing it yet as it feels risky
89
- rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"$DEST_DIR\"
90
- # TODO: How do we test this is right?
91
- if [[ \"${ACTION}\" == \"install\" ]] && [[ \"${SKIP_INSTALL}\" == \"NO\" ]]; then
92
- mkdir -p \"${INSTALL_DIR}/react-native-vector-icons\"
93
- rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from=\"$RESOURCES_TO_COPY\" / \"${INSTALL_DIR}/react-native-vector-icons\"
94
- fi
95
-
96
- rm -f \"$RESOURCES_TO_COPY\"
97
-
98
- echo \"(RNVI) END:RNVI_COPY_FONTS\"
99
- ",
49
+ /bin/sh -c "\"$WITH_ENVIRONMENT\" \"${PODS_TARGET_SRCROOT}/scripts/copy-fonts.sh\""
50
+ SCRIPT
100
51
  }
101
52
  end
@@ -0,0 +1,56 @@
1
+ #!/bin/bash
2
+
3
+ set -e
4
+
5
+ # This script borrows from the standard resource copy script https://gist.github.com/vonovak/d8f1a37804438f05bae22be1e8cd53c1
6
+ # We need two key bits of information
7
+ # Project Root - Where the package.json for the RN app lives
8
+ # Xcode Build Dir to copy the fonts into - We look for the directory that ends in .app
9
+
10
+ echo "(RNVI) START_COPY_FONTS"
11
+
12
+ echo "(RNVI) PWD: $(pwd)"
13
+
14
+ #############
15
+ # Find the fonts we need to copy
16
+ #############
17
+
18
+ # Assume the project root is always two directories above the POD_ROOT
19
+ echo "(RNVI) PODS_ROOT: $PODS_ROOT"
20
+ PROJECT_ROOT="${PODS_ROOT}/../.."
21
+ echo "(RNVI) PROJECT_ROOT: $PROJECT_ROOT"
22
+
23
+ # Items we need to copy for rsync
24
+ RESOURCES_TO_COPY="${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt"
25
+
26
+ "$NODE_BINARY" "${PODS_TARGET_SRCROOT}/lib/commonjs/scripts/getFonts.js" "$PROJECT_ROOT"/package.json >"$RESOURCES_TO_COPY"
27
+
28
+ #############
29
+ # Find the destination we copy to
30
+ #############
31
+
32
+ echo "(RNVI) PODS_CONFIGURATION_BUILD_DIR: $PODS_CONFIGURATION_BUILD_DIR"
33
+ XCODE_DIR=$(ls -d "$PODS_CONFIGURATION_BUILD_DIR"/*.app)
34
+ echo "(RNVI) XCODE_DIR: $XCODE_DIR"
35
+ DEST_DIR="${XCODE_DIR}"
36
+ echo "(RNVI) DEST_DIR: $DEST_DIR"
37
+ echo "(RNVI) INSTALL_DIR: $INSTALL_DIR"
38
+ mkdir -p "$DEST_DIR"
39
+
40
+ #############
41
+ # Copy the fonts
42
+ #############
43
+ echo "(RNVI) Copying the following files to $DEST_DIR"
44
+ sed 's/^/(RNVI) /' "$RESOURCES_TO_COPY"
45
+
46
+ # NOTE: Should we add --delete and remove old fonts automagically? NOt doing it yet as it feels risky
47
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "$DEST_DIR"
48
+ # TODO: How do we test this is right?
49
+ if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then
50
+ mkdir -p "${INSTALL_DIR}/react-native-vector-icons"
51
+ rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/react-native-vector-icons"
52
+ fi
53
+
54
+ rm -f "$RESOURCES_TO_COPY"
55
+
56
+ echo "(RNVI) END:RNVI_COPY_FONTS"