From 14cb5597194f6cfb918cc0a135822591b57ec34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp?= Date: Mon, 8 Sep 2025 17:13:16 +0100 Subject: [PATCH 1/4] Fix typo and use language-based markdown code blocks --- oss-licenses-plugin/README.md | 38 ++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/oss-licenses-plugin/README.md b/oss-licenses-plugin/README.md index 6de6b5a1..cfd93bbc 100755 --- a/oss-licenses-plugin/README.md +++ b/oss-licenses-plugin/README.md @@ -25,26 +25,32 @@ play-services-oss-licenses library. In your root-level `settings.gradle.kts` make sure you are using the [Google Maven repository](https://developer.android.com/studio/build/dependencies#google-maven): - pluginManagement { - repositories { - google() - } - } +```gradle.kts +pluginManagement { + repositories { + google() + } +} +``` In your app-level `build.gradle.kts`, apply the plugin by adding the following line under the existing `id("com.android.application")` at the top of the file: - apply { - id("com.google.android.gms.oss-licenses-plugin") version("0.10.7") - } +```gradle.kts +plugins { + id("com.google.android.gms.oss-licenses-plugin") version "0.10.7" +} +``` ### Add the library to your app In the `dependencies` section of your app-level `build.gradle.kts`, add a dependency on the `oss-licenses` library: - implementation("com.google.android.gms:play-services-oss-licenses:17.0.0") +```gradle.kts +implementation("com.google.android.gms:play-services-oss-licenses:17.0.0") +``` ### Displaying license information @@ -53,12 +59,14 @@ add them to the app resources. To easily display them you can trigger an activity provided by the `play-services-oss-licenses` library at an appropriate point in your app: - import com.google.android.gms.oss.licenses.OssLicensesMenuActivity; +```java +import com.google.android.gms.oss.licenses.OssLicensesMenuActivity; - // ... +// ... - // When the user selects an option to see the licenses: - startActivity(new Intent(this, OssLicensesMenuActivity.class)); +// When the user selects an option to see the licenses: +startActivity(new Intent(this, OssLicensesMenuActivity.class)); +``` 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 @@ -68,4 +76,6 @@ display additional license information for that library. You can also set the title of the displayed activity: - OssLicensesMenuActivity.setActivityTitle(getString(R.string.custom_license_title)); +```java +OssLicensesMenuActivity.setActivityTitle(getString(R.string.custom_license_title)); +``` From 6effa9942e6e34bcb83d1ada832de642994c2f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp?= Date: Mon, 8 Sep 2025 17:14:24 +0100 Subject: [PATCH 2/4] Update README.md --- oss-licenses-plugin/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oss-licenses-plugin/README.md b/oss-licenses-plugin/README.md index cfd93bbc..498faef1 100755 --- a/oss-licenses-plugin/README.md +++ b/oss-licenses-plugin/README.md @@ -27,9 +27,9 @@ In your root-level `settings.gradle.kts` make sure you are using the ```gradle.kts pluginManagement { - repositories { - google() - } + repositories { + google() + } } ``` @@ -39,7 +39,7 @@ file: ```gradle.kts plugins { - id("com.google.android.gms.oss-licenses-plugin") version "0.10.7" + id("com.google.android.gms.oss-licenses-plugin") version "0.10.7" } ``` From b6927489babea21cb9a722f397c4dc2b57b019d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp?= Date: Mon, 8 Sep 2025 17:15:03 +0100 Subject: [PATCH 3/4] Update README.md --- google-services-plugin/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/google-services-plugin/README.md b/google-services-plugin/README.md index d46e9b8e..98e0fbda 100755 --- a/google-services-plugin/README.md +++ b/google-services-plugin/README.md @@ -8,7 +8,7 @@ This plugin converts the google-services.json file for Firebase into a set of re Add the following to your project's settings.gradle: -``` +```gradle.kts pluginManagement { repositories { gradlePluginPortal() @@ -19,14 +19,14 @@ pluginManagement { Apply the plugin in your app's build.gradle.kts: -``` +```gradle.kts plugins { id("com.google.gms.google-services") version "4.4.1" } ``` Or in build.gradle: -``` +```gradle plugins { id 'com.google.gms.google-services' version '4.4.1' } @@ -54,7 +54,7 @@ contain an `applicationId`. Configure the plugin's behavior through the `googleServices` block in build.gradle.kts: -``` +```gradle.kts googleServices { // Disables checking of Google Play Services dependencies compatibility // Default: false @@ -81,13 +81,13 @@ The Google Services plugin requires AGP 7.3.0 or newer to work. Add the following to your buildscript classpath, obtained from Google’s [Maven repository](//developer.android.com/studio/build/dependencies#google-maven): -``` +```gradle classpath 'com.google.gms:google-services:4.4.1' ``` Apply the plugin in your app's build.gradle: -``` +```gradle apply plugin: 'com.google.gms.google-services' ``` From 841806962c03ea45a53b58fad649b8df1119bac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp?= Date: Mon, 8 Sep 2025 17:15:19 +0100 Subject: [PATCH 4/4] Update README.md --- strict-version-matcher-plugin/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strict-version-matcher-plugin/README.md b/strict-version-matcher-plugin/README.md index e5cead07..2a1f7886 100755 --- a/strict-version-matcher-plugin/README.md +++ b/strict-version-matcher-plugin/README.md @@ -10,7 +10,7 @@ highest referenced version even if it crossed the major version boundary. In your app's build.gradle: -``` +```gradle apply plugin: 'com.google.android.gms.strict-version-matcher-plugin' ``` @@ -18,7 +18,7 @@ In order to use this plugin, you will also need to add the following to your buildscript classpath, obtained from Google’s [Maven repository](//developer.android.com/studio/build/dependencies#google-maven): -``` +```gradle classpath 'com.google.android.gms:strict-version-matcher-plugin:1.0.2' ```