Skip to content

Commit 7a74d07

Browse files
committed
Update android docs
1 parent 2c16974 commit 7a74d07

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

docs/android.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,10 @@ KICL can be used within an Android application. This requires some configuration
55

66
### Add the library dependency
77

8-
In `app/build.gradle`:
8+
In `app/build.gradle` `dependencies` section:
99

10-
```groovy
11-
dependencies {
12-
// ...
13-
implementation group: 'org.kitteh.irc', name: 'client-lib', version: '5.1.0'
14-
}
10+
```kotlin
11+
implementation("org.kitteh.irc:client-lib:VERSIONHERE")
1512
```
1613

1714
### Ensure minSdkVersion >= 24
@@ -23,26 +20,30 @@ android {
2320
// ...
2421
defaultConfig {
2522
applicationId "com.example.kiclandroidtest"
26-
minSdkVersion 24
23+
minSdkVersion 34
2724
// ...
2825
}
2926
}
3027
```
3128

32-
### Ensure source and target compatibility are set for Java 8
29+
(Use KICL 9.0.0 if you need to go earlier than Android 14 - you can then use minSdkVersion of 24)
30+
31+
### Ensure source and target compatibility are set for Java 17
3332

3433
In `app/build.gradle`:
3534

3635
```groovy
3736
android {
3837
// ...
3938
compileOptions {
40-
sourceCompatibility = '1.8'
41-
targetCompatibility = '1.8'
39+
sourceCompatibility = JavaVersion.VERSION_17
40+
targetCompatibility = JavaVersion.VERSION_17
4241
}
4342
}
4443
```
4544

45+
(If using KICL 9.0.0, set this to Java 8)
46+
4647
### Filter out duplicate META-INF files
4748

4849
In `app/build.gradle`:

0 commit comments

Comments
 (0)