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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +1 -1
- package/scripts/cocoapods/privacy_manifest_utils.rb +8 -3
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/template/package.json +1 -1
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|
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
|