The method of remodeling an utility designed for Apple’s working system to perform on Google’s cellular platform entails adapting the code, person interface, and functionalities to align with the goal setting. A sensible illustration is taking a sport initially developed utilizing Swift and rewriting it, or utilizing cross-platform instruments, to function seamlessly on Android gadgets.
This adaptation holds substantial worth, increasing the potential person base by reaching people who make the most of Android gadgets. Traditionally, companies have acknowledged this and undertaken the trouble to maximise market penetration. The benefits embrace elevated income streams, enhanced model visibility, and a broader attain for the companies or merchandise provided by way of the applying.
Consequently, an intensive understanding of the methodologies, challenges, and finest practices related to porting purposes from one cellular ecosystem to a different is crucial. The rest of this dialogue will discover numerous methods and concerns associated to this matter.
1. Codebase Adaptation
Codebase adaptation kinds the foundational step in transitioning an utility from Apple’s iOS ecosystem to Google’s Android platform. It encompasses the modifications and alterations required to make sure the applying’s core performance, logic, and options function successfully throughout the Android setting. The depth and complexity of this adaptation rely considerably on the unique utility’s structure and the instruments utilized for the transition.
-
Language Compatibility
The first problem arises from the distinction in programming languages: Goal-C/Swift for iOS and Java/Kotlin for Android. A direct conversion is mostly infeasible; due to this fact, an entire rewrite within the goal language or the utilization of cross-platform improvement frameworks is critical. For instance, an iOS utility closely reliant on Swift’s particular options requires substantial restructuring or a full port to Java/Kotlin for Android compatibility.
-
Framework and Library Migration
iOS purposes typically depend on particular frameworks and libraries circuitously obtainable on Android. Adapting the codebase entails figuring out equal Android frameworks or libraries that present comparable functionalities. Alternatively, customized implementations could also be required. As an illustration, changing Apple’s Core Knowledge framework with Android’s Room Persistence Library for native knowledge storage necessitates a major refactoring of information entry layers.
-
Architectural Concerns
The underlying structure of the iOS utility should be re-evaluated within the context of Android’s setting. Variations in threading fashions, reminiscence administration, and lifecycle administration require modifications to make sure stability and efficiency on the Android platform. An iOS utility with a single-threaded structure would possibly must be tailored to leverage Android’s multi-threading capabilities to keep away from UI freezes and enhance responsiveness.
-
Cross-Platform Framework Integration
Cross-platform frameworks like React Native or Flutter current an alternate strategy by permitting builders to put in writing code as soon as and deploy it on each iOS and Android. Nevertheless, these frameworks could introduce their very own set of complexities and limitations, corresponding to efficiency bottlenecks or the necessity for platform-specific customizations. Whereas simplifying the preliminary porting effort, ongoing upkeep and have additions would possibly nonetheless require platform-specific code.
Finally, profitable codebase adaptation ensures that the translated utility retains its core performance and delivers a constant person expertise throughout each iOS and Android platforms. This essential step straight impacts the applying’s stability, efficiency, and maintainability throughout the new setting.
2. UI/UX Redesign
The person interface and person expertise (UI/UX) redesign is a essential element of the transformation strategy of adapting an utility initially constructed for iOS to the Android platform. It goes past mere aesthetic modifications, addressing basic variations in design paradigms, interplay patterns, and platform-specific conventions that form the person’s notion and engagement with the applying.
-
Platform-Particular Design Languages
iOS adheres to Apple’s Human Interface Tips, whereas Android follows Materials Design rules. These tips dictate components like navigation patterns, button types, and general visible presentation. A direct port of an iOS UI to Android will doubtless seem international and inconsistent with the native Android expertise, probably complicated customers. Due to this fact, components corresponding to tab bars (frequent on iOS) is perhaps changed with a backside navigation bar or a navigation drawer, aligning with established Android conventions.
-
Interplay Patterns and Gestures
Sure gestures and interplay patterns are native to every platform. As an illustration, a long-press motion would possibly set off completely different contextual menus or actions on iOS versus Android. Adapting these interactions to match person expectations on the goal platform is crucial for a seamless and intuitive expertise. Implementing Android’s “again” button performance requires cautious consideration of navigation movement, guaranteeing constant conduct throughout completely different screens and person actions.
-
Display Sizes and Resolutions
The range of Android gadgets necessitates a responsive UI design that adapts to various display screen sizes and resolutions. In contrast to iOS, which has a extra managed vary of gadget specs, Android purposes should be designed to scale successfully throughout a wider spectrum of gadgets, from smartphones to tablets. This entails utilizing versatile layouts, scalable graphics, and adaptive font sizes to take care of readability and visible enchantment on all supported gadgets.
-
Accessibility Concerns
Accessibility options, corresponding to display screen readers and different enter strategies, are carried out in a different way on iOS and Android. The UI/UX redesign should incorporate accessibility finest practices for the Android platform to make sure that the applying is usable by people with disabilities. This contains offering correct ARIA attributes, supporting keyboard navigation, and guaranteeing ample colour distinction for visible components.
Finally, the UI/UX redesign performs an important function in figuring out the success of an utility’s adaptation to Android. By adhering to platform-specific tips, adapting interplay patterns, and guaranteeing accessibility, builders can create an utility that feels native to Android customers, fostering engagement and maximizing adoption charges. The redesign effort shouldn’t be merely beauty; it’s a basic side of delivering a high quality expertise on the goal platform.
3. Platform APIs
Platform APIs (Software Programming Interfaces) characterize an important interface when adapting an utility initially developed for iOS to perform successfully on the Android working system. These APIs present entry to native gadget capabilities and companies, corresponding to location companies, digicam functionalities, push notifications, and {hardware} sensors. A basic problem in transitioning arises as a result of iOS and Android implement these APIs in a different way. For instance, accessing location knowledge on iOS makes use of the Core Location framework, whereas Android employs the LocationManager API. Failure to adapt these API calls straight ends in non-functional options, hindering the applying’s usability throughout the Android ecosystem.
The right implementation of Android platform APIs straight impacts the applying’s efficiency and person expertise. Inefficient API utilization can result in elevated battery consumption, lowered responsiveness, and potential safety vulnerabilities. Take into account an utility that depends closely on push notifications. Incorrectly implementing the Firebase Cloud Messaging (FCM) API, Android’s mechanism for push notifications, can lead to delayed or missed notifications, negatively affecting person engagement. Moreover, neglecting Android’s permission mannequin when accessing delicate APIs, corresponding to digicam or microphone entry, can increase privateness considerations and result in utility rejection from the Google Play Retailer.
In conclusion, the correct adaptation of platform APIs is paramount for profitable utility adaptation. Builders should meticulously establish and change iOS-specific API calls with their Android counterparts, guaranteeing correct performance and adherence to Android’s safety and efficiency requirements. This course of not solely ensures the applying’s operational integrity but additionally contributes to a seamless person expertise throughout the Android setting. Overlooking this side can result in important useful deficiencies and a compromised person expertise, finally undermining the difference endeavor.
4. Testing Totally
The conversion of an utility from the iOS platform to Android necessitates rigorous testing protocols to make sure performance, stability, and person expertise parity. Complete testing identifies and rectifies discrepancies arising from platform-specific code implementations, {hardware} variations, and variations in person interface conventions. This course of shouldn’t be merely a closing validation step however an built-in follow all through the difference lifecycle.
-
Useful Verification
Useful testing validates that each one options of the tailored utility function as meant on the Android platform. This contains verifying core functionalities, corresponding to person authentication, knowledge storage, and community communication. As an illustration, if an iOS utility makes use of CoreData for native storage, the equal performance carried out on Android, corresponding to utilizing SQLite or Room, should endure thorough testing to substantiate knowledge integrity and retrieval accuracy. Any deviation from anticipated conduct requires fast debugging and rectification.
-
Efficiency Analysis
Android gadgets exhibit a variety of {hardware} capabilities, impacting utility efficiency. Efficiency testing assesses useful resource consumption, responsiveness, and stability throughout numerous Android gadgets and variations. Reminiscence leaks, inefficient code execution, or extreme battery drain can degrade the person expertise and should be addressed. Load testing simulates excessive person site visitors to make sure the applying can deal with concurrent requests with out efficiency degradation, particularly for purposes counting on community communication.
-
Compatibility Testing
The Android ecosystem is characterised by fragmentation, with quite a few gadget producers and working system variations in use. Compatibility testing ensures that the tailored utility features appropriately on a consultant pattern of gadgets, masking completely different display screen sizes, resolutions, and {hardware} configurations. This contains verifying that UI components are displayed appropriately and that device-specific functionalities, corresponding to digicam entry or sensor knowledge, are working as anticipated. Machine emulators and real-world gadget testing are each essential for complete compatibility evaluation.
-
Usability Testing
Usability testing evaluates the person expertise of the tailored utility, guaranteeing that it’s intuitive and simple to navigate on the Android platform. This entails observing customers interacting with the applying and gathering suggestions on its design, performance, and general satisfaction. Variations in UI conventions between iOS and Android require cautious consideration to make sure a native-feeling expertise. For instance, Androids again button performance should be carried out appropriately to keep away from person confusion and navigation points.
These aspects of thorough testing collectively make sure that an utility tailored from iOS to Android meets the required requirements for performance, efficiency, compatibility, and value. The iterative nature of testing permits for early detection and correction of points, decreasing the danger of deploying a substandard utility to the Android market and maximizing person satisfaction.
5. Efficiency Optimization
Efficiency optimization is a essential consideration throughout the utility adaptation course of, enjoying a major function in person satisfaction and general utility success throughout the Android ecosystem. Adapting an utility designed for iOS requires cautious consideration to make sure it maintains responsiveness, environment friendly useful resource utilization, and stability on the goal platform.
-
Code Profiling and Bottleneck Identification
Adapting code from Goal-C/Swift to Java/Kotlin or using cross-platform frameworks typically introduces efficiency bottlenecks. Code profiling instruments are important to establish these inefficiencies, pinpointing areas the place CPU utilization, reminiscence allocation, or I/O operations are extreme. As an illustration, a poorly optimized picture loading routine or an inefficient algorithm for knowledge processing can considerably degrade efficiency on Android. Addressing these bottlenecks by code refactoring or different implementation methods is essential.
-
Reminiscence Administration
Android’s reminiscence administration differs considerably from iOS, impacting utility stability and responsiveness. Reminiscence leaks or extreme reminiscence consumption can result in utility crashes or slowdowns. Efficiency optimization contains diligent reminiscence profiling, guaranteeing that objects are correctly deallocated when not wanted, and minimizing memory-intensive operations. Methods corresponding to utilizing memory-efficient knowledge buildings and using caching mechanisms assist to optimize reminiscence utilization, thereby bettering general efficiency. In cases the place background companies are wanted, JobScheduler API should be used to keep away from battery drain and poor efficiency.
-
UI Rendering Optimization
Easy UI rendering is crucial for a optimistic person expertise. Inefficient UI layouts, extreme view overdrawing, or poorly optimized animations can result in body drops and a sluggish person interface. Efficiency optimization entails streamlining UI layouts, decreasing view complexity, and using {hardware} acceleration methods the place relevant. Using instruments corresponding to Android’s Structure Inspector and GPU profiling instruments helps establish and resolve UI rendering bottlenecks. Using ConstraintLayout and optimized drawables must be thought-about.
-
Battery Consumption
Android customers are notably delicate to battery drain, making battery optimization a paramount concern. Inefficient community requests, steady location monitoring, or poorly managed background duties can considerably affect battery life. Efficiency optimization entails minimizing community exercise, optimizing location updates, and using background activity scheduling mechanisms such because the WorkManager API. Common battery profiling and evaluation assist establish and handle battery-draining parts, enhancing person satisfaction and utility retention.
These areas of efficiency optimization are usually not remoted however interconnected, collectively influencing the general person expertise. Thorough consideration and implementation of those methods are essential in guaranteeing that an utility tailored from iOS to Android delivers a easy, responsive, and steady expertise, finally contributing to its success within the Android ecosystem. Failure to prioritize these components can result in destructive person opinions, decreased adoption charges, and diminished utility viability.
6. Instrument Choice
The collection of acceptable instruments straight impacts the effectivity and effectiveness of adapting an utility from the iOS platform to Android. The instruments chosen dictate the methodology and sources required, affecting undertaking timelines, prices, and the ensuing utility’s efficiency. As an illustration, choosing a full rewrite necessitates completely different instruments, corresponding to IDEs (Built-in Growth Environments) like Android Studio and proficiency in Java or Kotlin, in comparison with utilizing a cross-platform framework like Flutter or React Native, which require specialised SDKs and associated programming data. Inappropriate device choice can result in prolonged improvement instances, elevated prices as a result of unexpected compatibility points, and probably a subpar closing product with efficiency limitations.
Cross-platform frameworks supply the potential to reuse a good portion of the prevailing codebase, however they introduce dependencies on the framework’s capabilities and limitations. If the applying closely depends on iOS-specific APIs or UI components with out equal assist within the chosen framework, substantial modifications or customized implementations turn into essential, probably negating the preliminary benefits of cross-platform improvement. Conversely, if the applying is comparatively easy and primarily depends on frequent functionalities, a well-chosen cross-platform framework can considerably scale back improvement time and price. Moreover, instruments for automated testing and debugging are essential for guaranteeing stability and performance throughout completely different Android gadgets and variations. With out these instruments, figuring out and resolving platform-specific points turns into considerably tougher and time-consuming.
In conclusion, the hyperlink between utility adaption and gear choice is a basic determinant of undertaking success. The optimum toolset relies on the applying’s complexity, the event crew’s experience, and the specified degree of efficiency and native integration on the Android platform. Cautious analysis of those components, mixed with an intensive understanding of the obtainable instruments and their respective strengths and weaknesses, is crucial for making knowledgeable choices that maximize effectivity and decrease potential dangers all through the difference course of.
7. Value Evaluation
A complete price evaluation kinds an indispensable element of any endeavor that entails adapting an utility from Apple’s iOS ecosystem to the Android platform. The monetary implications related to this transformation are multifaceted, encompassing improvement bills, testing procedures, potential licensing charges, and ongoing upkeep. The choice to transform an utility should be preceded by an in depth evaluation of those components to find out the undertaking’s monetary viability and establish potential cost-saving methods. For instance, deciding on a cross-platform improvement framework would possibly seem initially less expensive in contrast to an entire rewrite in Java or Kotlin. Nevertheless, the frameworks limitations and the necessity for platform-specific customizations might finally negate the preliminary financial savings, resulting in unexpected bills and elevated undertaking complexity. Due to this fact, an in-depth price evaluation ought to consider all such potential situations.
The evaluation ought to lengthen past preliminary improvement prices to incorporate long-term concerns, corresponding to upkeep and updates. Android’s fragmented ecosystem, with its various vary of gadgets and OS variations, necessitates ongoing testing and compatibility changes. The price of sustaining compatibility throughout this various panorama should be precisely estimated. Moreover, safety vulnerabilities and evolving platform tips require steady monitoring and updates, including to the general long-term bills. A failure to precisely forecast these ongoing prices can result in funds overruns and probably jeopardize the long-term sustainability of the tailored utility. Actual-world examples show that neglecting this long-term price consideration can lead to deserted or poorly maintained Android purposes, undermining the preliminary funding.
In abstract, conducting a meticulous price evaluation is crucial for any conversion undertaking. This entails not solely calculating preliminary improvement prices but additionally projecting long-term upkeep, testing, and replace bills. Precisely assessing these components, and deciding on adaptation methods accordingly, is essential for guaranteeing the monetary viability and sustained success of the applying on the Android platform. Ignoring price evaluation as an important element on this course of can yield monetary shortfalls and finally result in the abortion of a conversion undertaking.
8. Safety Audit
The method of adapting an iOS utility to the Android platform necessitates a complete safety audit to mitigate potential vulnerabilities launched throughout the adaptation. Variations in working system structure, API implementations, and safety fashions between iOS and Android create alternatives for safety flaws to emerge. Particularly, code refactoring, reliance on third-party libraries, and changes to knowledge storage mechanisms can inadvertently introduce vulnerabilities that weren’t current within the unique iOS utility. Neglecting a safety audit will increase the danger of exposing delicate person knowledge, compromising utility integrity, and damaging the group’s popularity. The potential for cross-site scripting (XSS) assaults, SQL injection vulnerabilities, and insecure knowledge storage practices necessitates rigorous testing and code overview.
Sensible examples underscore the significance of safety audits. Think about a monetary utility tailored to Android. If the difference introduces vulnerabilities within the knowledge encryption strategies or authorization mechanisms, attackers might probably achieve unauthorized entry to customers’ monetary data. Equally, an utility dealing with private well being data (PHI) requires strict adherence to knowledge privateness rules, corresponding to HIPAA. A safety audit identifies vulnerabilities that might compromise PHI, leading to authorized repercussions and important monetary penalties. The variation course of requires the validation of safe coding practices, correct dealing with of delicate knowledge, and adherence to the OWASP Cell Safety Venture tips. A sturdy safety audit helps reveal vulnerabilities corresponding to uncovered API keys, insecure communication protocols, and inadequate enter validation.
A safety audit on this context ensures the tailored utility conforms to safety finest practices, mitigating dangers related to the transition from iOS to Android. The audit entails penetration testing, vulnerability scanning, and code overview to uncover and remediate potential safety weaknesses. By proactively addressing safety considerations, organizations can deploy a safe Android utility, safeguard person knowledge, and shield their model popularity. The profitable final result hinges on integrating safety concerns all through your complete adaptation lifecycle, somewhat than treating the audit as a mere afterthought. The general aim is to attain a degree of safety on Android that’s a minimum of equal to that of the unique iOS utility.
9. Market Dynamics
Market dynamics play an important function within the decision-making course of for changing an utility initially designed for iOS to the Android platform. The prevailing market circumstances, together with person demographics, aggressive panorama, and platform-specific developments, considerably affect the potential return on funding and the general success of such a undertaking.
-
Person Base Enlargement
Android boasts a dominant share of the worldwide cellular working system market. By adapting an utility to Android, companies faucet right into a considerably bigger pool of potential customers who could not personal iOS gadgets. This enlargement can result in elevated downloads, greater person engagement, and finally better income technology. As an illustration, a gaming utility initially unique to iOS can broaden its viewers and improve its income streams by providing an Android model, notably in areas the place Android gadgets are extra prevalent.
-
Aggressive Panorama
The aggressive panorama inside particular app classes typically differs considerably between the iOS App Retailer and the Google Play Retailer. Analyzing the prevailing competitors on Android helps decide the viability of a transformed utility. A distinct segment utility with restricted competitors on iOS would possibly face a saturated market on Android, requiring a extra strategic strategy to advertising and differentiation. Understanding competitor strengths and weaknesses informs improvement and advertising methods.
-
Platform-Particular Person Expectations
Android and iOS customers exhibit distinct preferences and expectations relating to utility design, performance, and pricing fashions. A direct port of an iOS utility with out contemplating these variations can result in destructive person opinions and low adoption charges. Understanding Android customers’ most well-liked fee strategies, knowledge consumption habits, and design aesthetics is important. Failure to align the tailored utility with these expectations can lead to market failure, no matter its success on iOS.
-
Regional Market Variations
Cell working system utilization varies considerably throughout geographic areas. In some markets, Android dominates, whereas iOS holds a stronger place in others. Understanding these regional variations helps prioritize market entry methods and tailor the tailored utility to particular native preferences. For instance, an utility with localized content material and assist for regional languages is extra doubtless to achieve markets the place English shouldn’t be the first language. Conducting thorough market analysis to establish regional preferences is essential for maximizing adoption charges.
These market dynamics, when precisely assessed, present essential insights that form the strategic path of adapting an utility from iOS to Android. The potential for person base enlargement, the necessity to navigate the aggressive panorama, the significance of addressing platform-specific person expectations, and the affect of regional market variations are all pivotal concerns. Ignoring these components will increase the danger of failure, whereas thoughtfully integrating them into the difference course of enhances the chance of reaching market success.
Regularly Requested Questions
This part addresses frequent inquiries and clarifies misconceptions surrounding the method of remodeling purposes from the iOS ecosystem to the Android platform.
Query 1: What are the first challenges in porting an iOS utility to Android?
The first challenges contain variations in programming languages (Goal-C/Swift vs. Java/Kotlin), UI/UX design paradigms (Apple Human Interface Tips vs. Materials Design), and API implementations for accessing gadget options and companies. Codebase rewriting, UI/UX redesign, and adaptation of API calls are usually required.
Query 2: Is it doable to routinely remodel an iOS utility into an Android utility?
Absolutely automated conversion is mostly not possible as a result of basic variations between the platforms. Cross-platform frameworks supply partial automation, however guide changes and platform-specific implementations are often essential to attain optimum efficiency and a local person expertise.
Query 3: Which improvement strategy yields the perfect outcomes: full rewrite or cross-platform framework?
The optimum strategy relies on the applying’s complexity, efficiency necessities, and funds constraints. A whole rewrite affords most management over efficiency and native integration however requires extra sources. Cross-platform frameworks can scale back improvement time however could introduce efficiency limitations and require framework-specific experience.
Query 4: How can compatibility throughout the varied Android gadget ecosystem be ensured?
Compatibility testing throughout a consultant pattern of Android gadgets and working system variations is crucial. Using responsive UI design rules, adhering to Android’s design tips, and implementing sturdy error dealing with mechanisms contribute to broader gadget compatibility.
Query 5: What are the important thing safety concerns when changing an iOS utility to Android?
A complete safety audit is important to establish and remediate potential vulnerabilities launched throughout the adaptation. Safe coding practices, correct knowledge encryption, adherence to knowledge privateness rules, and vulnerability testing are essential for guaranteeing utility safety.
Query 6: What degree of efficiency degradation may be anticipated after changing an iOS utility to Android?
Efficiency degradation is feasible if the difference shouldn’t be correctly optimized. Code profiling, reminiscence administration, UI rendering optimization, and battery consumption administration are important to take care of acceptable efficiency ranges. Selecting acceptable improvement instruments and methods can mitigate efficiency points.
In conclusion, utility adaptation from iOS to Android is a posh course of with numerous technical, design, and safety concerns. A radical understanding of those components is crucial for reaching a profitable transition.
The next part will focus on methods for advertising an tailored Android utility.
Suggestions for Changing iOS Functions to Android
This part supplies actionable steerage to optimize the trouble of transferring purposes from Apple’s iOS setting to Google’s Android ecosystem.
Tip 1: Conduct Thorough Code Evaluation. Previous to the conversion course of, carry out a complete evaluation of the prevailing iOS codebase. Establish platform-specific code, dependencies, and functionalities that require modification or substitute for Android compatibility. This preliminary evaluation informs subsequent improvement choices and useful resource allocation.
Tip 2: Prioritize UI/UX Adaptation. Acknowledge that Android customers have distinct interface expectations. Adapt the applying’s UI and UX to align with Materials Design rules. This contains adjusting navigation patterns, using Android-specific UI parts, and guaranteeing responsiveness throughout numerous display screen sizes and resolutions.
Tip 3: Optimize Useful resource Administration. Android gadgets typically have useful resource limitations in comparison with their iOS counterparts. Optimize reminiscence utilization, scale back battery consumption, and streamline processing duties to make sure easy utility efficiency on a wider vary of Android gadgets. Implement environment friendly knowledge buildings and algorithms.
Tip 4: Implement Rigorous Testing Procedures. Set up a complete testing technique that features useful testing, efficiency testing, compatibility testing, and safety testing. Take a look at the applying on a various set of Android gadgets and emulator configurations to establish and resolve platform-specific points.
Tip 5: Leverage Cross-Platform Frameworks Strategically. Consider the suitability of cross-platform frameworks like React Native or Flutter for facilitating the conversion course of. Whereas these frameworks can speed up improvement, acknowledge their limitations and potential efficiency overhead. Choose frameworks that align with the applying’s technical necessities and efficiency targets.
Tip 6: Tackle Safety Concerns Proactively. Carry out a complete safety audit to establish and mitigate potential vulnerabilities launched throughout the conversion. Implement sturdy safety measures to guard delicate knowledge and forestall unauthorized entry, adhering to OWASP Cell Safety Venture tips.
These tips promote a extra environment friendly and profitable transition, minimizing dangers and maximizing the applying’s potential throughout the Android market.
The next part presents concluding remarks relating to the conversion of iOS purposes to be used throughout the Android setting.
convert ios app to android
The method of changing an iOS app to Android calls for meticulous consideration to element throughout quite a few domains, from code adaptation and UI/UX redesign to safety protocols and platform API integration. The profitable navigation of those technical and design challenges is paramount for guaranteeing a useful, performant, and safe utility throughout the Android ecosystem. Ignoring any of those components could impede its viability and person acceptance.
Because the cellular panorama continues to evolve, a strategic understanding of cross-platform improvement methods and cautious consideration of market dynamics will stay essential. Organizations endeavor this endeavor should prioritize thorough planning, rigorous testing, and a dedication to ongoing upkeep to maximise the long-term worth and affect of their purposes.