오픈소스 라이선스를 앱에서 표시해야하는데, 매번 만들기 귀찮을 때 사용하면 좋은 라이브러리다.
링크: https://github.com/jaredsburrows/gradle-license-plugin
파일이 만들어지는 경로는 assets/open_source_licenses.html
다.
사용법 1
gradle 탭 -> Excute Gradle Task 버튼 클릭 -> Command line에 `licenseDebugReport` 입력 -> ok
참조: https://stackoverflow.com/a/52527150/1025379
사용법 2
터미널에서 프로젝트 폴더로 이동 후
$ ./gradlew licenseReleaseReport # or licenseDebugReport
횡스크롤 막기
저 html 파일을 웹뷰에서 읽으면 횡스크롤이 생기는데, style
에 이걸 추가하면 된다. 기존의 body
는 지워도 된다.
html, body { max-width: 100% !important; overflow-x: hidden !important; } ul { padding: 4%; }