forked from stealthcopter/AndroidNetworkTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (70 loc) · 2.25 KB
/
build.gradle
File metadata and controls
82 lines (70 loc) · 2.25 KB
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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.2.2'
// This is so we can publish straight to Google Play
classpath 'com.github.triplet.gradle:play-publisher:1.2.2'
}
}
apply plugin: 'com.android.application'
apply plugin: 'spoon'
apply plugin: 'com.github.triplet.play'
play {
track = 'beta'
if (project.hasProperty("ANDROID_NETWORK_TOOLS_SERVICE_ACCOUNT")) {
serviceAccountEmail ANDROID_NETWORK_TOOLS_SERVICE_ACCOUNT
}
pk12File = file('../key.p12')
}
android {
compileSdkVersion compileSdkVer
buildToolsVersion buildToolsVer
defaultConfig {
applicationId "com.stealthcotper.networktools"
minSdkVersion minSdkVer
targetSdkVersion targetSdkVer
versionName appVersionName
versionCode appVersionCode
archivesBaseName = "AndroidNetworkTools"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
//check if the keystore details are defined in gradle.properties (this is so the key is not in github)
if (project.hasProperty("ANDROID_NETWORK_TOOLS_STORE")) {
signingConfigs {
//from ~/.gradle/gradle.properties
release {
storeFile file(ANDROID_NETWORK_TOOLS_STORE)
keyAlias ANDROID_NETWORK_TOOLS_ALIAS
storePassword ANDROID_NETWORK_TOOLS_PASS
keyPassword ANDROID_NETWORK_TOOLS_KEY_PASS
}
}
}
buildTypes {
release {
if (project.hasProperty("ANDROID_NETWORK_TOOLS_STORE")) {
signingConfig signingConfigs.release
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
// Spoon used for CI / Testing
spoon {
debug = true
// To grant permissions to Android M >= devices */
grantAllPermissions = true
}
dependencies {
implementation "com.android.support:appcompat-v7:$supportLibVer"
implementation "com.android.support:design:$supportLibVer"
implementation project(':library')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.squareup.spoon:spoon-client:1.6.4'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation('com.android.support.test.espresso:espresso-intents:2.2')
}