Skip to content

Commit

Permalink
Fix SDK license compliance
Browse files Browse the repository at this point in the history
Renamed `LICENSE` file to `LICENSE.txt` to fix link in old maven releases that have hardcoded link to license in POM file.

Added license file in the src/main/assets directory. By adding it there it will be included in the AAR’s assets folder. While placing the license at the root of the AAR might have made it more visible, this approach still ensures that the license is packaged with the library, easily accessible to consumers, and compliant with licensing requirements—all without the need for post-processing the AAR through custom Gradle scripts.

The main minus of this solution is that now there are two copies of license file in the same project making it easy to miss in later changes.

MOB-3835
  • Loading branch information
gugalo committed Jan 6, 2025
1 parent 0736765 commit 1acf03e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE → LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Glia Technologies, Inc.
Copyright (c) 2025 Glia Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 21 additions & 0 deletions widgetssdk/src/main/assets/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 Glia Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

0 comments on commit 1acf03e

Please sign in to comment.