Comments (19)
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.
Awesome! Thanks so much! I will be testing this tomorrow @pantuspavel
from deeplinkkit.
@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.
@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.
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.
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.
+1, In the same seat as @borek2.
from deeplinkkit.
@chrismaddern Will look into it! Thanks for the help!
from deeplinkkit.
I'm in the same situation. Hope you're able to sort it out asap
from deeplinkkit.
It seems to work
from deeplinkkit.
Anyone got this working using Pods?
from deeplinkkit.
@doohoo Hi!
PR in question was merged into master.
Please try:
pod 'DeepLinkKit', :git => '[email protected]:button/DeepLinkKit.git', :branch => 'master'
from deeplinkkit.
We restored fix branch, so you can try:
pod 'DeepLinkKit', :git => '[email protected]:button/DeepLinkKit.git', :branch => 'pavel/111_registerHandlerClass_swift3_interface'
from deeplinkkit.
@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.
@doohoo , seems like server rejects your connection.
Have you gone through this guide?
from deeplinkkit.
Hehe, something is messup. Will check it out
from deeplinkkit.
@pantuspavel just went for the https
way instead :)
Thanks for your help.
from deeplinkkit.
No problem!
Glad it worked out for you.
from deeplinkkit.
Sorry this took so long. The change is available now in 1.2.2
from deeplinkkit.
Related Issues (20)
- Xcode 8.3 beta compilation fails HOT 18
- Support Swift 3.0
- Can I use this library in my Swift 3 project? HOT 1
- Matching regex paths HOT 2
- unrecognized selector configureWithDeepLink: HOT 1
- Regular Expression with (?: exp), can't init DPLRegularExpression HOT 2
- tvOS Support HOT 7
- Stops on first route matches even if it doesn't handle it HOT 2
- [Bug] Parsing URL with hashbang (#!)
- hi
- hiοΌin swift sample,the bridging -header.h no found the import of DPLproduce etc.
- Wrong route parameters when using alternation in a route handler
- Non-capturing groups not supported
- Handling URL's which has URL inside. HOT 3
- ERROR ITMS-90362 The minimum value is 8.0 for MinimumOSVersion HOT 2
- Is it possible to register route without case-sensitive? HOT 1
- Minimum value for OS support should be 8.0
- query parameter has base64string HOT 1
- Empty query parameter when url containing special character
- Link to documentation does not work
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 deeplinkkit.