react-native 0.72.15 → 0.72.17

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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 72,
15
- patch: 15,
15
+ patch: 17,
16
16
  prerelease: null,
17
17
  };
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(72),
26
- RCTVersionPatch: @(15),
26
+ RCTVersionPatch: @(17),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.72.15
1
+ VERSION_NAME=0.72.17
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  # JVM Versions
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 72,
20
- "patch", 15,
20
+ "patch", 17,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 72;
20
- int32_t Patch = 15;
20
+ int32_t Patch = 17;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.72.15",
3
+ "version": "0.72.17",
4
4
  "bin": "./cli.js",
5
5
  "description": "A framework for building native apps using React",
6
6
  "license": "MIT",
@@ -7,7 +7,7 @@ module PrivacyManifestUtils
7
7
  def self.add_aggregated_privacy_manifest(installer)
8
8
  user_project = get_user_project_from(installer)
9
9
  targets = get_application_targets(user_project)
10
- file_path = get_privacyinfo_file_path(user_project)
10
+ file_path = get_privacyinfo_file_path(user_project, targets)
11
11
 
12
12
  privacy_info = read_privacyinfo_file(file_path) || {
13
13
  "NSPrivacyCollectedDataTypes" => [],
@@ -67,7 +67,7 @@ module PrivacyManifestUtils
67
67
  end
68
68
 
69
69
  def self.ensure_reference(file_path, user_project, target)
70
- reference_exists = target.resources_build_phase.files_references.any? { |file_ref| file_ref.path.end_with? "PrivacyInfo.xcprivacy" }
70
+ reference_exists = target.resources_build_phase.files_references.any? { |file_ref| file_ref.path&.end_with? "PrivacyInfo.xcprivacy" }
71
71
  unless reference_exists
72
72
  # We try to find the main group, but if it doesn't exist, we default to adding the file to the project root – both work
73
73
  file_root = user_project.root_object.main_group.children.first { |group| group.name == target.name } || user_project
@@ -76,7 +76,12 @@ module PrivacyManifestUtils
76
76
  end
77
77
  end
78
78
 
79
- def self.get_privacyinfo_file_path(user_project)
79
+ def self.get_privacyinfo_file_path(user_project, targets)
80
+ file_refs = targets.flat_map { |target| target.resources_build_phase.files_references }
81
+ existing_file = file_refs.find { |file_ref| file_ref.path&.end_with? "PrivacyInfo.xcprivacy" }
82
+ if existing_file
83
+ return existing_file.real_path
84
+ end
80
85
  # We try to find a file we know exists in the project to get the path to the main group directory
81
86
  info_plist_path = user_project.files.find { |file_ref| file_ref.name == "Info.plist" }
82
87
  if info_plist_path.nil?
Binary file
Binary file
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "18.2.0",
14
- "react-native": "0.72.15"
14
+ "react-native": "0.72.17"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.20.0",