Skip to content

Commit 1c9a631

Browse files
committed
Squashed commit of the following:
commit f7de9769741faa9f4b49bde52073ea0f27ed24f6 Merge: b416cea 2b3b588 Author: Marian Hello <[email protected]> Date: Tue Aug 27 12:51:00 2019 +0200 Merge branch 'PR' of https://github.com/hugosbg/react-native-background-geolocation into hugosbg-PR commit 2b3b588 Author: Hugo Gomes <[email protected]> Date: Wed Aug 21 19:06:20 2019 -0300 fix all commit 47714a8 Author: Hugo Gomes <[email protected]> Date: Wed Aug 21 18:35:37 2019 -0300 teste commit fe8ecea Author: Hugo Gomes <[email protected]> Date: Wed Aug 21 18:31:28 2019 -0300 add podspec commit 3f9b1c4 Author: Hugo Gomes <[email protected]> Date: Wed Aug 21 16:20:37 2019 -0300 Fix RCTBridgeModule.h file not found | rnpm deprecated
1 parent b416cea commit 1c9a631

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'json'
2+
3+
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4+
5+
Pod::Spec.new do |s|
6+
s.name = "@mauron85_react-native-background-geolocation"
7+
s.version = package['version']
8+
s.summary = package['description']
9+
s.license = package['license']
10+
11+
s.authors = package['author']
12+
s.homepage = package['homepage']
13+
s.platform = :ios, "9.0"
14+
15+
s.source = { :git => "https://github.com/mauron85/react-native-background-geolocation.git", :submodules => true }
16+
s.source_files = "ios/**/*.{h,m}"
17+
s.exclude_files = "ios/common/BackgroundGeolocationTests/*.{h,m}"
18+
19+
s.dependency 'React'
20+
end

ios/RCTBackgroundGeolocation.xcodeproj/project.pbxproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@
302302
"$(inherited)",
303303
"$(SRCROOT)/../../../React/**",
304304
"$(SRCROOT)/../../react-native/React/**",
305-
"$(SRCROOT)/react-native/React/**",
306-
"$(SRCROOT)/../../../ios/Pods/Headers/Public/**",
305+
"$(SRCROOT)/../../../../ios/Pods/Headers/Public/**",
307306
);
308307
OTHER_LDFLAGS = "-ObjC";
309308
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -318,8 +317,7 @@
318317
"$(inherited)",
319318
"$(SRCROOT)/../../../React/**",
320319
"$(SRCROOT)/../../react-native/React/**",
321-
"$(SRCROOT)/react-native/React/**",
322-
"$(SRCROOT)/../../../ios/Pods/Headers/Public/**",
320+
"$(SRCROOT)/../../../../ios/Pods/Headers/Public/**",
323321
);
324322
OTHER_LDFLAGS = "-ObjC";
325323
PRODUCT_NAME = "$(TARGET_NAME)";

react-native.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
dependency: {
3+
platforms: {
4+
android: {
5+
sourceDir: "./android/lib"
6+
}
7+
},
8+
hooks: {
9+
postlink: "./node node_modules/@mauron85/react-native-background-geolocation/scripts/postlink.js",
10+
postunlink: "./node node_modules/@mauron85/react-native-background-geolocation/scripts/postunlink.js"
11+
}
12+
}
13+
};

0 commit comments

Comments
 (0)