Skip to content

Commit 141e582

Browse files
Merge branch 'expo-plugin'
2 parents 4fe6213 + d25a92a commit 141e582

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## 4.10.1 — 2023-03-13
4+
* [Android] Fix expo plugin failing on Expo SDK >= 48. Regular expressions failed because Expo changed lines in the build.gradle files that the Expo plugin was using for anchors for where to inject new src. Changed to use more fundamental anchor elements for regular expressions that must exist.
5+
36
## 4.10.0 — 2023-02-01
47
* [Fixed][Android] Implement support for `play-services-location v21` (`ext.playServicesLocationVersion` in your `android/build.gradle`). The plugin can now work with either `<= v20` or `>= v21`.
58

expo/plugin/src/androidPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const applyAppGradle = (buildGradle:string) => {
8888
tag: `[${MODULE_NAME}]-project`,
8989
src: buildGradle,
9090
newSrc: newSrc.join("\n"),
91-
anchor: /\"react\.gradle\"\)/,
91+
anchor: /android\s\{/,
9292
offset: 1,
9393
comment: "//",
9494
}).contents;
@@ -140,7 +140,7 @@ const applyMavenUrl = (buildGradle: string):string => {
140140
tag: `[${MODULE_NAME}-maven`,
141141
src: buildGradle,
142142
newSrc: `\tmaven { url "\${project(":${MODULE_NAME}").projectDir}/libs" }`,
143-
anchor: /mavenLocal\(\)/,
143+
anchor: /maven\s\{/,
144144
offset: 1,
145145
comment: "//",
146146
}).contents;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-background-geolocation",
3-
"version": "4.10.0",
3+
"version": "4.10.1",
44
"description": "The most sophisticated cross-platform background location-tracking & geofencing module with battery-conscious motion-detection intelligence",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)