README.md
changeset 75 bcfc8238b4f6
parent 7 b3b2e88f441f
child 84 f1e51fe391c2
equal deleted inserted replaced
74:57d9068de0ef 75:bcfc8238b4f6
    11 
    11 
    12 ### Apply the OSS Licenses Gradle Plugin
    12 ### Apply the OSS Licenses Gradle Plugin
    13 
    13 
    14 In your app-level `build.gradle`, apply the plugin by adding the following line under the existing `apply plugin: 'com.android.application'` at the top of the file:
    14 In your app-level `build.gradle`, apply the plugin by adding the following line under the existing `apply plugin: 'com.android.application'` at the top of the file:
    15 
    15 
    16 ```build.gradle.kts
    16 ```kotlin title="build.gradle.kts"
    17 apply plugin: 'com.google.android.gms.oss-licenses-plugin'
    17 apply plugin: 'com.google.android.gms.oss-licenses-plugin'
    18 ```
    18 ```
    19 
    19 
    20 ### Add the ui library to your application
    20 ### Add the ui library to your application
    21 
    21 
    22 ```build.gradle.kts
    22 ```kotlin title="build.gradle.kts"
    23 repositories {
    23 repositories {
    24     maven {
    24     maven {
    25         url = uri("https://jitpack.io")
    25         url = uri("https://jitpack.io")
    26     }
    26     }
    27 }
    27 }
    31 }
    31 }
    32 ```
    32 ```
    33 
    33 
    34 ### Launch the license activity
    34 ### Launch the license activity
    35 
    35 
    36 ```
    36 ```kotlin
    37 val intent = Intent(this, OpenSourceLicensesActivity::class.java)
    37 val intent = Intent(this, OpenSourceLicensesActivity::class.java)
    38 startActivity(intent)
    38 startActivity(intent)
    39 ```
    39 ```
    40 
    40 
    41 Build instructions
    41 Build instructions