-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
77 lines (59 loc) · 2.1 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
plugins {
id 'com.android.application'
id 'kotlin-android'
}
apply from: '../signing/signing.gradle'
apply from: '../dependencies.gradle'
android {
compileSdk rootProject.ext.compileSdkVersion
defaultConfig {
namespace = "net.helpscout.samples.beacon"
applicationId "net.helpscout.samples.beacon.kotlin"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
buildFeatures {
viewBinding = true
}
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
release {
signingConfig signingConfigs.release
// Beacon SDK supports Proguard, no additional config is needed.
// Since version 2.3.2 support for proguard-android-optimize.txt
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
// Since SDK 4.0.0 we moved to Android Gradle Plugin 7.x which requires the sourceCompatibility and
// targetCompatibility to Java 11
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
// recommend Kotlin jvm target to be Java 11
jvmTarget = JavaVersion.VERSION_11.toString()
}
lint {
disable 'MissingTranslation'
ignoreWarnings true
}
}
dependencies {
implementation "com.google.android.material:material:$materialVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
// Add this to your dependencies to install Beacon SDK to your app
implementation "com.helpscout:beacon:$beaconVersion"
testImplementation "junit:junit:$jUnitVersion"
}