docs: use implementation instead of compile in gradle (#684)
Reference: https://docs.gradle.org/current/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations
This commit is contained in:
@@ -26,7 +26,7 @@ Add the following dependency to your `pom.xml`.
|
|||||||
Add it as a gradle dependency for Android Studio, in `build.gradle`:
|
Add it as a gradle dependency for Android Studio, in `build.gradle`:
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
compile ('io.socket:socket.io-client:2.0.1') {
|
implementation ('io.socket:socket.io-client:2.0.1') {
|
||||||
// excluding org.json which is provided by Android
|
// excluding org.json which is provided by Android
|
||||||
exclude group: 'org.json', module: 'json'
|
exclude group: 'org.json', module: 'json'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user