react-native-legal 1.6.4 → 1.6.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.
|
@@ -101,13 +101,13 @@ public class ReactNativeLegalModuleImpl: NSObject {
|
|
|
101
101
|
.appendingPathExtension("plist")
|
|
102
102
|
|
|
103
103
|
guard
|
|
104
|
-
let data = parsePlistToDictArray(fileUrl: fileUrl)
|
|
105
|
-
let item = data.first(where: { $0["FooterText"] != nil }),
|
|
106
|
-
let footerText = item["FooterText"] as? String
|
|
104
|
+
let data = parsePlistToDictArray(fileUrl: fileUrl)
|
|
107
105
|
else {
|
|
108
106
|
return ReactNativeLegalLicenseMetadata(name: title)
|
|
109
107
|
}
|
|
110
108
|
|
|
109
|
+
let footerText = data.compactMap { $0["FooterText"] as? String }.joined(separator: "\n")
|
|
110
|
+
|
|
111
111
|
return ReactNativeLegalLicenseMetadata(name: title, content: footerText)
|
|
112
112
|
}
|
|
113
113
|
.filter { $0.name != nil }
|