react-native-google-maps-plus 1.1.0-dev.6 → 1.1.0-dev.7
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/README.md +26 -4
- package/android/build.gradle +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -103,9 +103,10 @@ Checkout the example app in the [example](./example) folder.
|
|
|
103
103
|
- **`GMSServices must be configured before use`**
|
|
104
104
|
Ensure your key is in `Info.plist` and/or provided via `GMSServices.provideAPIKey(...)` in `AppDelegate.swift`.
|
|
105
105
|
|
|
106
|
-
- **Build fails with `Node.h` import
|
|
107
|
-
SVGKit
|
|
108
|
-
|
|
106
|
+
- **Build fails with `Node.h`, `CSSValue.h`, or `SVGLength.h` import errors from SVGKit**
|
|
107
|
+
SVGKit includes headers (`Node.h`, `CSSValue.h`, `SVGLength.h`) that can conflict with
|
|
108
|
+
iOS system headers and React Native Reanimated’s internal types.
|
|
109
|
+
You can patch them automatically in your **Podfile** inside the `post_install`
|
|
109
110
|
|
|
110
111
|
```ruby
|
|
111
112
|
post_install do |installer|
|
|
@@ -121,14 +122,35 @@ Checkout the example app in the [example](./example) folder.
|
|
|
121
122
|
end
|
|
122
123
|
end
|
|
123
124
|
|
|
124
|
-
#
|
|
125
|
+
# --- SVGKit Patch ---
|
|
125
126
|
require 'fileutils'
|
|
126
127
|
svgkit_path = File.join(installer.sandbox.pod_dir('SVGKit'), 'Source')
|
|
128
|
+
|
|
129
|
+
# node fix
|
|
127
130
|
Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|
|
|
128
131
|
FileUtils.chmod("u+w", file)
|
|
129
132
|
text = File.read(file)
|
|
130
133
|
new_contents = text.gsub('#import "Node.h"', '#import "SVGKit/Node.h"')
|
|
131
134
|
File.open(file, 'w') { |f| f.write(new_contents) }
|
|
135
|
+
# puts "Patched Node import in: #{file}"
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# import CSSValue.h
|
|
139
|
+
Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|
|
|
140
|
+
FileUtils.chmod("u+w", file)
|
|
141
|
+
text = File.read(file)
|
|
142
|
+
new_contents = text.gsub('#import "CSSValue.h"', '#import "SVGKit/CSSValue.h"')
|
|
143
|
+
File.open(file, 'w') { |f| f.write(new_contents) }
|
|
144
|
+
# puts "Patched CSSValue import in: #{file}"
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# import SVGLength.h
|
|
148
|
+
Dir.glob(File.join(svgkit_path, '**', '*.{h,m}')).each do |file|
|
|
149
|
+
FileUtils.chmod("u+w", file)
|
|
150
|
+
text = File.read(file)
|
|
151
|
+
new_contents = text.gsub('#import "SVGLength.h"', '#import "SVGKit/SVGLength.h"')
|
|
152
|
+
File.open(file, 'w') { |f| f.write(new_contents) }
|
|
153
|
+
# puts "Patched SVGLength import in: #{file}"
|
|
132
154
|
end
|
|
133
155
|
end
|
|
134
156
|
```
|
package/android/build.gradle
CHANGED
|
@@ -25,7 +25,11 @@ apply plugin: "kotlin-android"
|
|
|
25
25
|
apply from: '../nitrogen/generated/android/RNGoogleMapsPlus+autolinking.gradle'
|
|
26
26
|
apply from: "./fix-prefab.gradle"
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
if (rootProject.name != "rngooglemapsplus.example") {
|
|
29
|
+
apply plugin: "com.facebook.react"
|
|
30
|
+
} else {
|
|
31
|
+
println("\u001B[33m⚠️ Skipping React Native Gradle plugin in library (example build detected)\u001B[0m")
|
|
32
|
+
}
|
|
29
33
|
|
|
30
34
|
def getExtOrIntegerDefault(name) {
|
|
31
35
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["RNGoogleMapsPlus_" + name]).toInteger()
|
package/package.json
CHANGED