Google Play Services 11.2.2 で OSSライセンス一覧 を表示する

Including Open Source Notices  |  Google APIs for Android  |  Google Developers

build.gradle に追記します.

root-level:


buildscript {
  repositories {
    //...
    maven { url "https://maven.google.com" } // or google() for Gradle 4+
  }
  dependencies {
    //...
    // Add this line:
    classpath 'com.google.gms:oss-licenses:0.9.0'
   }

app-level:


apply plugin: 'com.google.gms.oss.licenses.plugin'

compile 'com.google.android.gms:play-services-oss-licenses:11.2.2'

コードに追加する行は一行.
アクティビティが用意されています.


startActivity(new Intent(this, OssLicensesMenuActivity.class));

あれ, URLだけしか表示されないけど.

This will display a list of open source libraries that are compiled into the app, whether part of Google Play services or not. Tapping the library name will display the URL of the license.

いいのか...

Show Open Source Notices [65533155] - Visible to Public - Issue Tracker

一応, スターをつけてマークしておきますか...