Monday, May 16, 2022

Android Security - Securing Android User Data with Kotlin

 Storing user data is a key consideration for every Android app, and there a ton of different approaches to take. 

 Android Security: Protecting User Data Storage, you’ll learn to safely store your user’s data. First,  you’ll explore the different storage methods, their use cases, and security implications. 

Next, you’ll discover storing data using Android’s new Scoped Storage API. Finally, you’ll learn how to exchange files with other apps. When you’re finished with this topic , you’ll have the skills and knowledge of Android development using Kotlin needed to safely manage your user’s data. 

Topics that you will find in this  Heavy Android Demo Driven Code because I believe working demo code can give better reference.

  • Understanding Android Storage Options
  • Understanding Android Encryption Options
  • Securely Storing User Data
  • Working with Unstructured User Data
  • Securely Storing User Files
  • Securely Sharing Files with Other Apps
  • Leveraging File Providers
  • Retrieving Files in Scoped Storage
  • Retrieving Files with Storage Access Framework
  • Saving and Displaying Copied Files

We've covered quite a bit of information in a very short amount of time, so let's quickly review. User storage is an important part of a successful app, and there are a ton of options, so it's important to understand what makes sense for your particular use case. To help with that, I introduced the storage decision framework to help you determine which option is best suited for your needs. The first storage method that we examined was user data. The two forms of this are structured, such a SQLite or Room, and unstructured, such as shared preferences. 

Next, we tackled how to store user files and all of the different options that are available. We also looked at the impact of the new scoped storage approach unveiled by Google. We wrapped up the course by sharing files we created to other apps, as well as retrieving files from other apps and pulling them into our own. I hope that you found the content valuable and that you're confident in your ability to leverage user storage in your future work. If you have any questions or comments, please reach out in the course discussion below. Thanks again, and be on the lookout for other Android topic that I'll be publishing in the future.

Git Hub Account Link :
https://github.com/Abhinaw/Android-Security-User-Data/tree/master

Note: Download the code and try to integrate the concept and approach in your app. This is the best way to implement the Android Security in your local storage and User Data in local storage. So that your app can not be vulnerable with respect to Android Security Testing.


Sunday, May 15, 2022

Unit Testing with JUnit 5 and Kotlin

 Unit Testing with JUnit 5 and Kotlin JUnit 5 is the de-facto standard testing framework on the JVM. 

It is used to test application code in many areas including enterprise, desktop, and mobile applications. Unit Testing with JUnit 5 and Kotlin set up JUnit to test Kotlin code, including some of the issues you will encounter that are unique to Kotlin. First, you will see how to set up your environment to use JUnit 5 for Kotlin including setting up Gradle and Maven environments and using an IDE to run the tests. you will be introduced to Kluent, a Kotlin fluent assertions library. Then, you will see how to change assertions using this fluent syntax, as well as new, cleaner ways of writing assertions using the Kluent APIs. Finally, we will explore ‘mocking’ using MockK, a mocking framework written in and for Kotlin. When you are finished with this course, you will have the skills to test Kotlin code using JUnit and how to refactor code to make it testable.



Git Hub Account:
https://github.com/Abhinaw/UnitTest5/blob/master/README.md

You can check the working code and able to understand everything about JUnit 5 and how it works with Kotlin.


Saturday, May 14, 2022

Sample Microservices for Mobile App in Kotlin , Spring-Boot and MySQL Db.

 Sample Microservices for Mobile App in Kotlin , Spring-Boot and MySQL Db.

Complete code is in Kotlin and it is very concise and fast.
Tutorials for beginners with working code.
Easy to understand code.
Code is hosted on my GitHub
#kotlin #springboot #MVC

https://github.com/Abhinaw/resumeApi/tree/master