Releases: WhatsApp/StringPacks
Releases · WhatsApp/StringPacks
Version 0.3.1
This release is a patch release with a major feature support added by the Microsoft team
- Packing translations of multiple locales together in same .pack file
- Fallback to a different locale if a translation is not available in desired locale
- Locales with Regions, for example, zh-TW
Note: Please follow the README.md to setup your project to take advantage of these features.
Version 0.3.0
This release fixes some major bugs and also adds lots of improvements.
Breaking changes: -
- Updated StringPackIds.java and StringPackIds.kt template to support large set of strings in a project
- Changed the behavior of
original_resources_directories
and removedpackable_strings_directory
property from config.json. Now, each entry inoriginal_resources_directories
will have its ownstring-packs
folder making it more modularized. Please copy the latest scripts folder andpack.gradle
into your project. - No need to wrap Application's baseContext in
StringPackContext
. Instead overridegetResources()
method as shown in README.md
Note: Please follow README.md to update your project.
Other support/improvements added are: -
- Improved performance in fetching strings from
.pack
files by enabling Mmaping feature. - Added support for large projects with > 8k strings
- Compatibility with API 30
- APK size reduction
- Modularized
string-packs
folders - Ability to create
.pack
files at the build time instead of creating them upfront. Follow the steps in README.md to enable this functionality - Fixed an issue, reported by Microsoft, when switching language from any non-US English language to
en-US
Improvements on sample app: -
- Support for changing Device language without killing app's process
Version 0.2.1
This release is a patch release with some major bug fixes and new support: -
- Fixed crash, brought up by Microsoft, with adding
WebView
programmatically usingApplication
Context. - Added compatibility with
androidx.appcompat:appcompat:1.2.0
(current stable release)
Version 0.2.0
Release notes
This release mainly has various optimizations being done so far in the library
- Improved sample app to provide multiple language selection to see StringPacks in action
- Various performance improvement
- Various memory usage optimizations
- Robolectric unit tests
- Added support for apps to pull the library from maven instead of copying the entire
library/
folder. You still have to copyscripts/
andpack.gradle
fromlibrary/
folder as specified in README.md
Version 0.1.0
StringPacks is a library to store translation strings in a more efficient binary format for Android applications, so that it reduces the Android APK size.
This is the initial public release of StringPacks, the project contains:
- Java library to load
.pack
file at runtime - Python3 script to assemble Android resources into
.pack
files - Sample app that include StringPacks library as dependency