-
Notifications
You must be signed in to change notification settings - Fork 136
/
build.gradle
102 lines (86 loc) · 3.43 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
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
//
// :apps:sasquatch
//
evaluationDependsOn(':apps')
android {
flavorDimensions "dependency", "distribute"
defaultConfig {
externalNativeBuild {
ndkBuild {
arguments "NDK_APPLICATION_MK=Application.mk", "V=1"
abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
}
}
}
productFlavors {
projectDependency {
dimension "dependency"
applicationIdSuffix ".project"
}
jcenterDependency {
dimension "dependency"
applicationIdSuffix ".jcenter"
}
appCenter {
dimension "distribute"
}
googlePlay {
dimension "distribute"
}
}
buildTypes {
releaseProguard {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
matchingFallbacks = ['release']
}
}
externalNativeBuild {
ndkBuild {
path "Android.mk"
}
}
}
repositories {
maven {
url "https://dl.bintray.com/vsappcenter/appcenter-snapshot"
}
}
dependencies {
implementation "com.android.support:support-v4:${rootProject.ext.supportLibVersion}"
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation "com.android.support:customtabs:${rootProject.ext.supportLibVersion}"
implementation "com.android.support:recyclerview-v7:${rootProject.ext.supportLibVersion}"
projectDependencyImplementation project(':sdk:appcenter-analytics')
projectDependencyImplementation project(':sdk:appcenter-crashes')
projectDependencyImplementation project(':sdk:appcenter-push')
def appCenterSdkVersion = "3.2.2"
jcenterDependencyImplementation "com.microsoft.appcenter:appcenter-analytics:${appCenterSdkVersion}"
jcenterDependencyImplementation "com.microsoft.appcenter:appcenter-crashes:${appCenterSdkVersion}"
jcenterDependencyImplementation "com.microsoft.appcenter:appcenter-push:${appCenterSdkVersion}"
def taskRequests = getGradle().getStartParameter().getTaskRequests().toString()
if (taskRequests.contains("GooglePlay")) {
projectDependencyImplementation project(':sdk:appcenter-distribute-play')
jcenterDependencyImplementation "com.microsoft.appcenter:appcenter-distribute-play:${appCenterSdkVersion}"
} else {
projectDependencyImplementation project(':sdk:appcenter-distribute')
jcenterDependencyImplementation "com.microsoft.appcenter:appcenter-distribute:${appCenterSdkVersion}"
}
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support.test.espresso:espresso-idling-resource:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
/*
* Project and jcenter conflict since they are not using same version of Push and
* somehow affects the plugin when building.
* If we build project alone (commenting jcenter dependencies), the problem is solved.
* So until we release the SDK with the push update, disable version check.
* TODO remove this after SDK release.
*/
//noinspection UnnecessaryQualifiedReference
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true