Giter Site home page Giter Site logo

Capacitor v4 support? about http HOT 4 CLOSED

ptmkenny avatar ptmkenny commented on September 27, 2024
Capacitor v4 support?

from http.

Comments (4)

dallastjames avatar dallastjames commented on September 27, 2024 5

Hello!

We have no plans to update this plugin to support Capacitor v4, rather our efforts have been focused on building out the new official HTTP plugin. While I don't have any official timeline I can share, it is well underway!

from http.

thomasvidas avatar thomasvidas commented on September 27, 2024 2

I'm not sure if the official Http plugin will work with 4.0, or if will just be built into the Capacitor runtime itself. There were a few ideas bounced back and forth when I was still on the team. I could release another version based on #275 if the official plugin won't support 4.0, but rather 4.1+. Any insights on this @dallastjames?

from http.

amuttsch avatar amuttsch commented on September 27, 2024 1

We use this plugin using capacitor v4 successfully. We had to patch the min iOS version however. Otherwise it works great!

Heres the patchfile:

diff --git a/CapacitorCommunityHttp.podspec b/CapacitorCommunityHttp.podspec
index c6d63200fd261e4b6fac8ef4a920013ae89a3590..55a39a0a95a860c50ff3ea652038699311bedaf1 100644
--- a/CapacitorCommunityHttp.podspec
+++ b/CapacitorCommunityHttp.podspec
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
   s.author = package['author']
   s.source = { git: package['repository']['url'], tag: s.version.to_s }
   s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
-  s.ios.deployment_target = '12.0'
+  s.ios.deployment_target = '13.0'
   s.dependency 'Capacitor'
   s.swift_version = '5.1'
 end
diff --git a/ios/Podfile b/ios/Podfile
index c0c11bda69005b23ad445551a1580d875e357ffd..95bd006cb57d21e930cf1d9d8adeb016c9131658 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -1,4 +1,4 @@
-platform :ios, '12.0'
+platform :ios, '13.0'
 
 def capacitor_pods
   # Comment the next line if you're not using Swift and don't want to use dynamic frameworks

from http.

ptmkenny avatar ptmkenny commented on September 27, 2024

The official HTTP plugin was added in Capacitor 4.3, and there is a now outdated release for this plugin, so I'm closing this issue.

from http.

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.