Giter Site home page Giter Site logo

Comments (19)

pavelpantus avatar pavelpantus commented on May 31, 2024 8

Hi @borek2 , thanks for reporting the issue.
This branch should fix the problem.
You can try it like this:

pod 'DeepLinkKit', :git => '[email protected]:button/DeepLinkKit.git', :branch => 'pavel/111_registerHandlerClass_swift3_interface'

from deeplinkkit.

borek2 avatar borek2 commented on May 31, 2024 3

Awesome! Thanks so much! I will be testing this tomorrow @pantuspavel

from deeplinkkit.

chrismaddern avatar chrismaddern commented on May 31, 2024 1

@doohoo @borek2 It looks likely that there may have to be an interface change and bump to 2.0.0 for support for Xcode 8 / Swift 3.

We'll take a look in the early week and try to get something out asap!

In the meantime, if either of you find a sensible interface change that works, feel free to fork / share.

from deeplinkkit.

chrismaddern avatar chrismaddern commented on May 31, 2024

@borek2 I'm assuming that the header is in swift syntax because it was run through a Swift conversion? It looks like that converter made an error on interpreting the registerHandlerClass: method... although I'm not entirely sure why.

How is DLK being imported? With an umbrella header import you should be able to leave this as Objective C syntax, no?

from deeplinkkit.

borek2 avatar borek2 commented on May 31, 2024

Thanks for the quick reply @chrismaddern !

I have added DeepLinkKit as a static library now (to use the Objective C syntax as you proposed), and it still gives problems. The actual function is there now, but i am not able to get a reference to it. With some trial and error (I am not very skillful in Objective-C) i noticed the following:

This is the line that gives problems:

- (void)registerHandlerClass:(Class <DPLRouteHandler>)handlerClass forRoute:(NSString *)route;

When i use another class in instead of DPLRouteHandler it works fine (as, i can reference to it). But here is when it will cause problems. If you use a protocol (i created a new one to test this), it will fail to make a reference.

Sorry if it sounds a little vague, i only program in Swift so Objective C is sometimes a little vague to me. Might this problem have something to do with xCode 8?

from deeplinkkit.

borek2 avatar borek2 commented on May 31, 2024

Again it might be my lack of knowledge of Objective C, though in my understanding within the code DPLRouteHandler is both a protocol and a class? It is declared as a protocol in the file DPLDeepLinkRouter.h. But it has a class implementation in DPLRouteHandler.h and DPLRouteHandler.m (this shouldnt be allowed right, again maybe in Objective C i am missing something ;)). Is it a naming problem maybe? I think he is unable to infer DPLRouteHandler as a protocol

from deeplinkkit.

doohoo avatar doohoo commented on May 31, 2024

+1, In the same seat as @borek2.

from deeplinkkit.

borek2 avatar borek2 commented on May 31, 2024

@chrismaddern Will look into it! Thanks for the help!

from deeplinkkit.

aborren avatar aborren commented on May 31, 2024

I'm in the same situation. Hope you're able to sort it out asap πŸ‘

from deeplinkkit.

aborren avatar aborren commented on May 31, 2024

It seems to work πŸ‘ Thanks @pantuspavel

from deeplinkkit.

doohoo avatar doohoo commented on May 31, 2024

Anyone got this working using Pods?

from deeplinkkit.

pavelpantus avatar pavelpantus commented on May 31, 2024

@doohoo Hi!
PR in question was merged into master.
Please try:

pod 'DeepLinkKit', :git => '[email protected]:button/DeepLinkKit.git', :branch => 'master'

from deeplinkkit.

pavelpantus avatar pavelpantus commented on May 31, 2024

We restored fix branch, so you can try:

pod 'DeepLinkKit', :git => '[email protected]:button/DeepLinkKit.git', :branch => 'pavel/111_registerHandlerClass_swift3_interface'

from deeplinkkit.

doohoo avatar doohoo commented on May 31, 2024

@pantuspavel it didn't go to well.

Basically get:

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Thanks for your time and help.

from deeplinkkit.

pavelpantus avatar pavelpantus commented on May 31, 2024

@doohoo , seems like server rejects your connection.
Have you gone through this guide?

from deeplinkkit.

doohoo avatar doohoo commented on May 31, 2024

Hehe, something is messup. Will check it out πŸ‘€ . Thanks.

from deeplinkkit.

doohoo avatar doohoo commented on May 31, 2024

@pantuspavel just went for the https way instead :)
Thanks for your help.

from deeplinkkit.

pavelpantus avatar pavelpantus commented on May 31, 2024

No problem!
Glad it worked out for you.

from deeplinkkit.

wessmith avatar wessmith commented on May 31, 2024

Sorry this took so long. The change is available now in 1.2.2

from deeplinkkit.

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.