I am doing a POC on Silver to see if it can be beneficial to deploy our iOS native Swift App on other Platform.
I try to build a cross-platform static library with Silver by shipping those code written with Swift on Xcode to Silver. I had created one Shared project and three different platforms library project. Then I try my best afford to fix those syntax error on Fire.
However, I am defeated by the following issues:
Array count is not support on Android
Array count is okay for Cocoa. but it is not compilable when try to compile for Android project.
protocol is not well support on Cocoa
In Silver:
protocol FormatHelperProtocol {
func formatCurrency(amount: Double) -> String
func formatCurrency(amount: Double, fractionDigits: Int) -> String
}
In the library header of .a , it just have a empty protocol
@protocol FormatHelperProtocol
@end
I had tried put public on the method of protocol to Silver, but it is not compilable on Silver. I think it is just not a valid syntax
Sugar.reflection on Cocoa
I am not sure if the reflection in Sugar is trying to handle the reflection of the class, i.e. I can get all the property names in a given class by that. But it seems not work for Silver on Cocoa at the moment.
Sugar.Data.JSON for all Platform
Similar to the reflection, it seems also not completed for Silver. right
Besides the above, I also got the problems mentioned at
http://talk.remobjects.com/t/issue-on-sugar-datetime/6365
http://talk.remobjects.com/t/nsobject-is-an-unknown-identifier-on-swift-net-console-app/5834
I don’t know if I miss any thing. May be there are other work arround,
I know Sugar, Silver and Fire are all on beta now. I just wish the above can be aware by you. and waiting for your next release. And looking forward the integration of Swift 2.0.
Sam