File tree 11 files changed +17
-9
lines changed
main/kotlin/com/google/gms/googleservices
11 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ plugins {
20
20
}
21
21
22
22
group = " com.google.gms"
23
- version = " 5.0 .0"
23
+ version = " 4.4 .0"
24
24
25
25
dependencies {
26
26
compileOnly(gradleApi())
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ class GoogleServicesPlugin : Plugin<Project> {
92
92
variant.productFlavors.map { it.second },
93
93
project.projectDir))
94
94
it.applicationId.set(variant.applicationId)
95
+ it.gmpAppId.set(project.buildDir.resolve(" gmpAppId.txt" ))
95
96
}
96
97
97
98
// TODO: add an AGP version check to this block
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ import org.gradle.api.tasks.Input
30
30
import org.gradle.api.tasks.InputFiles
31
31
import org.gradle.api.tasks.Internal
32
32
import org.gradle.api.tasks.OutputDirectory
33
+ import org.gradle.api.tasks.OutputFile
33
34
import org.gradle.api.tasks.PathSensitive
34
35
import org.gradle.api.tasks.PathSensitivity
35
36
import org.gradle.api.tasks.TaskAction
@@ -53,6 +54,8 @@ abstract class GoogleServicesTask : DefaultTask() {
53
54
54
55
@get:Input abstract val missingGoogleServicesStrategy: Property <MissingGoogleServicesStrategy >
55
56
57
+ @get:OutputFile abstract val gmpAppId: Property <File >
58
+
56
59
@Throws(GradleException ::class )
57
60
@TaskAction
58
61
fun action () {
@@ -230,6 +233,7 @@ abstract class GoogleServicesTask : DefaultTask() {
230
233
" config file that contains a Google App Id" )
231
234
}
232
235
resValues[" google_app_id" ] = googleAppIdStr
236
+ gmpAppId.get().writeText(googleAppIdStr, Charsets .UTF_8 )
233
237
}
234
238
235
239
fun FirebaseClientData.handleWebClientId (resValues : MutableMap <String , String ?>) {
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
plugins {
3
3
id(" com.android.application" ) version " 7.3.0" apply false
4
- id(" com.google.gms.google-services" ) version " 5.0 .0" apply false
4
+ id(" com.google.gms.google-services" ) version " 4.4 .0" apply false
5
5
}
Original file line number Diff line number Diff line change @@ -22,4 +22,4 @@ kotlin.code.style=official
22
22
# thereby reducing the size of the R class for that library
23
23
android.nonTransitiveRClass =true
24
24
android.nonFinalResIds =false
25
- org.gradle.jvmargs =-Xmx1500m
25
+ org.gradle.jvmargs =-Xmx2000m
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
plugins {
3
3
id(" com.android.application" ) version " 7.4.1" apply false
4
- id(" com.google.gms.google-services" ) version " 5.0 .0" apply false
4
+ id(" com.google.gms.google-services" ) version " 4.4 .0" apply false
5
5
}
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ kotlin.code.style=official
21
21
# resources declared in the library itself and none from the library's dependencies,
22
22
# thereby reducing the size of the R class for that library
23
23
android.nonTransitiveRClass =true
24
- android.nonFinalResIds =false
24
+ android.nonFinalResIds =false
25
+ org.gradle.jvmargs =-Xmx2000m
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
plugins {
3
3
id(" com.android.application" ) version " 7.4.1" apply false
4
- id(" com.google.gms.google-services" ) version " 5.0 .0" apply false
4
+ id(" com.google.gms.google-services" ) version " 4.4 .0" apply false
5
5
}
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ kotlin.code.style=official
21
21
# resources declared in the library itself and none from the library's dependencies,
22
22
# thereby reducing the size of the R class for that library
23
23
android.nonTransitiveRClass =true
24
- android.nonFinalResIds =false
24
+ android.nonFinalResIds =false
25
+ org.gradle.jvmargs =-Xmx2000m
Original file line number Diff line number Diff line change 1
1
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
2
plugins {
3
3
id(" com.android.application" ) version " 7.4.1" apply false
4
- id(" com.google.gms.google-services" ) version " 5.0 .0" apply false
4
+ id(" com.google.gms.google-services" ) version " 4.4 .0" apply false
5
5
}
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ kotlin.code.style=official
21
21
# resources declared in the library itself and none from the library's dependencies,
22
22
# thereby reducing the size of the R class for that library
23
23
android.nonTransitiveRClass =true
24
- android.nonFinalResIds =false
24
+ android.nonFinalResIds =false
25
+ org.gradle.jvmargs =-Xmx2000m
You can’t perform that action at this time.
0 commit comments