Nativescript: Cross platform code maintenance in a native script project

Created on 26 May 2020  路  3Comments  路  Source: NativeScript/NativeScript

We work on a cross platform mobile app development framework and face a lot of issues with code duplication across multiple file formats. Our framework is built on top of the NativeScript framework and hence we have code written in TypeScript,Java(Android) and Swift/ObjectiveC (iOS). What we observe is that in order to support cross platform support any feature , sometimes the same code ( not exactly duplicate since its written in different languages) i.e code containing same logic is written across all these 3 layers. This introduces a lot of maintenance overhead and leads to lot of regression issues .

Hence wanted to check :

  1. Does the native-script development team also face similar issues when you work on any new feature or fix a bug ?

  2. Does the native-script development team use any tools that identifies duplicate coding to alert the developer to find and fix/update all places ? I assume even the native-script framework development would involve coding in all 3 layers - typescript , java/kotlin , swift.

  3. Are there any best practices that you recommend for better code maintenance in a cross platform mobile app development project ?

in progress

Most helpful comment

Please post the outcome of this discussion here, because I think there are a lot of developers interested in the answers to these questions.

All 3 comments

@kamath-prasad Hi 馃憢 - these are all great questions. Perhaps better to chat via Zoom about some of them? Let us know if a time this upcoming week works to chat about this further.

@NathanWalker - Sure , we can get on a call and discuss this.

How about 9:30 AM PT on June 9th ?

You can send the zoom details to my email id - prasad.[email protected] .

Please post the outcome of this discussion here, because I think there are a lot of developers interested in the answers to these questions.

Was this page helpful?
0 / 5 - 0 ratings