4
4
application {mainClassName = 'gettingstarted.GettingStarted' }
5
5
6
6
plugins {
7
- id 'java'
8
- id 'application'
7
+ id 'java'
8
+ id 'application'
9
9
// ... other section content as required by user
10
10
}
11
11
12
12
13
13
// tag::compileOptions[]
14
+
15
+ // Set Couchbase Lite version
16
+ def version = '3.0.0' // <1>
17
+
18
+ // Set minimum JVM level to ensure availability of, for example, lambda expressions
19
+ def jvmversion = '1.8'
20
+
14
21
android {
15
- // Required only if your project has some Kotlin source code
16
- kotlinOptions { jvmTarget = '1.8' }
22
+ // Required only if your project has some Kotlin source code
23
+ kotlinOptions { jvmTarget = $ {jvmversion} ` }
17
24
18
- // Set minimum JVM level to ensure availability of, for example, lambda expressions
19
- compileOptions {
20
- targetCompatibility 1.8
21
- sourceCompatibility 1.8
22
- }
25
+ compileOptions {
26
+ targetCompatibility ${jvmversion}
27
+ sourceCompatibility ${jvmversion}
28
+ }
23
29
24
30
// ... other section content as required by user
25
31
}
26
32
// end::compileOptions[]
27
33
28
34
// tag::dependencies[]
29
35
dependencies {
30
- implementation "com.couchbase.lite:couchbase-lite-android-ee:${version}"
36
+
37
+ implementation "com.couchbase.lite.kotlin:couchbase-lite-kt-android-ee:${version}" // <2>
38
+ implementation "com.couchbase.lite.kotlin:couchbase-lite-android-ee:${version}" // <3>
31
39
32
40
// ... other section content as required by user
33
41
}
34
42
// end::dependencies[]
35
43
36
44
// tag::repositories[]
37
45
repositories {
38
- maven { url 'https://mobile.maven.couchbase.com/maven2/dev/' }
39
- google()
40
- jcenter()
46
+ maven { url 'https://mobile.maven.couchbase.com/maven2/dev/' }
41
47
42
48
// ... other section content as required by user
43
49
}
@@ -47,7 +53,9 @@ repositories {
47
53
48
54
// tag::dependenciesCE[]
49
55
dependencies {
50
- implementation "com.couchbase.lite:couchbase-lite-android:${version}"
56
+
57
+ implementation "com.couchbase.lite.kotlin:couchbase-lite-kt-android:${version}" // <2>
58
+ implementation "com.couchbase.lite.kotlin:couchbase-lite-android:${version}" // <3>
51
59
52
60
// ... other section content as required by user
53
61
}
0 commit comments