- target Sdk is now 30
- Android Gradle Plugin 4.1.2
- androidx.browser 1.3.0
- ConstraintLayout 2.0.4
- androidx.lifecycle: lifecycle-viewmodel 2.3.0
- Bump minSdkVersion to
16
to use androidx.browser v1.2.0
- Update to Android Gradle Plugin 3.6.3
- Update to androidx.browser v1.2.0
- Migrate to lifecycle-viewmodel as lifecycle-extensions was deprecated.
- Migrate to AndroidX
- API 29
- Display loading state
- License content from previously displayed library is displayed wrongly while loading actual license content.
- Update to Android Support Library 28.0.0. This is the last release with Android Support Library.
- Migrate to gradle-bintray-plugin from novoda/bintray-release.
- test release with gradle-bintray-plugin(not working)
- Fix numerous bugs on pre-L devices
- Incorrectly colored library titles
- Incorrectly styled text
- Crash loading drawables
- Fix bug where license wouldn't always display on first load
- Fix crash retrieving attr. Primary and accent colors are now retrieved from the system attrs.
- Colorize all linkable library names
- Use Attributes to obtain
colorPrimary
andcolorAccent
, so that we don't need to declare color value namedcolorPrimary
orcolorAccent
#43
- Artifact is broken #39
- Artifact is broken #39
Most breaking changes should not affect you unless you built custom infrastructure around License Adapter model classes. Important changes are noted in bold.
- The
Licenses#load(List<LicenseEntry>)
method is no longer necessary and has been removed. - The
LicenseEntry
has been renamed toLibrary
to minimize confusion.- The
LicenseAdapter
's constructor takes in a list ofLibrary
s instead ofLicenseEntry
s.
- The
- The standard AppCompat color resources (
colorPrimary
,colorPrimaryDark
,colorAccent
) are now required. - Models no longer implement
Parcelable
, are final, and follow proper Java Bean getter/setter naming conventions. - The
name()
,version()
, andlink()
getters on theLicenseEntry
are no longer present in theLibrary
interface as they weren't being used. - The
Licenses
entry point is now final and cannot be instantiated. Library
implementation are no longer accessible. TheLicenses
class should cover all cases. If it doesn't, please file an issue!- The
BaseLibrary
class now has a simple API which automatically performs in-memory and on-disk caching and can be extended if necessary.
- Completely revamped UI and improved UX
- On-demand license legal text loading instead of all at once when it isn't necessarily needed
- On-device and in-memory (config change resilient) caching for optimal performance
- Uses vector drawables to minimize resources
- Massively improved API surface
- Input streams weren't closed properly
- If license text took too long to load, it wouldn't be displayed
- Update to SDK26
- Update to Support Library 26.1.0
Thanks @SUPERCILEX for adding great new features(#22, #25)!
- Deprecate
LicenseEntry#link
and addLicenseEntry#url
(for naming consistency). PR #27 - Update dependencies
- Add
Licenses#FILE_AUTO
option which automatically check & loadLICENSE
file regardless of its extension. PR #22 Licenses#fromGitHubApacheV2(String)
,Licenses#fromGitHubMIT(String)
andLicenses#fromGitHubBSD(String)
now check & load appropriate "LICENSE" file automatically. PR #22 While this feature is convenient, it can increase network access. If you are certain about LICENSE file name and don't mind doing extra work, I recommend you to specify license filename explicitly.- Add
NoLinkLicenseEntry
to display a license of which content is provided as a String. PR #25
- Deprecate
Licenses#fromGitHub(String)
andLicenses#fromGitHub(String, String)
, since these methods implicitly use Apache v2 as default license.
- Add
Licenses#fromGitHubApacheV2(String)
,Licenses#fromGitHubApacheV2(String, String)
,Licenses#fromGitHubMIT(String)
,Licenses#fromGitHubMIT(String, String)
,Licenses#fromGitHubBSD(String)
,Licenses#fromGitHubBSD(String, String)
. For other licenses, useLicenses#fromGitHub(String, License)
andLicenses#fromGitHub(String, String, String)
, the same as before.
- Fix incorrect Parcelable inheritance. LicenseEntry now inherits Parcelable. [issue #8]
- When expanding the last two licenses, the second license appears above the header, and cannot be unexpanded. [issue #7]
- Header not updated when collapsed via content click [issue #6]
- Fatal Exception in pre-Lollipop device [issue #5]
- License name constants are renamed.
Licenses#LICENSE_NAME_XXX
->Licenses#NAME_XXX
- License file name constants are renamed
Licenses#LICENSE_XXX
->Licenses#FILE_XXX
- Tint arrow icon with
?attr/colorControlNormal
to support both Light & Dark theme.
- can't display license content of the last item when the RecyclerView is placed in dialog
- weired scrolling behaviour while trying to expand item
- Update github raw content url
- Remove license type TextView when no type is provided.
initial release