Skip to content

Commit 8234908

Browse files
authored
Merge pull request #2 from hariks789/repo-update
Repo update
2 parents 2ea2dd7 + 7db6753 commit 8234908

File tree

5 files changed

+31
-26
lines changed

5 files changed

+31
-26
lines changed

.gitmodules

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "ios-common"]
22
path = ios/common
3-
url = https://github.com/mauron85/background-geolocation-ios.git
3+
url = https://github.com/hariks789/background-geolocation-ios.git
44
[submodule "android-common"]
55
path = android/common
6-
url = https://github.com/darron1217/background-geolocation-android.git
6+
url = https://github.com/hariks789/background-geolocation-android.git

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# @darron1217/react-native-background-geolocation
1+
# @hariks789/react-native-background-geolocation
22

3-
[![npm](https://img.shields.io/npm/v/@darron1217/react-native-background-geolocation?style=flat-square)](https://www.npmjs.com/package/@darron1217/react-native-background-geolocation)
3+
[![npm](https://img.shields.io/npm/v/@hariks789/react-native-background-geolocation?style=flat-square)](https://www.npmjs.com/package/@hariks789/react-native-background-geolocation)
44

5-
> Forked from [@maruon85/react-native-background-geolocation](https://github.com/mauron85/react-native-background-geolocation) due to inactivity.
5+
> Forked from [@darron1217/react-native-background-geolocation](https://github.com/darron1217/react-native-background-geolocation) due to inactivity.
6+
Original Repo: [@mauron85/react-native-background-geolocation](https://github.com/mauron85/react-native-background-geolocation)
67

78
## Installation
89

910
```
10-
yarn add @darron1217/react-native-background-geolocation
11+
yarn add @hariks789/react-native-background-geolocation
1112
```
1213

1314
### Automatic setup
@@ -16,7 +17,7 @@ Since version 0.60 React Native does linking of modules [automatically](https://
1617
As plugin depends on additional 'common' module, it is required to link it with:
1718

1819
```
19-
node ./node_modules/@darron1217/react-native-background-geolocation/scripts/postlink.js
20+
node ./node_modules/@hariks789/react-native-background-geolocation/scripts/postlink.js
2021
```
2122

2223
### Manual setup
@@ -27,10 +28,10 @@ In `android/settings.gradle`
2728

2829
```gradle
2930
...
30-
include ':@darron1217_react-native-background-geolocation-common'
31-
project(':@darron1217_react-native-background-geolocation-common').projectDir = new File(rootProject.projectDir, '../node_modules/@darron1217/react-native-background-geolocation/android/common')
32-
include ':@darron1217_react-native-background-geolocation'
33-
project(':@darron1217_react-native-background-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/@darron1217/react-native-background-geolocation/android/lib')
31+
include ':@hariks789_react-native-background-geolocation-common'
32+
project(':@hariks789_react-native-background-geolocation-common').projectDir = new File(rootProject.projectDir, '../node_modules/@hariks789/react-native-background-geolocation/android/common')
33+
include ':@hariks789_react-native-background-geolocation'
34+
project(':@hariks789_react-native-background-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/@hariks789/react-native-background-geolocation/android/lib')
3435
...
3536
```
3637

@@ -39,7 +40,7 @@ In `android/app/build.gradle`
3940
```gradle
4041
dependencies {
4142
...
42-
compile project(':@darron1217_react-native-background-geolocation')
43+
compile project(':@hariks789_react-native-background-geolocation')
4344
...
4445
}
4546
```
@@ -69,7 +70,7 @@ public class MainApplication extends Application implements ReactApplication {
6970
#### iOS setup
7071

7172
1. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]`
72-
2. Add `./node_modules/@darron1217/react-native-background-geolocation/ios/RCTBackgroundGeolocation.xcodeproj`
73+
2. Add `./node_modules/@hariks789/react-native-background-geolocation/ios/RCTBackgroundGeolocation.xcodeproj`
7374
3. In the XCode project navigator, select your project, select the `Build Phases` tab and in the `Link Binary With Libraries` section add **libRCTBackgroundGeolocation.a**
7475
4. Add `UIBackgroundModes` **location** to `Info.plist`
7576
5. Add `NSMotionUsageDescription` **App requires motion tracking** to `Info.plist` (required by ACTIVITY_PROVIDER)
@@ -170,7 +171,7 @@ The repository [react-native-background-geolocation-example](https://github.com/
170171
```javascript
171172
import React, { Component } from 'react';
172173
import { Alert } from 'react-native';
173-
import BackgroundGeolocation from '@darron1217/react-native-background-geolocation';
174+
import BackgroundGeolocation from '@hariks789/react-native-background-geolocation';
174175

175176
class BgTracking extends Component {
176177
componentDidMount() {

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
url 'https://maven.google.com/'
66
name 'Google'
77
}
8-
jcenter()
8+
mavenCentral()
99
}
1010
dependencies {
1111
classpath 'com.android.tools.build:gradle:3.4.1'
@@ -23,7 +23,7 @@ allprojects {
2323
url 'https://maven.google.com/'
2424
name 'Google'
2525
}
26-
jcenter()
26+
mavenCentral()
2727
// repo for react-native
2828
// https://mvnrepository.com/artifact/com.facebook.react/react-native?repo=springio-plugins-release
2929
maven {

package.json

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": "@darron1217/react-native-background-geolocation",
3-
"version": "0.6.6",
4-
"description": "optimized background location tracking",
2+
"name": "@hariks789/react-native-background-geolocation",
3+
"version": "0.6.7",
4+
"description": "Optimized background location tracking",
55
"main": "./index.js",
66
"types": "./index.d.ts",
77
"scripts": {
8-
"link": "@darron1217/react-native-background-geolocation/scripts/postlink.js",
9-
"unlink": "@darron1217/react-native-background-geolocation/scripts/postunlink.js",
8+
"link": "@hariks789/react-native-background-geolocation/scripts/postlink.js",
9+
"unlink": "@hariks789/react-native-background-geolocation/scripts/postunlink.js",
1010
"test": "echo \"Error: no test specified\" && exit 1"
1111
},
1212
"repository": {
1313
"type": "git",
14-
"url": "git+https://github.com/darron1217/react-native-background-geolocation.git"
14+
"url": "git+https://github.com/hariks789/react-native-background-geolocation.git"
1515
},
1616
"keywords": [
1717
"gps",
@@ -31,13 +31,17 @@
3131
{
3232
"email": "darron1217@gmail.com",
3333
"name": "Darron Park"
34+
},
35+
{
36+
"email": "hariks@zoho.com",
37+
"name": "Hariks"
3438
}
3539
],
3640
"license": "Apache-2.0",
3741
"bugs": {
38-
"url": "https://github.com/darron1217/react-native-background-geolocation/issues"
42+
"url": "https://github.com/hariks789/react-native-background-geolocation/issues"
3943
},
40-
"homepage": "https://github.com/darron1217/react-native-background-geolocation#readme",
44+
"homepage": "https://github.com/hariks789/react-native-background-geolocation#readme",
4145
"dependencies": {
4246
"plist": "^3.0.1"
4347
},

react-native.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ module.exports = {
66
}
77
},
88
hooks: {
9-
postlink: "node ./node_modules/@darron1217/react-native-background-geolocation/scripts/postlink.js",
10-
postunlink: "node ./node_modules/@darron1217/react-native-background-geolocation/scripts/postunlink.js"
9+
postlink: "node ./node_modules/@hariks789/react-native-background-geolocation/scripts/postlink.js",
10+
postunlink: "node ./node_modules/@hariks789/react-native-background-geolocation/scripts/postunlink.js"
1111
}
1212
}
1313
};

0 commit comments

Comments
 (0)