Git Product home page Git Product logo

Comments (21)

georgeburduhos avatar georgeburduhos commented on June 26, 2024 21

When maybe a release will be made here and on react-native-ble-plx?

from multiplatformbleadapter.

menssen avatar menssen commented on June 26, 2024 13

@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:

  1. I added pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9' to our project's main Podfile.
  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)
  3. node_modules/react-native-ble-plx/ios/Podfile seems to be irrelevant.

from multiplatformbleadapter.

rnapier avatar rnapier commented on June 26, 2024 7

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.

t3db0t avatar t3db0t commented on June 26, 2024 7

OK, I solved it by:

  1. using pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9' in ios/Podfile
  2. In node_modules/react-native-ble-plx/react-native-ble-plx.podspec change 0.1.7 to 0.1.9

from multiplatformbleadapter.

below avatar below commented on June 26, 2024 6

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.lockto 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.

below avatar below commented on June 26, 2024 4

Whatever works for you ;) All I can hope the fix is accepted soon so we can stop patching …

from multiplatformbleadapter.

yeonwooz avatar yeonwooz commented on June 26, 2024 4

@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:

  1. I added pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9' to our project's main Podfile.
  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)
  3. node_modules/react-native-ble-plx/ios/Podfile seems to be irrelevant.

Thank you!

If someone meets compatibility error while following @menseen 's way

image

you can try this

pod update
pod repo update
pod install

from multiplatformbleadapter.

tmorone-rezi avatar tmorone-rezi commented on June 26, 2024 2

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.

xiehui999 avatar xiehui999 commented on June 26, 2024 2

OK, I solved it by:

  1. using pod 'MultiplatformBleAdapter', :git => 'https://github.com/below/MultiPlatformBleAdapter', :tag => '0.1.9' in ios/Podfile
  2. 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.

wildseansy avatar wildseansy commented on June 26, 2024 1

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.

diogoviannaaraujo avatar diogoviannaaraujo commented on June 26, 2024 1

@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.

dokinkon avatar dokinkon commented on June 26, 2024 1

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.

below avatar below commented on June 26, 2024

I have created a pull request for the issue: #80

from multiplatformbleadapter.

srgtuszy avatar srgtuszy commented on June 26, 2024

Thanks for contributing! PR has been merged

from multiplatformbleadapter.

korykehl avatar korykehl commented on June 26, 2024

Hey @srgtuszy do you know of an eta of when this might make it into react-native-ble-plx?

from multiplatformbleadapter.

korykehl avatar korykehl commented on June 26, 2024

@georgeburduhos have you found a work around for this in the mean time?

from multiplatformbleadapter.

georgeburduhos avatar georgeburduhos commented on June 26, 2024

@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 avatar yeonwooz commented on June 26, 2024

@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.

t3db0t avatar t3db0t commented on June 26, 2024

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.

kofkgoing avatar kofkgoing commented on June 26, 2024

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'

from multiplatformbleadapter.

below avatar below commented on June 26, 2024

It is still not released? 🤯

from multiplatformbleadapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.