File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,38 @@ subprojects {
23
23
subprojects {
24
24
project. evaluationDependsOn(' :app' )
25
25
}
26
-
26
+ subprojects {
27
+ project. evaluationDependsOn(' :app' )
28
+ afterEvaluate {project ->
29
+ if (project. hasProperty(" android" )) {
30
+ android {
31
+ compileSdkVersion 28
32
+ buildToolsVersion ' 28.0.3'
33
+ }
34
+ configurations. all {
35
+ resolutionStrategy {
36
+ force ' com.google.android.gms:play-services-gcm:16.1.0'
37
+ force ' com.google.android.gms:play-services-location:16.0.1'
38
+ force ' com.google.android.gms:play-services-basement:16.2.0'
39
+ force ' com.google.android.gms:play-services-auth:16.0.1'
40
+ force ' com.google.android.gms:play-services-stats:16.0.1'
41
+ force ' com.google.android.gms:play-services-base:16.0.1'
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ } // this is for release build
48
+ subprojects {
49
+ project. configurations. all {
50
+ resolutionStrategy. eachDependency { details ->
51
+ if (details. requested. group == ' androidx.core' &&
52
+ ! details. requested. name. contains(' androidx' )) {
53
+ details. useVersion " 1.0.1"
54
+ }
55
+ }
56
+ }
57
+ } // this is for debug running
27
58
task clean (type : Delete ) {
28
59
delete rootProject. buildDir
29
60
}
You can’t perform that action at this time.
0 commit comments