Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions google-services-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
```kotlin
pluginManagement {
repositories {
gradlePluginPortal()
Expand All @@ -19,16 +19,16 @@ pluginManagement {

Apply the plugin in your app's build.gradle.kts:

```
```kotlin
plugins {
id("com.google.gms.google-services") version "4.4.1"
id("com.google.gms.google-services") version "4.4.4"
}
```

Or in build.gradle:
```
```gradle
plugins {
id 'com.google.gms.google-services' version '4.4.1'
id 'com.google.gms.google-services' version '4.4.4'
}
```

Expand All @@ -54,7 +54,7 @@ contain an `applicationId`.

Configure the plugin's behavior through the `googleServices` block in build.gradle.kts:

```
```kotlin
googleServices {
// Disables checking of Google Play Services dependencies compatibility
// Default: false
Expand All @@ -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):

```
classpath 'com.google.gms:google-services:4.4.1'
```gradle
classpath 'com.google.gms:google-services:4.4.4'
```

Apply the plugin in your app's build.gradle:

```
```gradle
apply plugin: 'com.google.gms.google-services'
```

Expand Down
34 changes: 22 additions & 12 deletions oss-licenses-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
```kotlin
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")
}
```kotlin
plugins {
id("com.google.android.gms.oss-licenses-plugin") version "0.11.0"
}
```

### 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")
```kotlin
implementation("com.google.android.gms:play-services-oss-licenses:17.0.0")
```

### Displaying license information

Expand All @@ -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
Expand All @@ -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));
```
6 changes: 3 additions & 3 deletions strict-version-matcher-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ 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'
```

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):

```
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.0.2'
```gradle
classpath 'com.google.android.gms:strict-version-matcher-plugin:1.2.4'
```

These instructions are also documented
Expand Down
Loading