forked from guardianproject/haven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
128 lines (106 loc) · 3.35 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
119
120
121
122
123
124
125
126
127
128
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
/* gets the version name from the latest Git tag, stripping the leading v off */
def getVersionName = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags', '--always', '--abbrev=0'
standardOutput = stdout
}
return stdout.toString().trim()
}
apply plugin: 'com.android.application'
repositories {
jcenter()
google()
maven { url 'https://github.com/FireZenk/maven-repo/raw/master/'}
maven { url 'https://jitpack.io' }
}
allprojects {
project.ext {
// these are common variables used in */build.gradle
version_number=getVersionName()
group_info="haven"
signal_version="2.3.0"
buildToolsVersion="27.0.3"
compileSdkVersion=27
minSdkVersion=16
targetSdkVersion=27
appcompat='com.android.support:appcompat-v7:27.0.3'
}
}
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
dexOptions {
javaMaxHeapSize "1536m"
preDexLibraries true
}
defaultConfig {
applicationId "org.havenapp.main"
versionCode 102
versionName getVersionName()
archivesBaseName = "Haven-$versionName"
minSdkVersion 16
targetSdkVersion 27
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
compile 'com.android.support:support-v4:27.0.2'
compile 'com.android.support:appcompat-v7:27.0.2'
compile 'com.android.support:design:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.github.guardianproject:signal-cli-android:-SNAPSHOT'
compile 'com.github.satyan:sugar:1.5'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'net.the4thdimension:audio-wife:1.0.3'
compile 'com.github.apl-devs:appintro:v4.2.2'
compile 'info.guardianproject.netcipher:netcipher:2.0.0-alpha1'
compile 'com.nanohttpd:nanohttpd-webserver:2.2.0'
compile 'me.angrybyte.picker:picker:1.3.1'
compile 'com.github.stfalcon:frescoimageviewer:0.5.0'
compile 'com.facebook.fresco:fresco:1.7.1'
compile 'com.github.derlio.waveform:library:1.0.3@aar'
compile 'org.firezenk:audiowaves:1.1@aar'
compile 'com.maxproj.simplewaveform:app:1.0.0'
implementation('com.mikepenz:aboutlibraries:6.0.1@aar') {
transitive = true
}
}