





















































What changed in the way you code for 2024? What has happened in the tech world in the last months? Take this shorter version of the Developer Nation survey, learn about new tools, influence the future of development and share your insights with the world!
MobilePro #156: DDD, Clean and Hexagonal Architectures, React Native Dynamic App Icons , NativeFlow, LLMs Will Always Hallucinate.
Hi ,
Welcome to the mobile app development world with the 156th edition of _mobilepro!
In this edition we cover mobile development community discussions on:
In our relatively new section captures internet jibber-jabber about the mobile ecosystem:
Today's news covers release stories on Apple and Android. And if you are currently developing an iOS app, checkout this week's resources on iOS tools. Don’t miss this week’s tutorial from the book ‘C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals’ .
P.S.: If you have any suggestions or feedback, or would like us to feature your project on a particular subject, please write to us. Just respond to this email!
If you liked this installment in our new series,fill in our survey below andwin a free PDF on your Packt account.
Thanks,
Apurva Kadam
Editor-in-Chief, Packt
Add file uploads and retrieval in minutes so you can focus on building your app — because you’ve got better things to code than infrastructure.
What are Mobile developers discussing? What are the latest tips and tricks? Shortcuts and experiments? Cool tutorials? Releases and updates? Find it all out here.
Digging Deep to Find the Right Balance Between DDD, Clean and Hexagonal Architectures - Choosing the right software architecture is challenging, especially when balancing theory and recommendations from the internet with practical implementation. In this article, I will share my journey and the architectural choices that have worked for me.
3G Cell Service Has a HUGE Security Flaw - If you've used a phone much, you probably know what cell service is. Quick recap: Cellular service is a wireless communication system that allows mobile devices, like phones, to connect to a network using radio frequencies. You might have known that already, but did you know that 3G cell service networks have a large security flaw that's easy to exploit? To explain this better, let's go back in time!
React Native Dynamic App Icons - This article demonstrates a practical implementation of dynamic app icon changing in React Native, utilising thereact-native-change-iconlibrary. It serves as a guide and example for developers looking to incorporate icon-switching functionality into their iOS and Android applications.
NativeFlow: A Tailwind-Like, Object-Based React Native UI Library - In the world of React Native development, UI styling can sometimes be a pain point, especially for those used to the flexibility and simplicity of utility-first CSS frameworks like Tailwind. You know the drill — hours spent wrestling with babel setups, styles, tweaking tiny details, and hoping it looks good on both iOS and Android. Many existing solutions rely on wrapping Tailwind with custom Babel setups or trying to make it work inside React Native's ecosystem. But (let’s be real), these approaches often add extra complexity, unsupported properties, or completely miss out on platform-specific APIs. That’s where NativeFlow comes in.
10 Software Design and Programming Best Practices for Developers - Software design and System Design a critical aspect of the development process that can significantly impact the success and maintainability of a project. While mastering software design takes time and experience, there are key best practices that developers can quickly learn to enhance the quality of their code.
Check this space for new repos, projects and tools each week! This week we bring you a collection of iOS tools for Images.
ImageDetect- Detect and crop faces, barcodes and texts inside of your image, with iOS 11 Vision api.
THTiledImageView- Provide ultra-high-quality images through tiling techniques.
GPUImage3- GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal.
Harbeth - Metal API for GPU accelerated Graphics and Video and Camera filter framework.
Gallery- Your next favorite image and video picker.
ATGMediaBrowser- Image slide-show viewer with multiple predefined transition styles, and ability to create new transitions with ease.
Pixel- An image editor and engine using CoreImage.
Random curious musings and interesting words about Mobile Dev on the Internet.
Apple Mobile Processors Are Now Made in America. By TSMC - TSMC’s first Arizona chips are now in production, and Apple is ready to be the first cab off the rank with mobile processors made using the foundry’s 5nm process. Apple’s A16 SoC, which first debuted two years ago in theiPhone 14 Pro, is currently being manufactured at Phase 1 of TSMC’s Fab 21 in Arizona in small, but significant, numbers, my sources tell me. Volume will ramp up considerably when the second stage of the Phase 1 fab is completed and production is underway, putting the Arizona project on track to hit itstarget for production in the first-half of 2025.
macOS Sequoia is available, bringing iPhone Mirroring, Apple Intelligence, and more to Mac - macOS Sequoia, the latest version of the world’s most advanced desktop operating system, is available today as a free software update for Mac. macOS Sequoia brings exciting new features, including iPhone Mirroring, which expands Continuity by enabling access to and control of iPhone directly from macOS; big updates to Safari; a new Passwords app; and more. Starting next month, macOS Sequoia will introduce Apple Intelligence,1the personal intelligence system that combines the power of generative models with personal context to deliver intelligence that is incredibly useful and relevant while protecting users’ privacy and security.
Facebook admits to scraping every Australian adult user’s public photo and post to train AI, with no opt-out option - Facebook is scraping the public data of all Australian adults on the platform, it has acknowledged in an inquiry. The company does not offer Australians an opt out option like it does in the EU, because it has not been required to do so under privacy law.
Zero-Click Calendar invite: Critical zero-click vulnerability chain in macOS - I found a zero-click vulnerability in macOS Calendar, which allows an attacker to add or delete arbitrary files inside the Calendar sandbox environment. This could lead to many bad things including malicious code execution which can be combined with security protection evasion with Photos to compromise users’ sensitive Photos iCloud Photos data. Apple hasfixedall the vulnerabilities between October 2022 and September 2023.
LLMs Will Always Hallucinate, and We Need to Live With This - As Large Language Models become more ubiquitous across domains, it becomes important to examine their inherent limitations critically. This work argues that hallucinations in language models are not just occasional errors but an inevitable feature of these systems. We demonstrate that hallucinations stem from the fundamental mathematical and logical structure of LLMs. It is, therefore, impossible to eliminate them through architectural improvements, dataset enhancements, or fact-checking mechanisms. Our analysis draws on computational theory and Godel's First Incompleteness Theorem, which references the undecidability of problems like the Halting, Emptiness, and Acceptance Problems.
An excerpt from ‘C# 12 and .NET 8 – Modern Cross-Platform Development Fundamentals’ By Mark J. Price
Understanding data seeding with the Fluent API
Another benefit of the Fluent API is to provide initial data to populate a database. EF Core automatically works out what insert, update, or delete operations must be executed.
For example, if we wanted to make sure that a new database has at least one row in theProduct
table, then we would call theHasData
method, as shown in the following code:
modelBuilder.Entity<Product>()
Calls toHasData
take effect either during a data migration executed by the commanddotnet ef database update
or when you call theDatabase.EnsureCreated
method.
Our model will map to an existing database that is already populated with data, so we will not need to use this technique in our code.
Your dose of the latest releases, news and happenings in the Mobile Development industry!
Apple
TN3111: iOS Wi-Fi API overview - Explore the various Wi-Fi APIs available on iOS and their expected use cases. iOS does not have a general-purpose API for Wi-Fi scanning and configuration. However, it does support a wide range of special-purpose Wi-Fi APIs. This technote lists some use cases supported by those special-purpose APIs.
Android
Attestation format change for the Android FIDO2 API - In 2019 we introduceda FIDO2 API, adopted by many leading developers, which allows users to generate an attested, device-boundFIDO2 credential on Android devices. Since this launch, Android has generated an attestation statement based on theSafetyNet API. As the underlying SafetyNet API is beingdeprecated, the FIDO2 API must move to a new attestation scheme based on hardware-backed key attestation. This change will require action from developers using the FIDO2 API to ensure a smooth transition. The FIDO2 API is closely related to, but distinct from, thepasskeys APIand is invoked by setting theresidentKeyparameter todiscouraged. While our goal is over time tomigrate developers to the passkey API, we understand that not all developers who are currently using the FIDO2 API are ready for that move and we continue working on ways to converge these two APIs.
Developer Preview: Desktop windowing on Android Tablets - To empower tablet users to get more done, we're enhancing freeform windowing, allowing them to run multiple apps simultaneously and resize windows for optimal multitasking. Today, we're excited to share that desktop windowing on Android tablets is available in developer preview. For app developers, the concept of Android apps running in freeform windows has already existed with solutions like Samsung DeX and ChromeOS. Updating your apps to support adaptive layouts, more robust multitasking, and adaptive inputs will ensure your apps work well on large screens across the Android ecosystem. Let’s explore how to optimize your apps for desktop windowing and deliver the optimal experience to users.
TalkBack uses Gemini Nano to increase image accessibility for users with low vision - TalkBackis Android’s screen reader in theAndroid Accessibility Suitethat describes text and images for Android users who have blindness or low vision. The TalkBack team is always working to make Android more accessible. Today, thanks to Gemini Nano with multimodality, TalkBack automatically provides users with blindness or low vision more vivid and detailed image descriptions to better understand the images on their screen.