-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
64 lines (53 loc) · 1.84 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
64 lines (53 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id("org.jetbrains.kotlin.android") version "1.9.22"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.22"
id("androidx.benchmark") version "1.1.1"
id("com.android.library") version "8.1.0"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
google()
mavenLocal()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json-kotlinx-io:1.6.3-SNAPSHOT")
// androidTestImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json-kotlinx-io:1.6.3-SNAPSHOT")
androidTestImplementation("org.jetbrains.kotlinx:kotlinx-io-core:0.3.1-SNAPSHOT")
androidTestImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test:runner:1.5.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.benchmark:benchmark-junit4:1.1.1")
}
kotlin {
jvmToolchain(8)
}
android {
namespace = "kotlinx.io.benchmark.android"
compileSdk = 33
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
defaultConfig {
minSdk = 24
testInstrumentationRunner = "androidx.benchmark.junit4.AndroidBenchmarkRunner"
testInstrumentationRunnerArguments["androidx.benchmark.output.enable"] = "true"
}
testBuildType = "release"
buildTypes {
debug {
// Since isDebuggable can"t be modified by gradle for library modules,
// it must be done in a manifest - see src/androidTest/AndroidManifest.xml
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "benchmark-proguard-rules.pro")
}
release {
isDefault = true
}
}
}