Skip to content

Releases: WhatsApp/StringPacks

Version 0.3.1

16 Aug 19:48
Compare
Choose a tag to compare

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

18 Jun 23:39
Compare
Choose a tag to compare

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 removed packable_strings_directory property from config.json. Now, each entry in original_resources_directories will have its own string-packs folder making it more modularized. Please copy the latest scripts folder and pack.gradle into your project.
  • No need to wrap Application's baseContext in StringPackContext. Instead override getResources() 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

13 Apr 04:46
Compare
Choose a tag to compare

This release is a patch release with some major bug fixes and new support: -

  • Fixed crash, brought up by Microsoft, with adding WebView programmatically using Application Context.
  • Added compatibility with androidx.appcompat:appcompat:1.2.0 (current stable release)

Version 0.2.0

12 Dec 00:52
Compare
Choose a tag to compare

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 copy scripts/ and pack.gradle from library/ folder as specified in README.md

Version 0.1.0

31 Oct 03:50
Compare
Choose a tag to compare

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