-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
94 lines (79 loc) · 2.74 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
apply plugin: 'com.android.application'
apply plugin: 'maven'
group="org.irmacard"
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
}
}
repositories {
mavenLocal()
maven {
url "https://credentials.github.io/repos/maven2/"
}
// Use this to get minimal android library
maven {
url "https://raw.githubusercontent.com/embarkmobile/zxing-android-minimal/mvn-repo/maven-repository/"
}
mavenCentral()
jcenter()
}
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
lintOptions {
// BCProv references javax.naming
// CredentialsAPI references java.awt and java.swing
disable 'InvalidPackage'
}
buildTypes.all { type ->
// ACRA configuration, disabled by default. Override in acra.cradle
type.buildConfigField "String", "acraServer", '""'
type.buildConfigField "String", "acraLogin", '""'
type.buildConfigField "String", "acraPassword", '""'
type.buildConfigField "org.acra.ReportingInteractionMode", "acraMode",
"org.acra.ReportingInteractionMode.SILENT"
type.resValue "string", "crash_toast_text", ""
}
packagingOptions {
pickFirst 'META-INF/LICENSE'
}
}
if (project.file('acra.gradle').exists()) { apply from: 'acra.gradle' }
if (project.file('signingkeys.gradle').exists()) { apply from: 'signingkeys.gradle' }
dependencies {
// Google stuff
compile 'com.android.support:appcompat-v7:23+'
compile 'com.android.support:support-annotations:23+'
compile 'com.google.code.gson:gson:2.2.2'
compile('com.google.http-client:google-http-client-android:1.20.0') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
// zxing QR code libraries
compile 'com.journeyapps:zxing-android-embedded:3.3.0@aar'
compile 'com.google.zxing:core:3.2.1'
// Other stuff
compile 'ch.acra:acra:4.6.2'
compile 'com.noveogroup.android:android-logger:1.3.5'
compile 'com.github.nicolasjafelle:paginglistview:1.2'
// Our stuff
compile('org.irmacard.credentials:credentials_api:0.18.1') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile('org.irmacard.credentials:credentials_idemix:0.17.3') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile('org.irmacard.api:irma_api_common:0.7.8') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile('org.irmacard.keyshare:irma_keyshare_common:0.0.4') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}