blackberry / BlackBerry-Dynamics-React-Native-SDK

An open source plugin for BlackBerry Dynamics SDK with React Native support. BlackBerry Dynamics: https://developers.blackberry.com/us/en/products/blackberry-dynamics.html React Native: http://reactnative.dev
13 stars 18 forks source link

BlackBerry Dynamics SDK v9 #15

Closed orlandodemauro closed 3 years ago

orlandodemauro commented 3 years ago

hello,

in the documentation is mentioned that the package support BlackBerry Dynamics SDK for iOS v8.1 and BlackBerry Dynamics SDK for Android v8.1.

does BlackBerry-Dynamics-React-Native-SDK support BlackBerry Dynamics SDK 9?

thank you

orlandodemauro commented 3 years ago

@MSohm @volodymyrtaliar sorry for mentioning you but i think you are the only one that can help me with my question :)

volodymyrtaliar commented 3 years ago

Hi @orlandodemauro. Yes, BlackBerry-Dynamics-React-Native-SDK supports BlackBerry Dynamics SDK for iOS and Android v9.0. @MSohm I'll create a pull request with appropriate updates to README.

orlandodemauro commented 3 years ago

@volodymyrtaliar thank you :) another quick question if you don't mind. it is not really clear to me if to use bb dynamics i just need to install the IOS SDK and then the react native SDK or do i need as well to follow the "existing app" setup described here https://developers.blackberry.com/us/en/resources/get-started/blackberry-dynamics-getting-started.html?platform=ios#step-3. I'm using a bare workflow expo app.

MSohm commented 3 years ago

You'll need to install the React Native SDK as well as that BlackBerry Dynamics iOS and Android SDKs. You do not need to follow those existing app steps, the ones you linked to are for native apps only. Instead, follow the instructions in the React Native readme.

orlandodemauro commented 3 years ago

@MSohm thank you for your reply. I asked because following the instruction in the READMe is not possible to run the app, i just tried again from scratch but the build fails. I was able to run the app only adding manually the frameworks required, as described in the link i sent. i don't know what i'm doing wrong

MSohm commented 3 years ago

What error are you getting and from which step in the readme?

orlandodemauro commented 3 years ago

react native 0.63.4 xcode 12 IOS SDK v9 node v12.20.0

d /Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/bbtest.app/bbtest normal (in target 'bbtest' from project 'bbtest')
    cd /Users/orlandodemauro/code/bbtest/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios10.0-simulator -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/BbdRNBase -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/CocoaAsyncSocket -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/DoubleConversion -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/FBReactNativeSpec -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Flipper -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Flipper-DoubleConversion -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Flipper-Folly -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Flipper-Glog -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Flipper-PeerTalk -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Flipper-RSocket -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/FlipperKit -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Folly -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/RCTTypeSafety -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-Core -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-CoreModules -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTAnimation -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTBlob -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTImage -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTLinking -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTNetwork -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTSettings -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTText -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-RCTVibration -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-cxxreact -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-jsi -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-jsiexecutor -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/React-jsinspector -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/ReactCommon -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/Yoga -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/YogaKit -L/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/glog -L/Users/orlandodemauro/code/bbtest/ios/Pods/CocoaLibEvent/lib -F/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator -F/Users/orlandodemauro/code/bbtest/ios/Pods/OpenSSL-Universal/Frameworks -F/Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/OpenSSL -filelist /Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Intermediates.noindex/bbtest.build/Debug-iphonesimulator/bbtest.build/Objects-normal/x86_64/bbtest.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Intermediates.noindex/bbtest.build/Debug-iphonesimulator/bbtest.build/Objects-normal/x86_64/bbtest_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lBbdRNBase -lCocoaAsyncSocket -lDoubleConversion -lFBReactNativeSpec -lFlipper -lFlipper-DoubleConversion -lFlipper-Folly -lFlipper-Glog -lFlipper-PeerTalk -lFlipper-RSocket -lFlipperKit -lFolly -lRCTTypeSafety -lReact-Core -lReact-CoreModules -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lReactCommon -lYoga -lYogaKit -levent -levent_core -levent_extra -levent_pthreads -lglog -lstdc++ -framework AudioToolbox -framework CFNetwork -framework JavaScriptCore -framework MobileCoreServices -framework OpenSSL -framework Security -framework UIKit -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Intermediates.noindex/bbtest.build/Debug-iphonesimulator/bbtest.build/bbtest.app-Simulated.xcent -lPods-bbtest -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Intermediates.noindex/bbtest.build/Debug-iphonesimulator/bbtest.build/Objects-normal/x86_64/bbtest_dependency_info.dat -o /Users/orlandodemauro/Library/Developer/Xcode/DerivedData/bbtest-ghvcbsbopleruhgdyilsdzavoaej/Build/Products/Debug-iphonesimulator/bbtest.app/bbtest
ld: in /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks//GD.framework/GD(nondga_model.o), building for iOS Simulator, but linking in object file built for free standing, for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

ran

xcrun simctl erase all
rm -rf ~/Library/Developer/Xcode/DerivedData
watchman watch-del-all

didn't help.

orlandodemauro commented 3 years ago

@MSohm closing this as it works now. i was missing the requirement of running $ yarn set-bundle-id the (OPTIONAL) on the right got me confused.

BTW I was also able to install it in a native app created using expo bare workflow, I had to change the scripts. I can open a PR with the changes needed to integrate it in an expo project if you want.

thanks

MSohm commented 3 years ago

Thank you for the offer. Please do open a PR with these changes as well as instructions for the expo version. We'll take a look and decide how we want to integrate this (as a separate branch, readme updates, etc...).