Open Lelelo1 opened 3 years ago
To setup haxe -> swift
watchos.xml
eg two times:
haxelib install build.hxml
haxe build.hxml
Drag libMain.a
and Main.h
into the Xcode project,
When watchos
: drag it to ProjectName WatchKit Extension set other linker flags
to -lc++
Create a bridging.h
file in the folder of libMain.a
and Main.h
- set it in settings:
And you should be able to run the xcode swift project
For .Net target:
....
I'ts that simple!
Instructions for services & multi targeting
Prepare native implementations extending the native class. Create an interface for what is needed by your application and let all the native implementations implement it.
.. where A, B and C represents different platforms
Register during initialisation:
Later anywhere in the code, get service with implementation of the runtime platform:
See tests for dep usage: https://github.com/Lelelo1/seek-search/blob/master/src/DepTests.hx#L33
This is related to the Xamarin DependencyService, and was initially aimed to be used with #13. It can be tweaked and be used for internal haxe dependences