Repository navigation
Releases: PGMacDesign/PGMacTips
Releases · PGMacDesign/PGMacTips
Release list
Updating DB Utilities to support Newer Realm Versions
FileUtils and FileMover
Version 1.5.2 (2021-08-10)
- Update: Updates to the RecyclerArrayAdapter class to add more utility functions and better error handling for scenarios where a bad position or item is sent as a argument.
- Update: Update in the FileUtilities class to allow for byte[] file writes. Also added in a FileDownloader Util
- New: The FileMover class has been added and will copy files from one directory to another
New Utils, Bugfixes, & Live Data
Version 1.5.1 (2021-07-04)
- New: New methods in the FileUtilities class for determining the Mimetype of a file
- Bugfix: Fixed a bug that could cause a NPE if a PGAnimatedSvgView is set but not initialized properly.
- New: Created a new package for live data utilities and 2 simple classes, AbsentLiveData and DynamicLiveData. These 2 classes are used to return an object with either null or the passed object so it can be returned along a LiveData approach.
- New: Added in a utilities class ObjectGsonParceler that provides Gson-wrapper functionality to the Android Parceler class.
- New: Added a new method to the AppLockdownUtils class for determining if the app is locked down / a device admin.
- Update: Updated the RecyclerArrayAdapter class to change the default constructor to public.
Stackmanager Updates
Version 1.4.8 (2021-02-25)
- Update: Added a new method in the [StackManager] class to allow to remove 1 or more stack items without using the
popfunctionality. - New: New methods in the MiscUtilities class for determining if the device running is an emulator or not.
- New: New Class, RecyclerArrayAdapter, to allow for a simple
listviewapproach to a Recyclerview with a wrapper with generics for access.
ImageUtilities Updates
- New: New Overloaded methods in the ImageUtilities to allow for setting images with Android Uris instead of only Strings.
Date, String, & Color Utilities Updates
Version 1.4.5 (2020-12-22)
- New: New methods in the StringUtilities class to work with Spannable Strings which are useful in highlighting text.
- New: Added in a new method for alpha augmentation in the ColorUtilities class.
- New: Added in a new method into the DateUtilities that is used for a shorter date String calculation on the
how long agomethod.
Animation and Image Utility Updates
- Update: Updated some of the methods in the GUIUtilities to allow for dismissing a keyboard and not just showing it. Also added in an overloaded
hideKeyboardmethod using context + a View. - New: New methods in the ImageUtilities to allow for setting the Image View Color using tint logic. Also added in a method to determine if a passed color argument is a valid resource.
- New: New overloaded methods in the AnimationUtilities to allow users to pass a callback listener whenever the animation completes.
StackRawManager Release
- Update: Updated and renamed the StackRawManager (Formally StackStringsManager) so that it can use all raw types. It now supports Strings, Longs, Integers, and Doubles.
Threads, Images, UI, and Misc Updates
- New: New methods in the MiscUtilities class to get the size of lists / maps via a safe null check.
- New: New methods in the ImageUtilities and FileUtilities classes to be used in conjunction with downloading images from the internet and converting them to a byte array. Also added image rotation methods for simple animation changes.
- New: New methods in the NetworkingUtilities class that allows a really simple builder of an OkHttp3 Client for use in various web-related calls or in the above Image Downloading logic.
- New: New method in the TextField Utilities class to allow for setting a TextView to have copy / paste functionality (IE, to be able to select and copy from it)
- New: New class, AppThreadPool. This class is designed to perform operations on either background or foreground threads depending on the end goal. All items from the ThreadUtilities have been moved to this new class as well.
Various Enhancements
- New: The L class will now allow Exceptions / Throwables to be passed in via the
L.e()method. This will print the stacktrace instead of casting into a String and printing. TheL.m()method has also been altered to check the type of this object and if it is an instance of aThrowableit will pass it to this new method. - Update: Updated the DisplayManagerUtilities print out method to also return the String being printed out for use in debugging / debug emails.
- New: New methods in the ColorUtilities class that allows for a quick building of ColorStateList(s).
- New: Adding in new methods to the ImageUtilities class for setting different image transformations. Also added in a new custom dependency for the Picasso Image Transformations.