Comments (21)
When maybe a release will be made here and on react-native-ble-plx?
from multiplatformbleadapter.
@below Thanks for publishing the fork with the new tag.
For some reason (I'm somewhat new to Cocoapods so I don't really understand the discrepancy), I had to patch this differently than what you described:
- I added
pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9'
to our project's main Podfile. - I had to patch node_modules/react-native-ble-plx/react-native-ble-plx.podspec (just change 0.1.7 to 0.1.9)
- node_modules/react-native-ble-plx/ios/Podfile seems to be irrelevant.
from multiplatformbleadapter.
With @below's fixes, this is now fairly straightforward to install without any patching. In package.json, use below's branch:
"react-native-ble-plx": "https://github.com/below/react-native-ble-plx",
And in ios/Podfile, use the latest MultiPlatformBleAdatper:
pod 'MultiplatformBleAdapter', :git => 'https://github.com/dotintent/MultiPlatformBleAdapter'
from multiplatformbleadapter.
OK, I solved it by:
- using
pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9'
inios/Podfile
- In
node_modules/react-native-ble-plx/react-native-ble-plx.podspec
change 0.1.7 to 0.1.9
from multiplatformbleadapter.
Here is what we did:
Change line 9 to:
pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1. 9'
In your main directory, execute:
npx patch-package react-native-ble-plx --exclude 'android/build/|package.json$|.DS_Store$'
This will create a patch file in patches/react-native-ble-plx+2.0.2.patch
We had to go ahead and change ios/Podfile.lock
to use MultiplatformBleAdapter (0.1.9)
for the changes to be used in the Xcode project (if anyone has a better idea …)
I have created a push request for the 0.1.9 release here, and once that is accepted will gladly do it for react-native-ble-plx
from multiplatformbleadapter.
Whatever works for you ;) All I can hope the fix is accepted soon so we can stop patching …
from multiplatformbleadapter.
@below Thanks for publishing the fork with the new tag.
For some reason (I'm somewhat new to Cocoapods so I don't really understand the discrepancy), I had to patch this differently than what you described:
- I added
pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9'
to our project's main Podfile.- I had to patch node_modules/react-native-ble-plx/react-native-ble-plx.podspec (just change 0.1.7 to 0.1.9)
- node_modules/react-native-ble-plx/ios/Podfile seems to be irrelevant.
Thank you!
If someone meets compatibility error while following @menseen 's way
you can try this
pod update
pod repo update
pod install
from multiplatformbleadapter.
I tried:
rm -rf Pods
pod cache clean MultiplatformBleAdapter
pod update
pod repo update
pod install
Still get:
[!] CocoaPods could not find compatible versions for pod "MultiplatformBleAdapter":
In Podfile:
flutter_ble_lib (from `.symlinks/plugins/flutter_ble_lib/ios`) was resolved to 2.4.0, which depends on
MultiplatformBleAdapter (~> 0.1.9)
None of your spec sources contain a spec satisfying the dependency: `MultiplatformBleAdapter (~> 0.1.9)`.
You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
* ```
from multiplatformbleadapter.
OK, I solved it by:
- using
pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9'
inios/Podfile
- In
node_modules/react-native-ble-plx/react-native-ble-plx.podspec
change 0.1.7 to 0.1.9
works for me
from multiplatformbleadapter.
My patch file:
diff --git a/node_modules/react-native-ble-plx/react-native-ble-plx.podspec b/node_modules/react-native-ble-plx/react-native-ble-plx.podspec
index def210f..0a92dcc 100644
--- a/node_modules/react-native-ble-plx/react-native-ble-plx.podspec
+++ b/node_modules/react-native-ble-plx/react-native-ble-plx.podspec
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
s.compiler_flags = '-DMULTIPLATFORM_BLE_ADAPTER'
s.dependency 'React'
- s.dependency 'MultiplatformBleAdapter', '0.1.7'
+ s.dependency 'MultiplatformBleAdapter', '0.1.9'
end
For help installing in react-native-ble-plx, explained here: dotintent/react-native-ble-plx#899 (comment)
@below Thanks for publishing the fork with the new tag.
For some reason (I'm somewhat new to Cocoapods so I don't really understand the discrepancy), I had to patch this differently than what you described:
...
2. I had to patch node_modules/react-native-ble-plx/react-native-ble-plx.podspec (just change 0.1.7 to 0.1.9)
...
from multiplatformbleadapter.
@yeonwooz I've been trying to update to 0.1.9 but I keep getting that None of your spec sources contain a spec satisfying the dependency: MultiplatformBleAdapter (= 0.1.9).
pod update, repo update and stuff did not work either.
from multiplatformbleadapter.
Please release 0.1.9 to cocoapods~
In FlutterBleLib, we can not specify git & tag in pod.spec. This really break down product release with Xcode 13 + iOS15
Thank you
from multiplatformbleadapter.
I have created a pull request for the issue: #80
from multiplatformbleadapter.
Thanks for contributing! PR has been merged
from multiplatformbleadapter.
Hey @srgtuszy do you know of an eta of when this might make it into react-native-ble-plx?
from multiplatformbleadapter.
@georgeburduhos have you found a work around for this in the mean time?
from multiplatformbleadapter.
@korykehl
Yes. If you run locally just follow the xcode instructions to fix the library. If you run on CI just make a sh script to replace the code needed to make the fix on each file
from multiplatformbleadapter.
@yeonwooz I've been trying to update to 0.1.9 but I keep getting that
None of your spec sources contain a spec satisfying the dependency: MultiplatformBleAdapter (= 0.1.9).
pod update, repo update and stuff did not work either.
How about removing Pods
directory and Podfile.lock
and then try it again? @diogoviannaaraujo
// at the ios directory
rm -rf Pods
rm -rf Podfile.lock
from multiplatformbleadapter.
I tried @rnapier 's solution but I am getting this error no matter what I do:
[!] CocoaPods could not find compatible versions for pod "MultiplatformBleAdapter":
In Podfile:
MultiplatformBleAdapter (from `https://github.com/dotintent/MultiPlatformBleAdapter`)
react-native-ble-plx (from `../node_modules/react-native-ble-plx`) was resolved to 2.0.2, which depends on
MultiplatformBleAdapter (= 0.1.7)
I tried various combinations of removing /Pods
and Podfile.lock
etc., but nothing seems to help...
from multiplatformbleadapter.
I don't understand why 0.1.9 pod is still not released.
Whose is MultiPlatformBleAdapter pod??
I tried to visit https://github.com/Polidea/MultiPlatformBleAdapter,
but it was redirected to this repository.
pod search MultiPlatformBleAdapter --simple
-> MultiplatformBleAdapter (1.0.0-beta)
An adapter for RxBluetoothKit that exposes consist API to crossplatform libraries
pod 'MultiplatformBleAdapter', '~> 1.0.0-beta'
- Homepage: https://github.com/Polidea/MultiPlatformBleAdapter
- Source: https://github.com/Polidea/MultiPlatformBleAdapter.git
- Versions: 1.0.0-beta, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.0.4, 0.0.3, 0.0.2, 0.0.1 [cocoapods repo]
- 1.0.0-beta, 0.1.8, 0.1.7, 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.0.4, 0.0.3, 0.0.2, 0.0.1 [trunk repo]
from multiplatformbleadapter.
It is still not released? 🤯
from multiplatformbleadapter.
Related Issues (20)
- Some bluetooth devices are no longer showing up after upgrade to 0.2.0 HOT 1
- Why is the Client Characteristic Configuration Descriptor explicitly not allowed? HOT 4
- Add ability to filter on other attributes in ScanFilter (Android)
- Does this allow to build Peripherals? HOT 3
- Android is incorrectly handling multiple scans
- macOS Support HOT 2
- iOS call to writeWithoutResponse is not resolving the Promise
- Implement requestConnectionPriorityForDevice() for iOS
- Consider adding support for Web Bluetooth API? HOT 1
- Leaking BleAdapter HOT 3
- Can I interact between iOS and Android devices? HOT 1
- Outdated RxBluetoothKit
- Release master branch as newest version HOT 6
- Bump RxAndroidBle to support android 12 HOT 2
- duplicate interface definition for class 'MultiPlatformBLEAdapter'
- module map file '/Users/t2b/Library/Developer/Xcode/DerivedData/blem2m-ecdewydnbimghkedqzzpibcfvgxw/Build/Intermediates.noindex/ArchiveIntermediates/blem2m/BuildProductsPath/Release-iphoneos/MultiplatformBleAdapter/MultiplatformBleAdapter.modulemap' not found HOT 3
- Please fix the bug in android 12... targetSdkVersion 31
- it doesn't seem to characteristicUpdates monitor work in iOS
- [1.0.0-beta][Android] io.reactivex.exceptions.UndeliverableException: The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiplatformbleadapter.