Skip to content

Commit 7b8a5a8

Browse files
committed
Use NearBee iOS dynamic framework
1 parent c5c12ff commit 7b8a5a8

File tree

5 files changed

+40
-28
lines changed

5 files changed

+40
-28
lines changed

RNNearbee.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ Pod::Spec.new do |s|
2525
s.dependency 'React-RCTNetwork'
2626
s.dependency 'React-RCTText'
2727

28-
s.dependency 'NearBee', '0.4.0'
28+
s.dependency 'NearBee', '3.2.7-beta1'
2929
end

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-nearbee",
3-
"version": "3.3.0",
3+
"version": "3.3.1-beta.0",
44
"description": "NearBee SDK for your react native applications",
55
"main": "index.js",
66
"scripts": {

sample_app/ios/Podfile

+12
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
55
permissions_path = '../node_modules/react-native-permissions/ios'
66

77
target 'sample_app' do
8+
9+
use_frameworks!
10+
pre_install do |installer|
11+
installer.pod_targets.each do |pod|
12+
if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
13+
def pod.build_type;
14+
Pod::BuildType.static_library # I assume you use CocoaPods >= 1.9
15+
end
16+
end
17+
end
18+
end
19+
820
config = use_native_modules!
921
use_react_native!(:path => config["reactNativePath"])
1022
pod 'NearBee'

sample_app/ios/Podfile.lock

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ PODS:
2020
- DoubleConversion
2121
- glog
2222
- glog (0.3.5)
23-
- NearBee (0.4.0):
23+
- NearBee (3.2.7-beta1):
2424
- EddystoneScanner
2525
- Socket.IO-Client-Swift
2626
- Permission-BluetoothPeripheral (2.1.5):
@@ -259,8 +259,8 @@ PODS:
259259
- React-jsi (= 0.63.2)
260260
- RNCAsyncStorage (1.6.2):
261261
- React
262-
- RNNearBee (3.2.0-beta.2):
263-
- NearBee (= 0.4.0)
262+
- RNNearBee (3.3.0):
263+
- NearBee (= 3.2.7-beta1)
264264
- React-Core
265265
- React-cxxreact
266266
- React-RCTAnimation
@@ -402,7 +402,7 @@ SPEC CHECKSUMS:
402402
FBReactNativeSpec: dc7fa9088f0f2a998503a352b0554d69a4391c5a
403403
Folly: b73c3869541e86821df3c387eb0af5f65addfab4
404404
glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
405-
NearBee: 05cd6aa84b07bfecb2cd12b314f8cf96a2a31198
405+
NearBee: 45c5ca44ad5c5ae474537108e94717763187ddbb
406406
Permission-BluetoothPeripheral: 4663a8373072abfe3099c44cb06bf10b0c16c110
407407
Permission-LocationAlways: 155e6251b757b380f6354737cae8e8d59c472495
408408
Permission-LocationWhenInUse: 3624cf08c12c6019926aba3054efee7f4f8ee91e
@@ -428,13 +428,13 @@ SPEC CHECKSUMS:
428428
React-RCTVibration: 4d2e726957f4087449739b595f107c0d4b6c2d2d
429429
ReactCommon: a0a1edbebcac5e91338371b72ffc66aa822792ce
430430
RNCAsyncStorage: 60a80e72d95bf02a01cace55d3697d9724f0d77f
431-
RNNearBee: 0544830d3768414091831453602ea2c859164436
431+
RNNearBee: faeb0f520c5d3a737fb2823572e3273f5fff9dc6
432432
RNPermissions: ad71dd4f767ec254f2cd57592fbee02afee75467
433433
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
434434
Socket.IO-Client-Swift: 1e3e3a1f09f3312a167f0d781eb2f383d477357c
435435
Starscream: 4bb2f9942274833f7b4d296a55504dcfc7edb7b0
436436
Yoga: 7740b94929bbacbddda59bf115b5317e9a161598
437437

438-
PODFILE CHECKSUM: e9708e49f78e85df5df3d93402724c482fac8d66
438+
PODFILE CHECKSUM: 9f11c46d86436ba87f0988fa56d5aa87c1063fdb
439439

440440
COCOAPODS: 1.9.0

sample_app/ios/sample_app.xcodeproj/project.pbxproj

+20-20
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
1212
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1313
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14+
58D8913A90D5EB126AC8EAF8 /* Pods_sample_app.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 392C283AB41EB266043D1ECA /* Pods_sample_app.framework */; };
1415
BEFA55E7246A7E8400D540C7 /* Dummy.swift in Sources */ = {isa = PBXBuildFile; fileRef = BEFA55E6246A7E8400D540C7 /* Dummy.swift */; };
15-
FA26281DD122F4F58A6B0A70 /* libPods-sample_app.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8C7BC70C302ABC83CDAD7264 /* libPods-sample_app.a */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXFileReference section */
@@ -26,8 +26,8 @@
2626
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = sample_app/Images.xcassets; sourceTree = "<group>"; };
2727
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = sample_app/Info.plist; sourceTree = "<group>"; };
2828
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = sample_app/main.m; sourceTree = "<group>"; };
29+
392C283AB41EB266043D1ECA /* Pods_sample_app.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_sample_app.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2930
5DF3FCEEEDCB07C4344C6A11 /* Pods-sample_app.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-sample_app.debug.xcconfig"; path = "Target Support Files/Pods-sample_app/Pods-sample_app.debug.xcconfig"; sourceTree = "<group>"; };
30-
8C7BC70C302ABC83CDAD7264 /* libPods-sample_app.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-sample_app.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3131
BE0F87F92523136200493E20 /* RNNearBee.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = RNNearBee.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3232
BE0F87FD2523137100493E20 /* NearBee.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = NearBee.framework; path = Pods/NearBee/NearBee/NearBee.framework; sourceTree = "<group>"; };
3333
BE57A5B2252DF09E00EA5FDD /* libEddystoneScanner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libEddystoneScanner.a; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -45,7 +45,7 @@
4545
isa = PBXFrameworksBuildPhase;
4646
buildActionMask = 2147483647;
4747
files = (
48-
FA26281DD122F4F58A6B0A70 /* libPods-sample_app.a in Frameworks */,
48+
58D8913A90D5EB126AC8EAF8 /* Pods_sample_app.framework in Frameworks */,
4949
);
5050
runOnlyForDeploymentPostprocessing = 0;
5151
};
@@ -93,7 +93,7 @@
9393
BEFA55DD2468469B00D540C7 /* libRNNearBee.a */,
9494
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
9595
ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
96-
8C7BC70C302ABC83CDAD7264 /* libPods-sample_app.a */,
96+
392C283AB41EB266043D1ECA /* Pods_sample_app.framework */,
9797
);
9898
name = Frameworks;
9999
sourceTree = "<group>";
@@ -152,7 +152,7 @@
152152
13B07F8C1A680F5B00A75B9A /* Frameworks */,
153153
13B07F8E1A680F5B00A75B9A /* Resources */,
154154
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
155-
35C645F59AE793A33E8BD6E6 /* [CP] Copy Pods Resources */,
155+
83D194B91AD9B94BC97748E5 /* [CP] Embed Pods Frameworks */,
156156
);
157157
buildRules = (
158158
);
@@ -227,43 +227,43 @@
227227
shellPath = /bin/sh;
228228
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh";
229229
};
230-
35C645F59AE793A33E8BD6E6 /* [CP] Copy Pods Resources */ = {
230+
7BE3C70689E4518286CB972F /* [CP] Check Pods Manifest.lock */ = {
231231
isa = PBXShellScriptBuildPhase;
232232
buildActionMask = 2147483647;
233233
files = (
234234
);
235235
inputFileListPaths = (
236-
"${PODS_ROOT}/Target Support Files/Pods-sample_app/Pods-sample_app-resources-${CONFIGURATION}-input-files.xcfilelist",
237236
);
238-
name = "[CP] Copy Pods Resources";
237+
inputPaths = (
238+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
239+
"${PODS_ROOT}/Manifest.lock",
240+
);
241+
name = "[CP] Check Pods Manifest.lock";
239242
outputFileListPaths = (
240-
"${PODS_ROOT}/Target Support Files/Pods-sample_app/Pods-sample_app-resources-${CONFIGURATION}-output-files.xcfilelist",
243+
);
244+
outputPaths = (
245+
"$(DERIVED_FILE_DIR)/Pods-sample_app-checkManifestLockResult.txt",
241246
);
242247
runOnlyForDeploymentPostprocessing = 0;
243248
shellPath = /bin/sh;
244-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-sample_app/Pods-sample_app-resources.sh\"\n";
249+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
245250
showEnvVarsInLog = 0;
246251
};
247-
7BE3C70689E4518286CB972F /* [CP] Check Pods Manifest.lock */ = {
252+
83D194B91AD9B94BC97748E5 /* [CP] Embed Pods Frameworks */ = {
248253
isa = PBXShellScriptBuildPhase;
249254
buildActionMask = 2147483647;
250255
files = (
251256
);
252257
inputFileListPaths = (
258+
"${PODS_ROOT}/Target Support Files/Pods-sample_app/Pods-sample_app-frameworks-${CONFIGURATION}-input-files.xcfilelist",
253259
);
254-
inputPaths = (
255-
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
256-
"${PODS_ROOT}/Manifest.lock",
257-
);
258-
name = "[CP] Check Pods Manifest.lock";
260+
name = "[CP] Embed Pods Frameworks";
259261
outputFileListPaths = (
260-
);
261-
outputPaths = (
262-
"$(DERIVED_FILE_DIR)/Pods-sample_app-checkManifestLockResult.txt",
262+
"${PODS_ROOT}/Target Support Files/Pods-sample_app/Pods-sample_app-frameworks-${CONFIGURATION}-output-files.xcfilelist",
263263
);
264264
runOnlyForDeploymentPostprocessing = 0;
265265
shellPath = /bin/sh;
266-
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
266+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-sample_app/Pods-sample_app-frameworks.sh\"\n";
267267
showEnvVarsInLog = 0;
268268
};
269269
FD10A7F022414F080027D42C /* Start Packager */ = {

0 commit comments

Comments
 (0)