-
Notifications
You must be signed in to change notification settings - Fork 205
/
build.gradle
118 lines (103 loc) · 3.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.bugsnag:bugsnag-android-gradle-plugin:3.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.30"
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
repositories {
google()
jcenter()
}
android {
compileSdkVersion 27
buildToolsVersion "27.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
manifestPlaceholders = [
bugsnagApiKey : "your-api-key",
bugsnagBuildUUID : "abc123",
bugsnagAppVersion : "1.0.0",
bugsnagEndpoint : "https://notify.bugsnag.com",
bugsnagSessionsEndpoint : "https://sessions.bugsnag.com",
bugsnagReleaseStage : "debug",
bugsnagSendThreads : true,
bugsnagEnableExceptionHandler : true,
bugsnagPersistUserBetweenSessions: false
]
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
debug {
applicationIdSuffix ".debug"
}
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
}
}
splits {
density {
enable true
}
}
flavorDimensions "regular"
splits {
density {
enable true
reset()
include "mdpi", "hdpi"//, "xhdpi", "xxhdpi", "xxxhdpi"
}
abi {
enable true
reset()
include 'armeabi-v7a', 'x86'
universalApk true
}
}
productFlavors {
javaExample {
applicationIdSuffix ".java"
}
kotlinExample {
applicationIdSuffix ".kotlin"
}
}
lintOptions {
disable 'OnClick'
abortOnError true
}
}
dependencies {
implementation "com.bugsnag:bugsnag-android:4.6.1"
implementation "com.android.support:appcompat-v7:27.0.0"
implementation "com.android.support:support-v4:27.0.0"
kotlinExampleImplementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:1.2.30"
androidTestImplementation "com.android.support.test:runner:0.5", {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation "com.android.support.test:rules:0.5", {
exclude group: 'com.android.support', module: 'support-annotations'
}
androidTestImplementation "com.android.support.test.espresso:espresso-core:2.2.2", {
exclude group: 'com.android.support', module: 'support-annotations'
}
}
apply plugin: 'com.bugsnag.android.gradle'
apply plugin: 'checkstyle'
checkstyle {
toolVersion = "6.16"
}
task("checkstyle", type: Checkstyle) {
configFile rootProject.file("../../config/checkstyle/checkstyle.xml")
source "src/javaExample/java"
include "**/*.java"
classpath = files()
}