forked from Gitoffthelawn/NetGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
96 lines (87 loc) · 2.9 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
apply plugin: 'com.android.model.application'
model {
android {
compileSdkVersion = 25
buildToolsVersion = "26.0.0"
defaultConfig {
applicationId = "eu.faircode.netguard"
}
compileOptions.with {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
ndk {
platformVersion = "14"
moduleName = "netguard"
toolchain = "clang"
ldLibs.add("log")
}
sources {
main {
jni {
source {
srcDirs.removeAll()
srcDirs.add('src/main/jni/netguard')
}
exportedHeaders {
}
}
}
}
buildTypes {
release {
minifyEnabled = true
useProguard = true
proguardFiles.add(file('proguard-rules.pro'))
ndk.with {
debuggable = false
}
}
debug {
minifyEnabled = true
useProguard = true
proguardFiles.add(file('proguard-rules.pro'))
ndk.with {
debuggable = false
}
}
}
productFlavors {
create("all") {
versionName = "2.107"
minSdkVersion.apiLevel = 14
targetSdkVersion.apiLevel = 25
versionCode = 2017070201
archivesBaseName = "NetGuard-v$versionName"
}
create("lollipop-and-later") {
versionName = "2.107"
minSdkVersion.apiLevel = 20
targetSdkVersion.apiLevel = 25
versionCode = 2017070211
archivesBaseName = "NetGuard-v$versionName"
}
create("kitkat-and-earlier") {
versionName = "2.107"
minSdkVersion.apiLevel = 14
maxSdkVersion = 19
targetSdkVersion.apiLevel = 25
versionCode = 2017070221
archivesBaseName = "NetGuard-v$versionName"
}
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.+'
compile 'com.android.support:support-annotations:25.+'
compile 'com.android.support:recyclerview-v7:25.+'
compile 'com.squareup.picasso:picasso:2.5.+'
compile 'com.google.firebase:firebase-core:11.0.+'
compile 'com.google.firebase:firebase-ads:11.0.+'
// https://developer.android.com/topic/libraries/support-library/revisions.html
// https://mvnrepository.com/artifact/com.squareup.picasso/picasso
// https://firebase.google.com/docs/android/setup
}
apply plugin: 'com.google.gms.google-services'