Skip to content

Commit 393f355

Browse files
authored
Merge pull request #19 from Techno-Disaster/master
Fix Error while doing release/debug build
2 parents 4b76059 + 689d98b commit 393f355

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

‎android/build.gradle

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,38 @@ subprojects {
2323
subprojects {
2424
project.evaluationDependsOn(':app')
2525
}
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
2758
task clean(type: Delete) {
2859
delete rootProject.buildDir
2960
}

0 commit comments

Comments
 (0)