-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
93 lines (79 loc) · 2.62 KB
/
build.gradle
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
buildscript {
ext.kotlin_version = "1.6.10"
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
repositories {
google()
mavenCentral()
// Only necessary if you use jqwik's SNAPSHOT releases
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
android {
compileSdkVersion 31
defaultConfig {
applicationId "my.example.project.android"
minSdkVersion 21
targetSdkVersion 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
freeCompilerArgs = [
"-Xjsr305=strict", // Strict interpretation of nullability annotations in jqwik API
"-Xemit-jvm-type-annotations" // Enable annotations on type variables
]
jvmTarget = '1.8'
javaParameters = true // Get correct parameter names in jqwik reporting
}
testOptions {
unitTests.all {
useJUnitPlatform {
includeEngines 'jqwik'
}
include '**/*Properties.class'
include '**/*Test.class'
include '**/*Tests.class'
include '**/*Examples.class'
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
testImplementation "com.google.truth:truth:1.1.3"
// testImplementation 'junit:junit:4.13.2'
// testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.1"
// testImplementation "org.junit.jupiter:junit-jupiter-params:5.9.1"
// testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.9.1"
testImplementation("net.jqwik:jqwik:1.8.2")
testImplementation("net.jqwik:jqwik-kotlin:1.8.2")
// Optional but recommended to get annotation related API warnings, e.g. for @CheckReturnValue
compileOnly("org.jetbrains:annotations:23.0.0")
}
wrapper {
gradleVersion = "8.4"
}