This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
Hi Everybody,
1. If I have a code (or library) I previously developed in Objective-C, Swift or Java/Kotlin ..
Can I re-use this library in my KONY project?
2. Could this code (or library) (question. #1) only consist of Bussiness logic or could it also include customized/extended Native UI components?
(Let's say a specific "Login" page component ?)
3. Opposite direction question: I have an application developed using KONY . Can I wrap a part of this app somehow (as a Native OS library, for example) to be re-used in my iOS or Android native code apps?
Yes, you can use the code written in Objective-C or Swift in your Kony project, using FFI. For more information about FFI refer http://docs.kony.com/6_5/konylibrary/studio/studio_user_guide/Content/Foreign_Function_Interface_JS.htm and https://basecamp.kony.com/s/question/0D56A00000AnrgWSAR/using-objectivec-and-swift-together-in-kony-visualizer-ios-ffi.
The code can include customized/ extended Native UI components as well as custom widgets. For more information about custom widgets, refer http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/Using_Custom_Widgets.htm.
Yes, you can wrap your Kony project and re-use it in your iOS or Android native code apps. For more information on how to do so, refer http://docs.kony.com/konylibrary/visualizer/visualizer_user_guide/Content/Build_nativeLibrary.htm.
If you are talking about FFI integration ... for (1 & 2) it still states a limitation (at least for v6.5) : " .....Custom widgets cannot be consumed through FFI. .."
So its kind of confusing ...
Let's imagine I have a custom UI component (widget) extended from a native OS UI component ... Can I still reuse this one in KONY Environment ?
(FYI : I am not talking here about VIsualizer only ... Correct me if I am wrong .. but once you started to develop a real KONY Application using JS ., there are no way you can go back to Visualizer (Free Prototyping tool for any environment , not only KONY)
#2 Here you are talking about Visualizer .. and its confusing again ... My question was regarding KONY environment ... after Prototyping phase is completed and application is going through JS development phase ...
#3 The same issue as per #2 .... My question was regarding a delivered KONY based app where developers utilized all modules using JS.
and Visualizer has nothing to do with this step ...
#2 Our IDE name for version 6.5 is Kony Studio, but from 7.0 it is Kony Visualizer.
For V6.5, you cannot use both FFI and Custom widgets together. However, you can use either FFI or Custom widgets.
FFI and Custom widgets can be used together from V7.2
#3 Although it is a delivered Kony app, you cannot re-use it in your Android or iOS native code apps, since V6.5 is EOL version. It is possible using native librabries, only in the latest version of Visualizer.
V6.5 is EOL version. We recommend you to update your Visualizer to the latest version, to avail all the exciting features. Here is the link https://community.kony.com/downloads
Since, for no reason you assumed I am using v6.5 ,the response to my question,it led to the confusion again ..
Let's imagine I have the latest version (v8.2) .. Can you clearly confirm an answers to my original questions bellow :
1. If I have a code (or library) I previously developed in Objective-C, Swift or Java/Kotlin ..
Can I re-use this library in my KONY project?
(?)#1 Yes , using FFI and also applicable for extended Native OS UI components (from v7.2)
Is this correct ?
2. Could this code (or library) (question. #1) only consist of Business logic or could it also include customized/extended Native UI components?
(Let's say a specific "Login" page component ?)
(?) #2 Yes , from v7.2
Is this correct ?
3. Opposite direction question: I have an application developed using KONY . Can I wrap a part of this app somehow (as a Native OS library, for example) to be re-used in my iOS or Android native code apps?
(?)#3 No, I can't re-use a modules developed using JS in KONY environment (Visualizer) , for example as a separately exported library, in my Native OS apps .
3)Yes in the latest version. If you have an application developed in Kony, you can wrap it into an iOS or Android application. This feature is not available in the older versions of Kony.
Here is a video that can help you in creating it: https://youtu.be/nYluV1C1Kc4
You can also refer the following documentation for more information.