forked from eleybourn/Book-Catalogue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
executable file
·128 lines (119 loc) · 3.53 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
apply plugin: 'com.android.application'
// For custom app signing config, set BookCatalogue.signing in local.properties to the
// path f a gradle file with the Android signing config. eg.
//
// BookCatalogue.signing=O\:/Documents/BookCatalogue Dev/KeyStore/bcSigningConfig.gradle
//
def SigningProperty = "BookCatalogue.signing"
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def BcSigning = properties.getProperty(SigningProperty)
if(BcSigning != null && (new File(BcSigning)).exists()) {
apply from: BcSigning
}
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.4.2'
}
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
// implementation "com.android.support:support-core-utils:28.0.3"
// implementation "com.android.support:android.support.v7.app.ActionBar:28.0.0"
// Compile all libraries from 'libs' folder
implementation fileTree(include: '*.jar', dir: 'libs')
implementation 'com.google.android.material:material:1.4.0'
implementation 'com.google.android.gms:play-services-vision:20.1.3'
}
android {
namespace 'com.eleybourn.bookcatalogue'
// signingConfigs {
// Default {
// storeFile file('O:\\Documents\\BookCatalogue Dev\\KeyStore\\bc_key_evan')
// storePassword 'foobar'
// keyAlias = 'bookcatalogue'
// keyPassword 'foobar'
// }
// }
//
// buildTypes {
// release {
// signingConfig signingConfigs.Default
// }
// debug {
// signingConfig signingConfigs.Default
// }
// }
compileSdkVersion 33
dexOptions{
javaMaxHeapSize "2g"
}
packagingOptions {
resources {
excludes += ['META-INF/NOTICE.txt', 'META-INF/LICENSE.txt']
}
}
// !!! Commented to use values from the manifest
// defaultConfig {
// minSdkVersion 7
// targetSdkVersion 16
// versionCode 169
// }
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
defaultConfig {
minSdkVersion 21
targetSdkVersion 33
}
flavorDimensions "distributor"
productFlavors {
distPlay {
// Assigns this product flavor to the "distributor" flavor dimension.
// This property is optional if you are using only one dimension.
dimension "distributor"
// applicationIdSuffix ".demo"
versionNameSuffix "-distplay"
buildConfigField 'boolean', 'IS_DONATE_ALLOWED', 'false'
}
distOther {
dimension "distributor"
// applicationIdSuffix ".full"
versionNameSuffix "-distoth"
buildConfigField 'boolean', 'IS_DONATE_ALLOWED', 'true'
}
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
lint {
disable 'MissingTranslation'
}
buildFeatures {
renderScript true
aidl true
viewBinding false
}
}