Skip to content

patch-package react-native-google-places+3.1.2.patch #303

@xDemon200

Description

@xDemon200

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-google-places@3.1.2 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-google-places/android/.project b/node_modules/react-native-google-places/android/.project
index 3964dd3..631d67a 100644
--- a/node_modules/react-native-google-places/android/.project
+++ b/node_modules/react-native-google-places/android/.project
@@ -1,10 +1,15 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-	<name>android</name>
+	<name>react-native-google-places</name>
 	<comment>Project android created by Buildship.</comment>
 	<projects>
 	</projects>
 	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
 		<buildCommand>
 			<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
 			<arguments>
@@ -12,6 +17,18 @@
 		</buildCommand>
 	</buildSpec>
 	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
 		<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
 	</natures>
+	<filteredResources>
+		<filter>
+			<id>1650489151686</id>
+			<name></name>
+			<type>30</type>
+			<matcher>
+				<id>org.eclipse.core.resources.regexFilterMatcher</id>
+				<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
+			</matcher>
+		</filter>
+	</filteredResources>
 </projectDescription>
diff --git a/node_modules/react-native-google-places/android/.settings/org.eclipse.buildship.core.prefs b/node_modules/react-native-google-places/android/.settings/org.eclipse.buildship.core.prefs
index e889521..1675490 100644
--- a/node_modules/react-native-google-places/android/.settings/org.eclipse.buildship.core.prefs
+++ b/node_modules/react-native-google-places/android/.settings/org.eclipse.buildship.core.prefs
@@ -1,2 +1,2 @@
-connection.project.dir=
+connection.project.dir=../../../android
 eclipse.preferences.version=1
diff --git a/node_modules/react-native-google-places/android/build.gradle b/node_modules/react-native-google-places/android/build.gradle
index e9ffd1f..8242bda 100644
--- a/node_modules/react-native-google-places/android/build.gradle
+++ b/node_modules/react-native-google-places/android/build.gradle
@@ -45,7 +45,7 @@ dependencies {
     def supportLibVersion = safeExtGet('supportLibVersion', DEFAULT_SUPPORT_LIB_VERSION)
 
     implementation "com.facebook.react:react-native:+"
-    implementation "com.google.android.libraries.places:places:1.1.0"
+    implementation 'com.google.android.libraries.places:places:2.5.0'
     implementation 'androidx.appcompat:appcompat:1.0.0'
     implementation 'androidx.legacy:legacy-support-v4:1.0.0'
     implementation "com.google.code.findbugs:jsr305:3.0.2"
diff --git a/node_modules/react-native-google-places/react-native-google-places.podspec b/node_modules/react-native-google-places/react-native-google-places.podspec
index 7445c14..9b5d949 100644
--- a/node_modules/react-native-google-places/react-native-google-places.podspec
+++ b/node_modules/react-native-google-places/react-native-google-places.podspec
@@ -18,6 +18,8 @@ Pod::Spec.new do |s|
 
   s.compiler_flags = '-DHAVE_GOOGLE_MAPS=1', '-fno-modules'
 
+  s.static_framework = true
+
   s.dependency 'React'
   s.dependency 'GooglePlaces', '~> 3.1.0'
   s.dependency 'GoogleMaps', '~> 3.1.0'

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions