forked from faceterteam/PayCards_Android
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
66 lines (60 loc) · 2.38 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
apply plugin: 'com.android.application'
uploadArchives.enabled = false
ext.private = new Properties()
if (rootProject.file('private.properties').exists()) {
ext.private.load(new FileInputStream(rootProject.file('private.properties')))
}
android {
compileSdkVersion rootProject.ext.compileSdkVersion
defaultConfig {
applicationId "cards.pay.sample.demo"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode Integer.parseInt(DEMO_APP_VERSION_CODE)
versionName DEMO_APP_VERSION_NAME
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resConfigs "en"
}
signingConfigs {
release
debug
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
applicationIdSuffix ".dbg"
minifyEnabled false
jniDebuggable true
}
profiling {
initWith debug
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ":sdk")
//debugCompile project(path: ":sdk", configuration: 'release')
//releaseCompile project(path: ":sdk", configuration: 'release')
androidTestImplementation "androidx.test.espresso:espresso-core:$rootProject.ext.espressoVersion"
implementation "androidx.appcompat:appcompat:$rootProject.ext.appCompatVersion"
implementation "androidx.gridlayout:gridlayout:$rootProject.ext.gridLayoutVersion"
implementation "com.google.android.material:material:$rootProject.ext.materialVersion"
testImplementation "junit:junit:$rootProject.ext.junitVersion"
}
if (ext.private.getProperty("release.StoreFile") != null) {
android.signingConfigs['release'].storeFile = file(ext.private['release.StoreFile'])
android.signingConfigs['release'].storePassword = ext.private['release.StorePassword']
android.signingConfigs['release'].keyAlias = ext.private['release.KeyAlias']
android.signingConfigs['release'].keyPassword = ext.private['release.KeyPassword']
} else {
android.buildTypes['release'].signingConfig = null
}