-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathbuild.gradle
More file actions
87 lines (67 loc) · 2.59 KB
/
Copy pathbuild.gradle
File metadata and controls
87 lines (67 loc) · 2.59 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
83
84
85
86
87
apply plugin: 'com.android.application'
Properties local_properties = new Properties()
File localPropertiesFile = project.rootProject.file('private.properties')
if (localPropertiesFile.exists()) {
local_properties.load(localPropertiesFile.newDataInputStream())
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "org.openintents.shopping"
versionName "2.2.1"
versionCode 100221
minSdkVersion 16
targetSdkVersion rootProject.ext.targetSdkVersion
testApplicationId "org.openintents.shopping.test"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
setProperty("archivesBaseName", "$applicationId-$versionName")
}
lintOptions {
abortOnError false
}
flavorDimensions "market"
productFlavors {
play {
}
tstore {
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
}
}
def propertyFile = new File(projectDir, "build-private.properties")
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
if (propertyFile.exists()) {
signingConfigs {
release {
Properties props = new Properties()
props.load(new FileInputStream(propertyFile))
storeFile file(props.getProperty("key.store"))
storePassword props.getProperty("key.store.password")
keyAlias props.getProperty("key.alias")
keyPassword props.getProperty("key.alias.password")
}
}
buildTypes.release.signingConfig signingConfigs.release
println "Release apks will be signed!"
} else {
println "For signed release apks you need to create a build-private.properties file"
}
}
dependencies {
implementation project(':ShoppingListLibrary')
implementation 'com.github.openintents:distribution:3.0.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
androidTestImplementation 'junit:junit:4.13'
androidTestImplementation group: 'androidx.test', name: 'runner', version: '1.3.0'
androidTestImplementation group: 'androidx.test', name: 'rules', version: '1.3.0'
androidTestImplementation group: 'androidx.test.espresso', name: 'espresso-core', version: '3.3.0'
androidTestImplementation group: 'androidx.test.espresso', name: 'espresso-contrib', version: '3.3.0'
}